Advertisement
BlackYoup

GSC

Jun 15th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.56 KB | None | 0 0
  1. weaponBuy(){
  2.     self endon("disconnect");
  3.     self endon("death");
  4.     self endon("out_shop");
  5.     self endon("inFrontOfWeapon");
  6.     self endon("leaveFrontOfWeapon");
  7.  
  8.     for(;;){
  9.         self notifyOnPlayerCommand("buyWeapon", "+activate");
  10.         self waittill("buyWeapon");
  11.         self notify("newWeapon");
  12.         self takeWeapon(self getCurrentWeapon());
  13.         wait 0.1;
  14.         self _giveWeapon(self.shop["inFrontOfWeapon"]["weapon_name"], 0);
  15.         self switchToWeapon(self.shop["inFrontOfWeapon"]["weapon_name"]);
  16.         self giveMaxAmmo(self.shop["inFrontOfWeapon"]["weapon_name"]);
  17.         wait 0.01;
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement