18.10.2012, 15:25
Quote:
I've tested it, well i can't promote myself from Rcon or Scripftiles > TFAdmin > Accounts etc...
You will have to add Код:
if(AccInfo[playerid][LoggedIn] == 1) { if(AccInfo[playerid][Level] >= 6 || IsPlayerAdmin(playerid)) |
Thx to all
Guys in the command smute there are a problem.
Insert info[id][mute] = 1;
The command is:
Код:
CMD:mute(playerid,params[]){ SendCMDSToAdmin(playerid,"Mute"); if(info[playerid][livello] >= comandi[mute]){ if(server[leanguage] == 0){ if(sscanf(params,"u",id))return SendClientMessage(playerid,COLORE_ROSSO,"USA:/Mute ID"); if(!IsPlayerConnected(id))return SendClientMessage(playerid,COLORE_ROSSO,"Player non connesso"); if(info[id][mute] == 1)return SendClientMessage(playerid,COLORE_ROSSO,"Player mutato!"); format(stringa,3000,"[AdminCMD]%s ha mutato %s",GetPlayerNameEx(playerid),GetPlayerNameEx(id)); } else if(server[leanguage] == 1){ if(sscanf(params,"uu",id,other))return SendClientMessage(playerid,COLORE_ROSSO,"USE:/Mute ID MINUTE"); if(!IsPlayerConnected(id))return SendClientMessage(playerid,COLORE_ROSSO,"Player not connect"); if(info[id][mute] == 1)return SendClientMessage(playerid,COLORE_ROSSO,"Player muted!"); format(stringa,3000,"[AdminCMD]%s has muted %s",GetPlayerNameEx(playerid),GetPlayerNameEx(id)); } SendClientMessageToAll(COLORE_GIALLO,stringa); info[id][mute] = 1; } else { SendLevelErrorCMDS(comandi[mute],playerid); } return 1; }