Thread: Help needed
View Single Post
  #1  
Old 04-30-2011, 11:13 AM
JesusFreak250 JesusFreak250 is offline
Vendetta
Join Date: Nov 2010
Location: United Kingdom
Posts: 262
JesusFreak250 will become famous soon enough
Help needed

hey I'm currently learning to script and I was on testbed just playing about trying to make a gralat script so that the player can make there gralats go up to 1000. It seems to work fine but after about 0.5 of a second the gralats go back to what i had before i used the weapon. I'm guessing it's something to do with it being clientside and it needs to be serverside but I'm not sure. So i need some help to make it work. I know its probably really bad but its one of my first attempt.

HTML Code:
//#CLIENTSIDE
  
  function onKeyPressed(code, key, scancode) {
   
   if (key == "3") {
    
    player.rupees = 1000;
  }
 }
Reply With Quote