01.11.2015, 09:28
PHP код:
COMMAND:asay(playerid, params[])
{
new Announce[35];
if(sscanf(params, "s[35]", Announce)) return SendClientMessage(playerid, -1, "ERROR: The correct syntax is /asay [Message]");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Only RCON Admins can use the command");
GetPlayerName(playerid, pInfo[playerid][Nick], 20);
format(string, SOS, "Admin %s: %s", pInfo[playerid][Nick], playerid, Announce);
SendClientMessageToAll(0xFFC0CBAA, string);
return 1;
}