View Single Post
  #4  
Old 02-07-2006, 01:08 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
No it needs to be done serverside.

PHP Code:
if (actionserverside) { // receives the triggeraction
  
if (strequals(#p(0),params)) { // #p(x) are the params
// the above line was not needed but i just added it in for demo
    
for(i=0i<playerscounti++) {  // loops through everyone in the room
      
with(players[i]) {  // tells the npc which player to perform the actions on
        
playerhearts 0;
      }
    }
  }
}
//#CLIENTSIDE
if (weaponfired) {
  
triggeraction 0,0,serverside,WEAPONNAME,params;

__________________
Reply With Quote