Stopping a player spawn if they don't meet requirement
#4

pawn Код:
forward SetPlayerTeamFromClass(playerid, classid);
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
    {
        if(classid == 0 && PlayerInfo[playerid][Clan] == 1)
        {
            gTeam[playerid] = TEAM_US;
            SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
            SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
            SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
            SetPlayerFacingAngle(playerid,252.4717);
            GameTextForPlayer(playerid, "~b~American's", 3000, 5);
            SetPlayerColor(playerid, BLUE);
            return 1;
        }
        else if(classid == 1)
        {
            gTeam[playerid] = TEAM_RUS;
            SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
            SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
            SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
            SetPlayerFacingAngle(playerid,252.4717);
            GameTextForPlayer(playerid, "~r~Russian's", 3000, 5);
            SetPlayerColor(playerid, RED);
            return 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
Stopping a player spawn if they don't meet requirement - by acade - 08.01.2013, 23:26
Re: Stopping a player spawn if they don't meet requirement - by mastermax7777 - 08.01.2013, 23:44
Re: Stopping a player spawn if they don't meet requirement - by acade - 09.01.2013, 15:36
Re: Stopping a player spawn if they don't meet requirement - by DaRk_RaiN - 09.01.2013, 15:43
Re: Stopping a player spawn if they don't meet requirement - by Ryan McDuff - 09.01.2013, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)