Little Help Needed !
#9

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 282 ||   GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 284 || GetPlayerSkin(playerid) == 286 || GetPlayerSkin(playerid) == 288)
    {
        if(GetPlayerScore(playerid) < 100)
        {
            GameTextForPlayer(playerid,"~r~~h~100~b~score needed!",3000,3);
            SendClientMessage(playerid,red,"» You need at least "lgrey"100"lred" score to be a cop!"); // This message will be displayed.
            return 0;
        }
    }
    return 1;
}
OnPlayerRequestSpawn could also be used in this manner, just fixing up the above poster's code however.
Reply


Messages In This Thread
Little Help Needed ! - by Avi57 - 13.07.2012, 11:47
Re: Little Help Needed ! - by zT KiNgKoNg - 13.07.2012, 11:47
Re: Little Help Needed ! - by Cxnnor - 13.07.2012, 11:52
Re: Little Help Needed ! - by Avi57 - 13.07.2012, 11:58
Re: Little Help Needed ! - by Cxnnor - 13.07.2012, 12:00
Re: Little Help Needed ! - by clarencecuzz - 13.07.2012, 12:11
Re: Little Help Needed ! - by Avi57 - 13.07.2012, 12:58
Re: Little Help Needed ! - by leonardo1434 - 13.07.2012, 13:12
Re: Little Help Needed ! - by clarencecuzz - 13.07.2012, 13:24
Re: Little Help Needed ! - by leonardo1434 - 13.07.2012, 13:30

Forum Jump:


Users browsing this thread: 4 Guest(s)