Advertisement
Daenth

Gun Game Script

Apr 28th, 2011
6,655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. //By Daenth
  2. //Thanks to Destiny for a bunch of help.
  3. function serverCmdgungameon(%client)
  4. {
  5.     if(%client.isSuperAdmin)
  6.         {
  7.             chatMessageAll(%client, "\c6Gun Game Enabled!", 3);
  8.             activatePackage(GunGame);
  9.         }
  10. };
  11.  
  12. function serverCmdgungameoff(%client)
  13. {
  14.     if(%client.isSuperAdmin)
  15.         {
  16.             deactivatePackage(GunGame);
  17.             chatMessageAll(%client, "\c6Gun Game Disabled!", 3);
  18.         }
  19. };
  20.  
  21. package GunGame
  22. {      
  23.     function twoscore(%client,%player)
  24.     {
  25.         if(%client.score == 2)
  26.         {
  27.             %item = gunItem.getID();//the item you want to give them, change it to yours
  28.             %slot = 4;//the index of the slot
  29.             %oldTool = %player.tool[%slot];
  30.             %player.tool[%slot] = %item;
  31.                 messageClient(%player.client,'MsgItemPickup','',%slot,%item);
  32.                     if(%oldTool <= 0)
  33.                         %player.weaponCount++;
  34.         }
  35.     }
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement