[Help] HouseSpawn Change Wont Work
#1

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;
	}
Reply
#2

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;
    }
Reply
#3

Still not workin thanks for your time thought
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)