Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:resetreisrankss(playerid, params[]) {
- if(strcmp(pName(playerid),"[KF]Cexaxl", false) && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, red,"Yo nigga! you gotta be the legend cexaxl to use this command.");
- new buf[64], i;
- i = 0;
- new string[128];
- format(string,sizeof string,"Yo nigga, administrator %s has demoted your rise rank!",pName(playerid));
- while(ffind("ladmin/users/*.sav", buf, sizeof(buf), i))
- {
- new fname[256];
- format(fname,sizeof(fname),"ladmin/users/%s",buf);
- dini_IntSet(fname, "REIS", 0);
- strdel(buf, strfind(buf,"sav", false, 0)-1, strlen(buf));
- printf(buf);
- for(new i1 = 0; i1 < MAX_PLAYERS; i1++) {
- if(IsPlayerConnected(i1) && !strcmp(pName(i1), udb_decode(buf), false) && PlayerInfo[i1][REIS]) {
- SendClientMessage(i1, blue, string);
- PlayerInfo[i1][REIS] = 0;
- }
- }
- }
- SendClientMessage(playerid, blue,"All rise members has been successfully demoted!");
- return 1;
- }
Add Comment
Please, Sign In to add comment