SA-MP Forums Archive
Help, car(key) - 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, car(key) (/showthread.php?tid=69652)



Help, car(key) - Typhome - 19.03.2009

Hello, i need help

I added:
Код:
	AddStaticVehicleEx(560,1113.905,-306.1669,73.99219,91.17463,90, -1, 30000); // Hitman sultan 133
	AddStaticVehicleEx(560,1106.967,-311.242,73.99219,359.7313, -1, 30000); // Hitman sultan 134
And i complied.. I go server and entering this car, says You dont have bus key for this....!

help? How do i make Hitmans only can enter/driving this car.. ?

Source is Los Angeles RolePlay (GF edit)


Re: Help, car(key) - Shellegg - 19.03.2009

i think GF have a command of /givecar
/givecar hitman.. try that command


Re: Help, car(key) - Typhome - 19.03.2009

Help..!


Re: Help, car(key) - Typhome - 19.03.2009

Bump! Need help please!


Re: Help, car(key) - James_Alex - 19.03.2009

change "30000" by your team id
me i thing it's 80000


Re: Help, car(key) - westre - 19.03.2009

Quote:
Originally Posted by James_Alex
change "30000" by your team id
me i thing it's 80000
The last argument represents the respawn delay since its AddStaticVehicleEx
By putting your team id there for example 2, the car will respawn in 2 milliseconds.


Re: Help, car(key) - Google63 - 19.03.2009

look on STATE_DRIVER ... there's definition what to do if player is in vehicle.. so change vehicle ids and then it will work


Re: Help, car(key) - Typhome - 20.03.2009

Код:
		if(newcar >= 56 && newcar <= 58)
		{
		  if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8) { }
		  else
			{
		    SendClientMessage(playerid,COLOR_GREY," You don't have keys of this vehicle !");
		    RemovePlayerFromVehicle(playerid);
		  }
		}
How i add Sultan id car 560 ?


Re: Help, car(key) - MenaceX^ - 20.03.2009

Because it's stupid GodFather script.


Check the cars' IDs, they need to have a match with the hitmen keys.


Re: Help, car(key) - Typhome - 20.03.2009

Help! Where i add cars id 560 ??