zcmd preventing command execution
#1

I'm learning zcmd and i'm wondering how to disable commands usage when player is not logged in. Do i have to add to every command

pawn Код:
if (PlayerInfo[playerid][LoggedIn]==0) return SendClientMessage(playerid,red,"Login first to use commands.");
or there is a fastest way? Because adding this line to every command will take some time. Also due to zcmd is function based OnPlayerCommandText don't affect it. So this what i tried first
pawn Код:
OnPlayerCommandText(playerid,cmdtext)
{
if (PlayerInfo[playerid][LoggedIn]==0) return SendClientMessage(playerid,red,"Login first to use commands.");
}
doesn't work. Thanks in advance for help.
Reply


Messages In This Thread
zcmd preventing command execution - by grabek4444 - 28.08.2010, 07:39
Re: zcmd preventing command execution - by Retardedwolf - 28.08.2010, 07:42
Re: zcmd preventing command execution - by DRIFT_HUNTER - 28.08.2010, 09:00
Re: zcmd preventing command execution - by Calgon - 28.08.2010, 09:13
Re: zcmd preventing command execution - by grabek4444 - 28.08.2010, 09:15
Re: zcmd preventing command execution - by DRIFT_HUNTER - 28.08.2010, 09:35

Forum Jump:


Users browsing this thread: 2 Guest(s)