18.12.2012, 05:51
There's a better way to make a faction cars. Here's how i do it for my script, for example, this is my san news faction cars. Basically the NewsCars in my case starts from NewsCars[0] and goes all the way up to NewsCars[6], which'll = 7 of them. If you're working with an rp script, this way is alot easier, that way, if you want to make it where x type of car like say, 2 infernuses is a faction car, but the others ain't. This is the way to do it.
Код:
new NewsCars[7]; // This is basically the amount of Faction Cars you want for that car if(newcar == NewsCars[1])//News Van 2 { if(PlayerInfo[playerid][pAdmin] < 3) { if(PlayerInfo[playerid][pMember] != 9) { SendClientMessage(playerid, COLOR_LIGHTRED, " You don't have the keys!"); RemovePlayerFromVehicle(playerid); } } return 1; }