Please help with making jobs
#9

If you if you assign the variable to 1, when you give the job. Then only police should be able to do the command because if the variable equals 0 (or less) it will return an error message.

EDIT: And dont forget to reset the variable onplayerdisconnect. And/or when they quit the job.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    ispolice[playerid] = 0;
    return 1;
}
Reply


Messages In This Thread
Please help with making jobs - by Gavin - 24.11.2010, 08:27
Re: Please help with making jobs - by Leeroy. - 24.11.2010, 08:30
Re: Please help with making jobs - by Gavin - 24.11.2010, 09:18
Re: Please help with making jobs - by Gavin - 24.11.2010, 09:42
Re: Please help with making jobs - by <Weponz> - 24.11.2010, 09:47
Re: Please help with making jobs - by Gavin - 24.11.2010, 09:56
Re: Please help with making jobs - by iggy1 - 24.11.2010, 10:12
Re: Please help with making jobs - by Gavin - 24.11.2010, 10:17
Re: Please help with making jobs - by iggy1 - 24.11.2010, 10:20
Re: Please help with making jobs - by Gavin - 24.11.2010, 10:59

Forum Jump:


Users browsing this thread: 2 Guest(s)