29.09.2012, 19:30
pawn Код:
public OnPlayerText(playerid, text[]) {
if(text[0] == '!') {
if(variavelAdmin[playerid] > 0) {
static string[128], name[24], index;
format(string, sizeof(string), "(Chat administraзгo - %s): %s", (GetPlayerName(playerid, name, sizeof(name)), name), text[1]);
for(index = 0; index != GetMaxPlayers(); ++index) {
if(variavelAdmin[index] > 0) {
SendClientMessage(index, 0x00FFFFFF, string);
}
}
}
return 0;
}
return 1;
}