17.03.2011, 20:51
pawn Код:
CMD:a(playerid, params[]) {
// Checking if is OVER 1, note so level 1 admin won't work for this command, add '=' after the '>' for it to work.
if(GetPVarInt(playerid, "Level") > 1) {
new
szPlayerName[MAX_PLAYER_NAME],
szMessage[128];
GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
format(szMessage, sizeof(szMessage), "[Admin Chat] %s says: %s", szPlayerName, params);
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && GetPVarInt(i, "Level") > 1) {
SendClientMessage(i, 0xFFFF00AA, szMessage);
}
}
}
return 1;
}
CMD:admin(playerid, params[]) {
return cmd_a(playerid, params);
}