return as invalid command
#13

pawn Код:
CMD:vehicle(playerid, params[])
{
    new Float:X, Float:Y, Float:Z, Float:A;
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, A);
    CreateVehicleEx(GetFreeVehicleSlot(), PName(playerid), 411, X, Y, Z, A, 100);
    return 1;
}

stock CreateVehicleEx(ID, Owner[], modelid, Float:X, Float:Y, Float:Z, Float:A, Cost)
{
    new vehicleid = CreateVehicle(modelid, X, Y, Z, A, -1, -1, 99999);
    VehicleData[ID][VehicleID] = vehicleid;
    format(VehicleData[ID][VehicleOwner], 24, Owner);
    VehicleData[ID][VehicleX] = X;
    VehicleData[ID][VehicleY] = Y;
    VehicleData[ID][VehicleZ] = Z;
    VehicleData[ID][VehicleA] = A;
    VehicleData[ID][VehicleModel] = modelid;
    VehicleData[ID][VehicleCost] = Cost;
    VehicleData[ID][VehicleSell] = Cost / 2;
    return VehicleFreeSlot[ID] = true;
}
Reply


Messages In This Thread
return as invalid command - by Unknown123 - 31.07.2011, 21:26
Re: return as invalid command - by Jefff - 31.07.2011, 22:02
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:07
Re: return as invalid command - by Jefff - 31.07.2011, 22:09
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:14
Re: return as invalid command - by Jefff - 31.07.2011, 22:16
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:17
Re: return as invalid command - by Jefff - 31.07.2011, 22:19
Re: return as invalid command - by Sasino97 - 31.07.2011, 22:22
Re: return as invalid command - by Jefff - 31.07.2011, 22:29
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:39
Re: return as invalid command - by Jefff - 31.07.2011, 22:45
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:47
Re: return as invalid command - by Jefff - 31.07.2011, 22:50
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:55
Re: return as invalid command - by Jefff - 31.07.2011, 23:01

Forum Jump:


Users browsing this thread: 1 Guest(s)