28.08.2010, 07:39
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
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
doesn't work. Thanks in advance for help.
pawn Код:
if (PlayerInfo[playerid][LoggedIn]==0) return SendClientMessage(playerid,red,"Login first to use commands.");
pawn Код:
OnPlayerCommandText(playerid,cmdtext)
{
if (PlayerInfo[playerid][LoggedIn]==0) return SendClientMessage(playerid,red,"Login first to use commands.");
}