daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Aug 13th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:resetraportfbi(playerid, params[])
  2. {
  3.     if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Error: You need to login first.");
  4.     if(PlayerInfo[playerid][pLeader] == 2)
  5.     {
  6.         foreach(Player, i)
  7.         {
  8.             if(IsPlayerConnected(i) && PlayerInfo[i][pMember] == 2)
  9.             {
  10.                 PlayerInfo[i][pRunners] = 0;
  11.             }
  12.            new query[200];
  13.            format(query, sizeof(query), "UPDATE `users` SET `Runners`='0' WHERE `Member`='2'");
  14.            mysql_query(SQL, query);
  15.         }
  16.         SCM(playerid, COLOR_YELLOW, "Raportul a fost resetat!");
  17.     }
  18.     return 1;
  19. }
RAW Paste Data
Top