26.01.2010, 12:56
Let's say OnPlayerCommandText
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); printf("Command: %s: %s" ,pName, cmdtext);// Prints for example: Command: [NWA]Hannes: /kickme return 0/1; //If you return 0, it will only print for commands in this script. If you return 1, it will print for all scripts that uses commands. }