SA-MP Forums Archive
How I lock vehicles for decoration? - 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: How I lock vehicles for decoration? (/showthread.php?tid=372449)



How I lock vehicles for decoration? - Lorenzosdm - 26.08.2012

I have a few vehicles that are for show, but how can you lock them that NOBODY can in?

These are the vehicles that have to be locked.

Код:
AddStaticVehicleEx(593,1080.69995117,-298.39999390,74.50000000,179.24963379,-1,-1,-1); //Dodo
AddStaticVehicleEx(593,1061.80004883,-298.00000000,74.50000000,178.74456787,-1,-1,-1); //Dodo 
AddStaticVehicleEx(487,1107.80004883,-340.39999390,74.09999847,90.00000000,3,1,-1); //Maverick
Thanks for help!


Re: How I lock vehicles for decoration? - HuSs3n - 26.08.2012

pawn Код:
new lock[3];
lock[0]=AddStaticVehicleEx(593,1080.69995117,-298.39999390,74.50000000,179.24963379,-1,-1,-1); //Dodo
lock[1]=AddStaticVehicleEx(593,1061.80004883,-298.00000000,74.50000000,178.74456787,-1,-1,-1); //Dodo
lock[2]=AddStaticVehicleEx(487,1107.80004883,-340.39999390,74.09999847,90.00000000,3,1,-1); //Maverick
SetVehicleParamsEx(lock[0],1,0,0,1,0,0,0);
SetVehicleParamsEx(lock[1],1,0,0,1,0,0,0);
SetVehicleParamsEx(lock[2],1,0,0,1,0,0,0);



Re: How I lock vehicles for decoration? - Lordzy - 26.08.2012

forum.sa-mp.com/showthread.php?t=281
See second post.


Re: How I lock vehicles for decoration? - Lorenzosdm - 26.08.2012

I get this error and warning:

Код:
C:\Users\Lorenzo\Desktop\samp server 2\gamemodes\U1.pwn(111) : error 010: invalid function or declaration
C:\Users\Lorenzo\Desktop\samp server 2\gamemodes\U1.pwn(753) : warning 203: symbol is never used: "lock"



Re: How I lock vehicles for decoration? - HuSs3n - 26.08.2012

show lines 111 and 753


Re: How I lock vehicles for decoration? - Lorenzosdm - 26.08.2012

the error: lock[0]=AddStaticVehicleEx(593,1080.69995117,-298.39999390,74.50000000,179.24963379,-1,-1,-1); //Dodo

and line 755 does not exist


Re: How I lock vehicles for decoration? - marmigs - 26.08.2012

Did you put it all on Gamemodeinit?


Re: How I lock vehicles for decoration? - Lorenzosdm - 26.08.2012

Omg im so stupid egg..btw it works thanks all man