20.02.2013, 16:14
I created this command for admins level 3 but it still works for normal players with level 0.
Код:
CMD:atalk(playerid, params[]) { new string[256], pName[MAX_PLAYER_NAME]; if(APlayerData[playerid][PlayerLevel] >= 3 || IsPlayerAdmin(playerid)) if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFF, "/atalk [text]"); GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "{1BBFE0} ***Admin %s:{FFFFFF} %s", pName, params); SendClientMessageToAll(0xFFFFFFF, string); return 1; }