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.