SA-MP Forums Archive
Vehicle variables - 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: Vehicle variables (/showthread.php?tid=420273)



Vehicle variables - edzis84 - 04.03.2013

Hello.

I want to add to vehicle like variable or value idk really how to spell it right.

Its like i make radio in my car and if radio = 0 then i cant use command (/radio) but if radio = 1 then i can use it.

Please help someone.


Re: Vehicle variables - Doughty - 04.03.2013

Do you mean to?:
new radio[MAX_VEHICLES];
radio[GetPlayerVehicleID(playerid)] = 1;