Faction Cars
#1

how can i add more cars in factions
For example The Faction Russian Bratva:
Код:
		if(newcar == 69 || newcar == 70 || newcar == 71 || newcar == 99 || newcar == 100 || newcar == 101)
		{
		  if(PlayerInfo[playerid][pMember] == 11||PlayerInfo[playerid][pLeader] == 11) { }
		  else
			{
		    SendClientMessage(playerid,COLOR_GREY,"  You are not a Russian Bratva Member !");
		    RemovePlayerFromVehicle(playerid);
		  }
		}
And the AddStaticVehicle Code
Код:
	AddStaticVehicleEx(415,1242.8447,-2018.2719,60.0984,180.2751,50, 50, 60000);//69 Russian Bratva /*Sentinel*/
	AddStaticVehicleEx(550,1247.9614,-2045.3164,59.7690,268.9492,50, 50, 60000);//Russian Bratva/*Sentinel*/
	AddStaticVehicleEx(560,1276.6172,-2045.9310,59.0498,89.1410,50, 50, 60000);//Russian Bratva/*Sentinel*/
IF i add more cars on addstaticvehicle it appears bugs like "You are not hitman"etc
Reply
#2

no one knows?
Reply
#3

under gamemodeinit
Reply
#4

Isn't what i mean
If i add more cars UNDER Gamemodeinit i get bugs like "you are not (faction name)"
Can you explain me what are those numbers 69,70,71,99,100,101?
Код:
if(newcar == 69 || newcar == 70 || newcar == 71 || newcar == 99 || newcar == 100 || newcar == 101)
Reply
#5

Instead of using variables (like it should have), It's using the vehicle ID directly without saving it. So if the vehicle's ID changes because someone added cars to the gamemode, it won't work anymore.

Remove the vehicles you made and add them to the END of OnGameModeInit
Reply
#6

Quote:
Originally Posted by Joe Staff
Instead of using variables (like it should have), It's using the vehicle ID directly without saving it. So if the vehicle's ID changes because someone added cars to the gamemode, it won't work anymore.

Remove the vehicles you made and add them to the END of OnGameModeInit
Then everyone can use it,and isn't what i want
Reply
#7

those numbers are Vehicles IDs. and they are pretty much fucked up in GF GM for begginers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)