How I lock vehicles for decoration?
#1

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!
Reply
#2

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);
Reply
#3

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

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"
Reply
#5

show lines 111 and 753
Reply
#6

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

and line 755 does not exist
Reply
#7

Did you put it all on Gamemodeinit?
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)