[help] lock vehicle
#1

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

Can you show the code you have so far?
Reply
#3

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.
Reply
#4

Up :P
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)