Jump to content

Question

Posted

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

Posted

Din cate stiam eu " /selectspawn 1 " te dadea la SPAWN Normal, Incearca sa modifici " 1 " cu " 2 " sau cu " 3 " , sa vezi cum reactioneaza..

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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.