Restricting a Class
#2

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if( GetPlayerSkin( playerid ) == 230 && PlayerInfo[playerid][pAdmin] < 100 )
    {
        SendClientMessage(playerid, COLOR_GREY, "This is a restricted class!" );
        return 0;
    }
    return 1;
}

public OnPlayerSpawn( playerid )
{
    if( GetPlayerSkin( playerid ) == 230 )
    {
        GameTextForPlayer(playerid, "~y~OG Gangsta's", 2000, 3);
        SetPlayerPos(playerid, 1129.0776, -1488.1957, 22.7690);
        SetPlayerFacingAngle(playerid, 0.7288);
        SetPlayerCameraPos(playerid, 1129.1257,-1476.7831,22.7690);
        SetPlayerCameraLookAt(playerid, 1129.0983, -1485.8500, 22.7690);
        SetPlayerVirtualWorld(playerid, 1);
    }
    return 1;
}
Reply


Messages In This Thread
Restricting a Class - by Melon - 11.08.2012, 21:33
Re: Restricting a Class - by FalconX - 11.08.2012, 21:43
Re: Restricting a Class - by Melon - 11.08.2012, 21:46
Re: Restricting a Class - by FalconX - 11.08.2012, 22:06

Forum Jump:


Users browsing this thread: 1 Guest(s)