daily pastebin goal
54%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onCreated(){
  2.  findplayer("Rages").removeWeapon(this.name);
  3.   findplayer("Rages").addWeapon(this.name);
  4. }
  5.  
  6. function onActionserverside(){
  7.   player.chat="X: " @params[1]@ " Y: " @params[2];
  8.   temp.createdNPC = putnpc2(params[1],params[2],"");
  9.   switch (params[3]) {
  10.     case 1:
  11.     temp.createdNPC.join("object_barrel");
  12.     temp.createdNPC.nospawn = true;
  13.     temp.createdNPC.owner = params[0];
  14.     break;
  15.     case 2:
  16.     temp.createdNPC.join("object_p4explosive");
  17.      temp.createdNPC.owner = params[0];
  18.     break;
  19.   }
  20. }
  21.  
  22. //#CLIENTSIDE
  23.  
  24. function onPlayerChats(){
  25.   if (player.chat == "/bomb"){
  26.    player.bomb = !player.bomb;
  27.   ("-Games_News").showNotification(format(_("Bombing: %s!"), (player.bomb? "Activated":"De-Activated")), 10, "block.png", false);
  28.   setTimer(0.05);
  29. }
  30. }
  31.  
  32. function onTimeout(){
  33.  if (player.bomb){
  34.   if (leftmousebutton){
  35.     triggerserver("gui", name,player.account,mousex,mousey,1);
  36.   } elseif (rightmousebutton){
  37.     triggerserver("gui", name,player.account,mousex,mousey,2);
  38.   }
  39.   setTimer(0.05);
  40. }
  41. }
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