17.04.2017, 00:10
PHP код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
static string[76], name_player[24];
GetPlayerName(playerid, name_player, sizeof name_player);
for(new i; i <= GetPlayerPoolSize(); i ++)
{
if(IsPlayerConnected(i) && Player[i][Admin] > 0) // Troque "Player[i][Admin]" pela variбvel do seu gamemode
{
format(string, sizeof string, "O player %s digitou o comando %s", name_player, cmdtext);
SendClientMessage(i, -1, string);
}
}
return 1;
}