20.03.2009, 19:31
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/admint", cmdtext, true, 7) == 0)
{
new PlayerName[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(str, sizeof(str), "* admin %s(%d) has restarted the server!", PlayerName, playerid);
SendClientMessageToAll(colour, str);
return 1;
}
return 0;
}