View Single Post
  #18  
Old 01-11-2004, 09:39 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Re: Need CS/SS help!

Quote:
Originally posted by Idrox0
I just want info on client/serverside, because I STILL don't get it. So, I want a VERY good scripter(like Kai) to change this example script to one that would work on an NPC server.
NPC Code:

if (playertouchsme) {
toweapons 4-Way Bow;
hide;
}
if (weaponfired) {
if (playerdarts=>4) {
shootarrow 0;
shootarrow 1;
shootarrow 2;
shootarrow 3;
playerdarts-=4;
}
}



I apologize for the relatively long script, I'm just making as simple as possible, not that you can't handle it, though.
Use >= and not => o.o;
NPC Code:

//#CLIENTSIDE
if (playertouchsme){
addweapon 4-Way Bow;
destroy;
}



NPC Code:

if (actionserverside){
if (strequals(#p(0),bow)){
if (strequals(#p(1),4way)){
//shoot stuff
}
}
}
//#CLIENTSIDE
if (weaponfired){
if (playerdarts>=4){
triggeraction 0,0,serverside,bow,4way;
}
}


Not familiar with NPCserver neither, so...
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote