SA-MP Forums Archive
I'm looking for a simple script... - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I'm looking for a simple script... (/showthread.php?tid=196384)



I'm looking for a simple script... - 06leachr - 05.12.2010

I'm looking for a simple script... which I can easily add to my gamemode.

I want the script to require you to do /engine upon entering a vehicle, before allowing it to move.
I also want a /seatbelt script, and a /checkbelt script for LEOs.

If anyone can put me in the right direction I would appreciate it.

Thanks.


Re: I'm looking for a simple script... - Hornet600 - 05.12.2010

add Engine to your enum then you should add something like vehicleinfo[vehicleid][Engine] = 0;

And when a players enters a vehicle make a check like this

for(new i; i < MAX_VEHICLES; i++)
{
ifvehicleinfo[i][Engine] == 0)
{
// freeze the player here
}
else
{
unfreeze
}
}


Re: I'm looking for a simple script... - 06leachr - 05.12.2010

Sorry, but I'm a complete noob. Can someone show me how to do this step-by-step?


Re: I'm looking for a simple script... - Hornet600 - 05.12.2010

You could download a pre made script and learn with it.


Re: I'm looking for a simple script... - 06leachr - 05.12.2010

Yes that's a good idea, thank you for your help.