SHARE
TWEET

Untitled

a guest Jan 24th, 2020 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:removercones(playerid)
  2. {
  3.     if (PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, -1, "Você não tem autorização para usar esse comando.");
  4.  
  5.     new count = DestroyAllCones();
  6.    
  7.     new string[92];
  8.  
  9.     format(string, sizeof(string), "AdmCmd: %s, %s removeu todos os cones do servidor | Total: %d.", GetAdminCargo(playerid), PlayerName[playerid], count);
  10.     AdminChatToAll(COLOR_LIGHTRED, string, 1);
  11.  
  12.     return true;
  13. }
  14.  
  15. DestroyAllCones()
  16. {
  17.     new i = 0, c = 0;
  18.      
  19.     while (i < MAX_CONES)
  20.     {
  21.         if (Iter_Contains(IterCone, i))
  22.         {
  23.             Iter_Remove(IterCone, i);
  24.  
  25.             DestroyDynamicObject(ConeInfo[i][coneObject]);
  26.            
  27.             ++c;
  28.         }
  29.         i++;
  30.     }
  31.     return c;
  32. }
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