Advertisement
garfield

[COD]: Remove Armas em massa

Mar 17th, 2012
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.67 KB | None | 0 0
  1. /*
  2.             @Função: remover armas em massa
  3.             @Créditos: SuYaNw
  4. */
  5.  
  6. stock RemoveWeapon(p, ...)
  7. {
  8.     static
  9.         Weap[MAX_PLAYERS][13][2],
  10.         Interator,      nInterator
  11.     ;
  12.    
  13.     for (Interator = 0; Interator < 13; Interator++) GetPlayerWeaponData(p, Interator, Weap[p][Interator][0], Weap[p][Interator][1]);
  14.    
  15.     ResetPlayerWeapons(p);
  16.  
  17.     for(Interator = 0; Interator < 13; Interator++) {
  18.         for(nInterator = 0; nInterator < numargs(); nInterator++){
  19.             if(Weap[p][Interator][0] != getarg(nInterator)){
  20.                 GivePlayerWeapon(p, Weap[p][Interator][0], Weap[p][Interator][1]);
  21.                 printf("Arg: %d | Wep: %d", getarg(nInterator), Weap[p][Interator][0]);
  22.             }
  23.         }
  24.     }
  25.     return true;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement