Admin Class Help?
#1

Hello,i searched on sa=mp forums and wiki but i cant do it,i've added AddPlayerClass and putted this OnPlayerRequestSpawn,i took it from torran's post.
Код:
OnPlayerRequestClass(playerid, classid)
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
if(GetPlayerSkin(i) == 294)
 {
	if(IsPlayerLAdmin(playerid)) //i use LAdmin system thats why its LAdmin
	{
		return 1;
		SendClientMessage(playerid, "Welcome Admin");
	}
	else
	{
		GameTextForPlayer(playerid, "You aren't an admin!", 5000, 5);
		ForceClassSelection()
		return 0;
	}
}
Can anyone paste a code or help?Thanks!
Reply


Messages In This Thread
Admin Class Help? - by Youtube - 15.06.2010, 12:01
Re: Admin Class Help? - by NewTorran - 15.06.2010, 12:07
Re: Admin Class Help? - by hab2ever - 15.06.2010, 12:41
Re: Admin Class Help? - by Youtube - 15.06.2010, 13:19

Forum Jump:


Users browsing this thread: 2 Guest(s)