daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:resetraport(playerid, params[])
  2. {
  3.     if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa fii logat pentru a folosi comenzi.");
  4.     if(PlayerInfo[playerid][pLeader] == 0) return SCM(playerid,-1, "Nu esti lider");
  5.     new fid = PlayerInfo[playerid][pLeader];
  6.     foreach(Player,i) (
  7.         if(IsPlayerConnected(i) && PlayerInfo[i][pMember] == fid (
  8.             SCM(playerid,COLOR_LIGHTRED, "Raportul factiunii a fost resetat!");
  9.             PlayerInfo[i][pCommands] = 0;
  10.         }
  11.     }
  12.     new query[200];
  13.     format(query, sizeof(query), "UPDATE `users` SET `Commands`='0' WHERE `Member`='%d'", fid);
  14.     mysql_query(SQL,query);
  15.     return 1;
  16.  
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top