13.09.2012, 03:41
You know how people block skins from players, well instead of the skin i want to block a player from a class when he trys to spawns any hows?
onplayerspawnrequest(blah) i want to be able to block player from spawning if he does have access to the classid like if the player if(PlayerInfo[playerid][pwhatever] == 1) he cannot access the class
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;
}