18.01.2016, 04:00
PHP код:
for(new x;x<sizeof(RentVehicle);x++)
{
RentVehicle[x] //your codes with it.
}
PHP код:
IsRentVehicle(carid)
{
for(new v = 0; v < sizeof(RentVehicle); v++)
{
if(carid == RentVehicle[v]) return 1;
}
return 0;
}
After that , OnPlayerEnterVehicle :
PHP код:
(use "else" if there many already given )if(RentVehicle(vehicleid))
{
//your codes
}