27.04.2014, 07:48
exp
Код:
if(strcmp(cmd, "/taviso", true) == 0) { if(pAdmin[playerid] > 1 || pAdmin[playerid] > 2 || pAdmin[playerid] > 3 || pAdmin[playerid] > 4 || pAdmin[playerid] > 5 || Helper[playerid] == 1) { new plid; if(sscanf(cmdtext, "s[14]u", cmd, plid)) { SendClientMessage(playerid, Vermelho, "Digite: /taviso [id]"); return 1; } if(IsPlayerConnected(plid)) { FloodAlert[plid] = 0; format(string, sizeof(string), "O(A) Administador (a) %s Tirou um aviso de (%s/3). Motivo: %s ",GetPlayerNameEx(playerid), playerid); SendClientMessage(plid, tcadm, string); SendClientMessage(playerid, Verde, "Comando efetuado com sucesso!"); } else { SendClientMessage(playerid, Vermelho, "Valor invбlido, tente novamente!"); } } return 1; }