- 0
Problema
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Champion92
Am o problema.. de fiecare data cand PlayerInfo[playerid][pChangeSpawn] = 1 , ma spawneaza la prima casa din proprietes.ini
Cod
[pawn]
public OnPlayerSpawn(playerid)
{
new PlayersName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayersName, sizeof(PlayersName));
for(new i = 0;i < sizeof(HouseInfo) ; i++)
{
if(HouseInfo[hOwned] == 1 && strcmp(HouseInfo[hOwner], PlayersName, true) == 0 && PlayerInfo[playerid][pChangeSpawn] == 1)
{
// SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pChar], HouseInfo[hExitx] ,HouseInfo[hExity] ,HouseInfo[hExitz] , 0, 0 , 0, 0, 0, 0, 0);
SetPlayerInterior(playerid ,HouseInfo[hInt]);
SetPlayerPos(playerid, HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz]);
SetPlayerVirtualWorld(playerid, HouseInfo[hvw]);
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
TextDrawShowForPlayer(playerid, VersiuneServer);
return 1;
}
}
}[/pawn]
1 answer to this question
Recommended Posts