Thread: Shovel
View Single Post
  #14  
Old 07-23-2010, 05:28 PM
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
Well that's some fail triggering right there, why are you doing things that should be done on the clientside on the serverside?

PHP Code:
function onActionServerSide(trigger

 if(
trigger == "award"
 { 
  
// stuff 
 


//#CLIENTSIDE 
function onWeaponFired() 

 
temp.sandtiles = {170,15,8,301,358,391}; 
 if(
tiles[player.x,player.yin temp.sandtiles
 { 
  
setani("ge_shovel",NULL); 
  
temp.random=int(random(0,10));  
  if(
temp.random==5)  
  {  
    
setani("ge_chestfound",NULL);
    
triggerserver("gui"name"award");
  } 
 } else {
   
setani("shovel2",NULL); 
 } 

__________________
Quote:
Reply With Quote