
12-28-2004, 07:54 AM
|
|
team canada
|
 |
Join Date: Jul 2004
Location: Canada
Posts: 5,200
|
|
NPC Troubles :(
Hello all
I am trying to make a pair of staff boots where i can set the speed but when i try to test them it turns them on but my speed does not increase nor can i walk on and through obstacles. Check it out and help pls
Quote:
NPC Scriptundefined
// NPC made by Jerret
//#CLIENTSIDE
if (weaponfired) {
if (this.inuse=0) {
this.inuse=1;
timeout = 0.05;
setplayerprop #c,Boots On
} else {
this.inuse=0;
timeout = 0;
setplayerprop #c,Boots Off
}
}
if (this.inuse==1 && timeout) {
if (keydown(0)) playery -= strtofloat(this.bootspeed);
if (keydown(1)) playerx -= strtofloat(this.bootspeed);
if (keydown(2)) playery += strtofloat(this.bootspeed);
if (keydown(3)) playerx += strtofloat(this.bootspeed);
timeout = 0.05
}
if (timeout) {timeout = 0.05}
if (playerchats) {
tokenize #c;
if (tokenscount==3){
if (strequals(#t(0),/boots)&&strequals(#t(1),speed)) {
this.bootspeed = strtofloat(#t(2))
}
}
}
if (playerchats) {
if (strequals(#c,/boots on)) {
this.inuse==1;
timeout=.05;
}
if (strequals(#c,/boots off)) {
this.inuse==0;
}}
|
|
|
|
|