Jobs?
#6

Above OnGameModeInit:
Код:
new JobCop[MAX_PLAYERS];
when they select the job of "Cop" add to the script:

Код:
JobCop[playerid] = 1;
any commands they use, use this:

Код:
if(JobCop[playerid] == 1)
{
//Enter script
return 1;
}
when they leave that job:

Код:
JobCop[playerid] = 0;
Change Cop to any job you have. Also for every job you make use in OnPlayerConnect:

Код:
JobCop[playerid] = 0;
Reply


Messages In This Thread
Jobs? - by Anthony413 - 29.07.2009, 00:41
Re: Jobs? - by matdav - 29.07.2009, 01:57
Re: Jobs? - by Anthony413 - 29.07.2009, 06:38
Re: Jobs? - by Abernethy - 29.07.2009, 06:54
Re: Jobs? - by Anthony413 - 29.07.2009, 09:23
Re: Jobs? - by pagie1111 - 29.07.2009, 09:31

Forum Jump:


Users browsing this thread: 2 Guest(s)