28.06.2011, 16:03
Kinda beginner with zcmd, can you tell me where to write the return 0 instead of return 1?
Under OnPlayerCommandPerformed or Recieved?
Under OnPlayerCommandPerformed or Recieved?
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
if(success == 0) return SendClientmessage(playerid, 0, "SERVER: Unknown command.");
}
pawn Код:
|
public OnPlayerCommandReceived(playerid, cmdtext[])
{
printf("%s(%d) Used Command - %s",Playername(playerid),playerid,cmdtext);
return 1;
}