SA-MP Forums Archive
[help] lock vehicle - 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: [help] lock vehicle (/showthread.php?tid=148007)



[help] lock vehicle - igalsok - 15.05.2010

Hello,
I tried everything, I need a Lock\Unlock system, I mean, lock and unlock from outside the car, if i do /lock few meters of my car it will be locked even I disconnet it still will be locked, and no one can go inside, until I will unlock it.
Please help me,
Igal.s



Re: [help] lock vehicle - juice.j - 15.05.2010

Can you show the code you have so far?


Re: [help] lock vehicle - igalsok - 15.05.2010

lol, I delete it because it just wasn't even close to the right script.
I asking you if you know a good one, that can solve my problem.
---------
look, I just moved houses from LS to LV, and I moved the vehicles too, but they are not locked, I mean only the house owner can get in and drive, not anyone, its "house car".
So I tried to do something but it didn't work either:
Код:
if(IsPlayerInAnyVehicle(playerid))
 {
 new carid;
carid = PlayerInfo[playerid][pPhousekey]+1;
 
 if(PlayerInfo[playerid][pPhousekey] == carid-1, false)
 {
  if(IsPlayerConnected(playerid))
  {
  	SendClientMessage(playerid, COLOR_GRAD2, "it is not your Vehicle!!");
	RemovePlayerFromVehicle(playerid);
	}
	   }
		return 1;
	}
I am a beginner scripter, so do not surprise if I wrote it so far from the right thing.



Re: [help] lock vehicle - igalsok - 17.05.2010

Up :P