Thread: Fix Script Plz?
View Single Post
  #3  
Old 09-14-2003, 09:59 AM
mewtoo18 mewtoo18 is offline
Registered User
Join Date: Sep 2003
Location: Southbend IN
Posts: 41
mewtoo18 is on a distinguished road
here

i shortened it by one comand, lol, still wont work way i wanted to =/:

if (created) {this.mode = 1;}
if (keypressed && strequals(#p(1),1) && this.mode = 1 {
setstring client.dir,#v(playerdir);
this.mode = 2;
}
if (this.mode = 2) {
timeout=.05;
if (keydown(0) || keydown(1) || keydown(2) || keydown(3) ) {
playerdir = strtofloat(#s(client.dir));
}
if (keypressed && strequals(#p(1),2) && this.mode = 2 {
this.mode = 1;
timeout = 0.00;
}
}