Auto Anti fall off Bike - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Auto Anti fall off Bike (
/showthread.php?tid=373805)
Auto Anti fall off Bike -
kbalor - 31.08.2012
Anyone know Auto Antifall off bike. That automatically put's you in your current bike when you fell?
Re: Auto Anti fall off Bike -
Misiur - 31.08.2012
OnPlayerStateChange is your friend on this one. Just check if vehicle id was bike and put player back on it
`e: ▼ Help! I'm stuck in recursive loop
Re: Auto Anti fall off Bike - HuSs3n - 31.08.2012
https://sampforum.blast.hk/showthread.php?tid=373805
Re: Auto Anti fall off Bike -
kbalor - 31.08.2012
thanks misiur but how do I make commands for /antifall - toggle on/off
Re: Auto Anti fall off Bike -
Misiur - 31.08.2012
pawn Code:
new mode = 0;
CMD:antifall(playerid, params[]) {
mode = !mode;
return SendClientMessage(playerid, -1, "Toggled");
}
public OnPlayerStateChange(playerid, newstate, oldstate) {
if(oldstate == PLAYER_STATE_DRIVER && wasOnBike && mode) {
//PutPlayerInVehicle
}
}
You have to implement the wasOnBike and putplayerinvehicle yourself. Have fun
Re: Auto Anti fall off Bike - HuSs3n - 31.08.2012
Quote:
Originally Posted by HuSs3n
|
lol sorry i copied a wrong thread
this ,
https://sampforum.blast.hk/showthread.php?tid=33245
Re: Auto Anti fall off Bike -
Jack Kreuz - 31.08.2012
good
Re: Auto Anti fall off Bike -
kbalor - 31.08.2012
Quote:
Originally Posted by HuSs3n
|
It's okay
![Cheesy](images/smilies/biggrin.png)
I appreciate your help. I have already tried this but nothing happens. Need to convert it to zcmd.