Quote:
Originally Posted by Russell_
OnPlayerCommandText:
pawn Код:
new str[128], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(str, sizeof(str), "%s (%d) just typed: %s", pName,playerid,cmdtext); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { SendClientMessage(i, -1, str); } }
|
Gave you +1 Reputation.
Btw, How do I do like a variable like this:
/messageson
You will now be able to see the commands that the players type.
/messagesoff
You wont be longer able to see the commands.