- 0
Cum fac ca comanda setlevel sa functioneze si la RCON?
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
onix09
Uitati comanda mea de SetLevel
COMMAND:setlevel(playerid,params[]) { new level,playerid2,file[256]; new tmp[256], tmp2[256], Index,str[50],str2[50]; tmp = strtok(params,Index), tmp2 = strtok(params,Index),playerid2 = strval(tmp),level = strval(tmp2); format(file,sizeof(file),"xAdmin/Accounts/%s.txt",GetName(playerid2)); if(Account[playerid][Level] < 5) return SendClientMessage(playerid,Yellow,"* Iti trebuie nivel 5 ca sa folosesti aceasta comanda!"); if (sscanf(params, "ud", playerid2, level)) return SendClientMessage(playerid, Yellow, "FOLOSESTE: /setlevel id level"); if(level > 5 ) return SendClientMessage(playerid,Yellow,"Level incorect"); if(!IsPlayerConnected(playerid2))return SendClientMessage(playerid,Yellow,"Playerul nu este conectat!"); Account[playerid2][Level] = level; dini_IntSet(file,"Level",level); format(str,sizeof(str),"* Iai setat lui %s nivelul la %d",GetName(playerid2),level); SendClientMessage(playerid,Blue,str); format(str2,sizeof(str2),"* Admin '%s' te-a facut nivel %d",GetName(playerid),level); SendClientMessage(playerid2,Blue,str2); return 1; }Vreau sa o fac si pentru RCON cum o fac?
1 answer to this question
Recommended Posts