[Help] Cars for gangs
#1

I have gang named "Yakuza" and in HQ of Yakuza i have cast .Wenn i get in car it says "Owner:The State" How to change to just yakuza gang can use that car!!

Id of yakuza gang is "6"

Код:
        yakuza1 = AddStaticVehicle(522,995.5034,-1536.3245,13.1503,95.6494,0,0); // nrg1
	yakuza2 = AddStaticVehicle(522,995.4967,-1534.0127,13.1251,91.8309,0,0); // nrg2
	yakuza3 = AddStaticVehicle(522,995.4910,-1531.3445,13.1179,92.9196,0,0); // nrg3
	yakuza4 = AddStaticVehicle(550,985.8817,-1523.3262,13.3754,184.9439,0,0); // sunrise 1
	yakuza5 = AddStaticVehicle(550,990.3394,-1523.1312,13.3800,184.5052,0,0); // sunrise 2
	yakuza6 = AddStaticVehicle(560,977.4807,-1523.6953,13.2611,182.2492,0,0); // sultan2
	yakuza7 = AddStaticVehicle(560,981.5810,-1523.5297,13.2608,183.8173,0,0); // sultan1
	yakuza8 = AddStaticVehicle(487,985.4162,-1509.2279,23.9090,84.9166,0,0); // maverick2
	yakuza9 = AddStaticVehicle(487,1005.6432,-1526.1022,23.8880,357.5062,0,0); // maverick1
	yakuza10 = AddStaticVehicle(409,956.1715,-1510.6526,13.3334,179.4305,0,0); // limuzina
	yakuza11 = AddStaticVehicle(482,955.9377,-1550.8022,13.6940,358.8136,0,0); // burito
Reply
#2

pls help!!
Reply
#3

Use onplayerstatechange callback , when player enters vehicle , if playerid != yakuza , remove player from vehicle
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)