View Single Post
  #2  
Old 07-09-2009, 01:22 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
player.rupees can only truly be edited on the serverside like so.

PHP Code:
function onActionServerSide() {
  if (
params[0] == "caughtfish") {
    
player.rupees += int(random(1,5));
  }
}

//#CLIENTSIDE

function onFishCaught() {
  
triggerserver("gui"name"caughtfish");

And because you're using GS2 you can write the weaponfired like so..

PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
  
// if stuff
   // do stuff

__________________
Quote:
Reply With Quote