[Help] HouseSpawn Change Wont Work - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] HouseSpawn Change Wont Work (
/showthread.php?tid=122448)
[Help] HouseSpawn Change Wont Work -
Onyx09 - 22.01.2010
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;
}
Re: [Help] HouseSpawn Change Wont Work -
CuervO - 22.01.2010
pawn Код:
if(strcmp(cmd, "/spawnchange", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pHouseX] == 0 && PlayerInfo[playerid][pHouseY] == 0)
{
SendClientMessage(playerid,COLOR_RED,"You do not have a house to spawn in");
return 1;
}
if(PlayerInfo[playerid][pHouseSpawn] == 0)
{
SendClientMessage(playerid,COLOR_GREY,"You will now spawn inside your house.");
PlayerInfo[playerid][pHouseSpawn] = 1;
}
else if(PlayerInfo[playerid][pHouseSpawn] == 1)
{
SendClientMessage(playerid,COLOR_GREY,"You will now spawn at normal spawn.");
PlayerInfo[playerid][pHouseSpawn] = 0;
}
}
return 1;
}
Re: [Help] HouseSpawn Change Wont Work -
Onyx09 - 22.01.2010
Still not workin thanks for your time thought