zcmd + global if OnPlayerCommandReceived
#1

Hi. I've got bunch of commands. I won't start every simple command with "SendClientMessage - you're not an admin!".

I would like to make global if in OnPlayerCommandReceived.

Should I do something like this..:

Код:
if(CallRemoteFunction("adminspec", "", false) || CallRemoteFunction("adminspawn", "", false)) return SendClientMessage(playerid,0,"You're not an admin"), 1;
or what?

Regards.
Reply


Messages In This Thread
zcmd + global if OnPlayerCommandReceived - by IgrexolonO - 23.02.2013, 16:23
Re: zcmd + global if OnPlayerCommandReceived - by LarzI - 23.02.2013, 16:30
Re: zcmd + global if OnPlayerCommandReceived - by IgrexolonO - 23.02.2013, 16:33
Re: zcmd + global if OnPlayerCommandReceived - by LarzI - 23.02.2013, 16:35
Re: zcmd + global if OnPlayerCommandReceived - by IgrexolonO - 23.02.2013, 16:38

Forum Jump:


Users browsing this thread: 3 Guest(s)