Spawn +REP
#1

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.");
                }
            }
Reply


Messages In This Thread
Spawn +REP - by iBots - 02.12.2013, 18:30
Re: Spawn +REP - by iBots - 02.12.2013, 18:36
Re: Spawn +REP - by Tagathron - 02.12.2013, 19:23
Re: Spawn +REP - by iBots - 03.12.2013, 10:03
Re: Spawn +REP - by iBots - 03.12.2013, 10:35
Re: Spawn +REP - by [D]ry[D]esert - 03.12.2013, 10:40
Re: Spawn +REP - by iBots - 03.12.2013, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)