17.06.2012, 01:48
pawn Код:
CMD:achat(playerid, params[])
{
new AdmName[24], String[128], Text[128];
if(PlayerInfo[playerid][Admin] < 1) return SendClientMessage(playerid, -1, "You Not Administrator");
if(sscanf(params, "s[128]", Text)) return SendClientMessage(playerid, -1, "Using: /achat [Text]");
GetPlayerName(playerid, AdmName, sizeof(AdmName));
format(String, sizeof(String), "Admin-Chat: %s: %s", AdmName, Text);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][Admin] > 1)
{
SendClientMessage(i, -1, String);
}
}
return 1;
}