View Single Post
  #1  
Old 12-11-2009, 04:49 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Not counting deaths

I have this script for sword only areas. In the areas where this weapon is added, deaths will not count. Any idea why?

PHP Code:
function onCreated() join("weapon_functions");

//#CLIENTSIDE

function onCreated()
{
  
enableweapons();
  
client.swordOnly true;
  
//s+a, ect disabled in -*System
  
player.ap += 50;
  
player.hearts 6;
  
player.ap -= 50;
  
disablemap(); 
  
disablepause(); 
  
disableselectweapons();
  
disableselectitems();
}

//keep this here, hearts are resetting when player dies
function onPlayerDies()
{
  
player.ap += 50;
  
player.hearts 6;
  
player.ap -= 50;
}

function 
onPlayerEnters()
{
  
player.ap += 50;
  
player.hearts 6;
  
player.ap -= 50;
  
  if (
client.swordOnly)
  {
    
disableweaponselect(); 
    
player.selectedweapon findWeaponIdthis );
  }
  else {
    
//Disabled; trying to fix the enablefeatures mess. I don't think removing this will break anything.
    //enablefeatures(allfeatures);
    
enablemap(); 
    
enablepause(); 
    
enableweapons(); 
    
enableselectweapons();
    
enableselectitems();
    
destroy();
  }

__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote