[Cars for factions]
#1

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
Reply
#2

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
}
}
Reply
#3

thanks ill try it later now need to go
Reply
#4

That will work, so you know
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)