31.10.2013, 11:10
i thought of a cmd with enum but is this kind of enum valid??
If its right how to add this to this when a player typed a cmd??
I know im a nub ;(
pawn Код:
enum vInfo
{
ModelId,
MaxSpeedWithNitro,
MaxSpeedWithoutNitro,
EngineWeight,
SpeedRank
};
new VehicleInfo [MAX_VEHICLES] [vInfo] = {
{400,bla}
{401,bla}
{402,bla}
.
.
.
{611,bla}
};
pawn Код:
CMD:vi(playerid, params[])
if(!IsPlayerInVehicle) return SCM(playerid, color, "You Need To Be In A Vehicle");
// whats the code to check whether he is driver?
GetPlayerVehicleModel(GetPlayerVehicleId)
if(GetPlayerVehicleModel(GetPlayerVehicleId) == VehicleInfo [] [ModelId]) Return // and what to do