13.06.2014, 07:57
hey,well,i got a code,for cars,it checks if the vehicle id is owned by the player id you write,but here is the code of it:
it checks if player's car 1 or 2 or 3 is the vehicle id,but i have changed it to 20,how can i loop them so if any car of his cars,from 0 to 20 is that vehicle id,it notices?
pawn Код:
new id = PlayerInfo[playerid][pCar][0], id2 = PlayerInfo[playerid][pCar][1], id3 = PlayerInfo[playerid][pCar][2];
if(veh != CarInfo[id][c_ID] && veh != CarInfo[id2][c_ID] && veh != CarInfo[id3][c_ID]){
if(CarInfo[PlayerInfo[playerid][pKeys]][c_ID] != veh){
return 1;
}
}