27.08.2009, 12:12
Hi
If you want manually call ZCMD_ProcessCommand
but if you don't:
If you want manually call ZCMD_ProcessCommand
pawn Code:
#define ZCMD_NO_CALLBACK
#include <zcmd>
public OnPlayerCommandText(playerid, cmdtext[])
{
if (IsPlayerConnected(playerid) && gPlayerLogged[playerid] == 1)
{
return ZCMD_ProcessCommand(playerid, cmdtext);
}
SendClientMessage(playerid,COLOR_RED,"[INFO:] Your not logged in, therefore you can not use any commands.");
SendClientMessage(playerid,COLOR_RED,"[INFO:] Type your password to register/login.");
return 1;
}
pawn Code:
#include <zcmd>
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!IsPlayerConnected(playerid) || gPlayerLogged[playerid] != 1)
{
SendClientMessage(playerid,COLOR_RED,"[INFO:] Your not logged in, therefore you can not use any commands.");
SendClientMessage(playerid,COLOR_RED,"[INFO:] Type your password to register/login.");
return 1;
}
return 0;
}