13.09.2012, 04:15
Alright you could try doing something like this.
Example:
Also have a look at this, it may help
https://sampwiki.blast.hk/wiki/OnPlayerRequestClass
Example:
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
if(classid == 3 && PlayerInfo[playerid][pwhatever] == 1)
{
SendClientMessage(playerid,COLOR_GREEN,"This class is unavailable to you.");
return 0;
}
return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerRequestClass