18.09.2012, 03:43
have have a enum for cars ids
enum TeamCars
{
GroveStreet,
Police
}
new Cars[TeamCars];
can you help me now thats just an example of how i have the team cars?! to do it now cuz im trying to aviod using enum
Edit:nm i tried something praying it would work it did
enum TeamCars
{
GroveStreet,
Police
}
new Cars[TeamCars];
can you help me now thats just an example of how i have the team cars?! to do it now cuz im trying to aviod using enum
Edit:nm i tried something praying it would work it did
Код:
new engine, lights, alarm, doors, bonnet, boot, objective, vehicleid, string[128], Float:vx, Float:vy, Float:vz; if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "You are not driving a vehicle."); if(vehicleid == 509 || vehicleid == 481 || vehicleid == 510) return SendClientMessage(playerid, COLOR_GREY, "Bicycles have no engine."); GetVehiclePos(vehicleid, vx, vy, vz); if(IsPlayerInRangeOfPoint(playerid, 3, vx, vy, vz)) vehicleid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);