22.01.2010, 01:34
Well im Trying to make it so player Spawns at his/her house can someone tell me what am i doing wrong?
Код:
if(strcmp(cmd, "/spawnchange", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pHouseX] == 0 && PlayerInfo[playerid][pHouseY] == 0) return SendClientMessage(playerid,COLOR_RED,"You do not have a house to spawn in"); else if(PlayerInfo[playerid][pHouseSpawn] == 0) { SendClientMessage(playerid,COLOR_GREY,"You will now spawn inside your house."); PlayerInfo[playerid][pHouseSpawn] = 1; return 1; } else if(PlayerInfo[playerid][pHouseSpawn] == 1) { SendClientMessage(playerid,COLOR_GREY,"You will now spawn at normal spawn."); PlayerInfo[playerid][pHouseSpawn] = 0; return 1; } } return 1; }