Faction Cars - 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: Faction Cars (
/showthread.php?tid=124171)
Faction Cars -
Jo1Nt - 29.01.2010
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
Re: Faction Cars -
Jo1Nt - 29.01.2010
no one knows?
Re: Faction Cars -
Naruto4 - 29.01.2010
under gamemodeinit
Re: Faction Cars -
Jo1Nt - 29.01.2010
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)
Re: Faction Cars -
Joe Staff - 29.01.2010
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
Re: Faction Cars -
Jo1Nt - 29.01.2010
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
Re: Faction Cars -
Naruto4 - 31.01.2010
those numbers are Vehicles IDs. and they are pretty much fucked up in GF GM for begginers