View Single Post
  #17  
Old 01-11-2004, 08:47 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Re: Re: Need CS/SS help!

Quote:
Originally posted by DarkShadows_Legend


/* *\
Notes:
1. triggers an action to the control.
Inside the control there will be a section that will say
if(actionserverdarts){
if(strequals(#p(0),sub))
playerdarts -= strtofloat(#p(1));
}
}
[/code]
*slaps*

Don't do that. Teach how to do it in the weapon. It's a great deal more secure.

Let me help.

NPC Code:

if (actionserverside){
if (strequals(#p(0),fired)){
playerdarts -= 4;
}
}
//#CLIENTSIDE

if (weaponfired){
triggeraction 0,0,serverside,weaponname,fired;
}



pointless if loriel is correct. But it is important for all the other stuff you can't edit clientside.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote