OnPlayerRequestSpawn
#2

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    new tmp[128], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    if(PlayerInfo[playerid][pTeam] == 1)
    {
        format(tmp,sizeof(tmp),"%s has spawned",pName);
        SendClientMessageToAll(-1,tmp);
        SpawnPlayer(playerid);
        return 1;
    }
    else
    {
        SendClientMessage(playerid, Red, "You are not in this team");
    }
    return 0;
}
Reply


Messages In This Thread
OnPlayerRequestSpawn - by Cowboy - 01.09.2011, 07:58
Re: OnPlayerRequestSpawn - by FireCat - 01.09.2011, 08:04
Re: OnPlayerRequestSpawn - by iggy1 - 01.09.2011, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)