02.12.2013, 18:30
i have made a command which is spawn change it is:if i do /spawnchange 1 and i relog i'll spawn at the newbie spawn,if i do /spawnchange 2 i'll spawn inside my house,but there is no errors,and if i have house level 1 it spawns me there and it works,but if i have house level 2 or more it spawns me in the house level 1,why?
pawn Код:
if(strcmp(x_nr,"2",true) == 0)
{
if(PlayerInfo[playerid][pHouseAccepted] == 0)
{
PlayerInfo[playerid][pSpawn] = 1;
SendClientMessage(playerid, COLOR_GREY, "You dont have a house.");
}
if(PlayerInfo[playerid][pHouseAccepted] == 1)
{
PlayerInfo[playerid][pSpawn] = 2;
SendClientMessage(playerid, COLOR_GREY, "You will now spawn at your house.");
}
}