28.06.2013, 21:10
You're talking about OnPlayerCommandReceived, but for some reason i can't find any wiki documentation about it..
pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(LoggedIn[playerid] ==0)return SendClientMessage(playerid,-1,"you need to login to try a command");
if(Var[playerid] ==0)return SendClientMessage(playerid,-1,"the command you typed stopped here and didn't get performed");
return 1;//This call back returns 1.
}