help - 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: help (
/showthread.php?tid=482005)
help -
Boss201 - 18.12.2013
i want to a vehicle light and engine system i found a tutortial but it is not working
like in rp server
press E to switch on engine
press L to switch on lights
i want the code when we press e key on keyboard vehicle engine turn on , press e again vehicle engine turns off
same thing for lights
if someone could help me to make the code or give me a few links which have some tut like this.
Thnaks
Re: help -
Excelize - 19.12.2013
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/ManualVehicleEngineAndLights
There should help you.
Re: help -
Boss201 - 19.12.2013
thanks for helping but you didnt get my point , i know
public OnGameModeInit()
{
ManualVehicleEngineAndLights();
}
i just want the function
for example i use
CMD:lighston(playerid,params[])
SendClientMessage(playerid , -1"light has been switched on )
.........................................<<<<<<<<< << i want this function which will turn the light on and a fucntion for light off
Re: help -
iOxide - 19.12.2013
Something like this would work?
https://sampforum.blast.hk/showthread.php?tid=267125