How to make this?
#2

Код:
if(IsPlayerAdmin(playerid))
{
	if (gTeam[playerid] == ADMIN_TEAM)
	{
		if(classid == CLASS_ID_HERE)
		{
		  GameTextForPlayer(playerid, "~r~~n~~n~~n~~n~~n~~n~~n~Admin Restricted", 1000, 3); //Add anything here
		}
	}
	else
	SendClientMessage(playerid, COLOR_HERE, "You're not an admin! You cannot choose this class.");
}
return 1;
Something like that. Change the "ADMIN_TEAM" into the team you've chosen for Admins. Rest is self explanatory. I wrote this pretty fast so not sure if it'll work. It should be in OnPlayerRequestClass.

Reply


Messages In This Thread
How to make this? - by T.I. - 02.04.2009, 19:42
Re: How to make this? - by BigPoncho - 02.04.2009, 22:55

Forum Jump:


Users browsing this thread: 1 Guest(s)