04.05.2013, 08:08
hello!
How can I make like that, when a player type one command, then an admin can see what he/she typed...Like:
%s Has Typed: %s....
I tried like this, but it doesn't work.
Code:
public OnPlayerText(playerid, text[])
But this didn't work
Thanks for your help!
How can I make like that, when a player type one command, then an admin can see what he/she typed...Like:
%s Has Typed: %s....
I tried like this, but it doesn't work.
Code:
public OnPlayerText(playerid, text[])
PHP код:
if (text[0] == '/')
{
new CMDMessage[128];
GetPlayerName(playerid, CMDMessage, MAX_PLAYER_NAME);
format(CMDMessage , sizeof CMDMessage, "*__* %s Has Typed: %s" , CMDMessage, text[1]);
SendAdminMessage(COLOR_GREY, CMDMessage);
return 1;
}
Thanks for your help!