17.08.2013, 09:13
pawn Код:
CMD:achat(playerid,params[])
{
new text[250], pname[24], str[150];
GetPlayerName(playerid, pname, 24);
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be an rcon admin to use this command.!");
if(sscanf(params("s[250]", text)) return SendClientMessage(playerid, -1, "USAGE: /achat [ text ]");
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerAdmin(i))
{
format(str, 150, "A.Chat: %s[%i]: %s", pname, playerid, text);
SendClientMessage(i, -1, str);
}
}
return 1;
}