SA-MP Forums Archive
[Cars for factions] - 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: [Cars for factions] (/showthread.php?tid=176916)



[Cars for factions] - [RP]Famyli[RP] - 15.09.2010

hello guys
i want ask today how to make cars for faction
i have 16 faction and i want make cars for all like 1 faction 4-5 cars
thanks


Re: [Cars for factions] - Voldemort - 15.09.2010

pawn Код:
new Faction1Cars[10]; // 10 - How many cars you want

Faction1Cars[0] = AddStaticVeh(....
Faction1Cars[1] = AddStaticVeh(..
...
Later in script
pawn Код:
for(new i; i < sizeof(Faction1Cars); i++;)
{
if(GetPlayerVehicleID(playerid) == Faction1Cars[i])
{
//This is faction car
}
}



Re: [Cars for factions] - [RP]Famyli[RP] - 15.09.2010

thanks ill try it later now need to go


Re: [Cars for factions] - playbox12 - 15.09.2010

That will work, so you know