13.07.2012, 21:21
Are you using zcmd, right?
You can use this:
You can use this:
pawn Code:
public OnPlayerCommandReceived(playerid, cmdtext[])// ZCMD's callback.
{
//Example of condition \/-------------Example of command \/
if( IsPlayerLogged(playerid) == 0 && strcmp(cmdtext, "/login", true) != 0)
return SendClientMessage(playerid, -1, "You are not logged."), 0;
//--------------------Example of messange /\
return 1;
}