Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: gamyster on October 10, 2008, 03:30:00 pm
-
Can Someone post !engine on/off cmd
-
Heres the code:
elseif (engineoff == $3) && ($2 < 100) {
WSV.cmdlevelcheck $1-
if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.setvehicleengine $4 0
if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.msg $2 Vehicle $chr(91) $WSV.vehiclename($4) $chr(93) engine turned off
else WSV.msg $2 This is not your vehicle!
}
elseif (engineon == $3) && ($2 < 100) {
WSV.cmdlevelcheck $1-
if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.setvehicleengine $4 2
if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.msg $2 Vehicle $chr(91) $WSV.vehiclename($4) $chr(93) engine turned on
else WSV.msg $2 This is not your vehicle!
}
But vcmp 0.3z does not support the engineon function correctly. Anyway you can turn it on again, by entering the vehicle.
-
this aint working man it says this is not ur vehicle :( as i own that vehicle! so can u make without owning stuff i mean any new person who type !engineoff and on will work if he dont own the car
-
plz place it at right place so that ur brackets will close properly by other command ......... ;)
Cya
Punjabi_goli
-
plz can u make without checking if he owns the car
-
Done:
elseif (engineoff == $3) && ($2 < 100) {
WSV.cmdlevelcheck $1-
WSV.setvehicleengine $4 0
$WSV.vehiclename($4) $chr(93) engine turned off
}
elseif (engineon == $3) && ($2 < 100) {
WSV.cmdlevelcheck $1-
WSV.setvehicleengine $4 2
$WSV.vehiclename($4) $chr(93) engine turned on
}
-
THANK you its working
-
But i saw in a server that when u type !engineon the player itself getout from car and get in in about 1 second!
-
That is a really useless stuff
-
Its a bug ..... :o
-
and alias for engineon not alias -.-!
-
and alias for engineon not alias -.-!
??? ??? What ??? ???
-
I guess ariel wants to see alias <something> { blah }
-
the scripts engineon and engineoff using alias not?
-
It's not using any other aliases then the default aliases in WSV I think. (Not sure though)