Vehicle: File Txt
#1

There a way to add vehicles by txt?

Код:
CMD:printveh(playerid, params[])
{
    new string[100];
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    format(string, sizeof(string), "Vehicle - CreateVehicle(vehicleid,%f, %f, %f, 0, -1, -1, 6000000);", x, y, z);
    SendClientMessageToAll(-1, string);
    return 1;
}

CMD:printtrailer(playerid, params[])
{
    new string[100], Float:tmpCoords[3], trailerID, vehicleid = GetPlayerVehicleID(playerid); // get the id of the vehicle the player is driving
    trailerID = GetVehicleTrailer(vehicleid); // get the ID of the trailer attached to the current vehicle
    new trailerModel = GetVehicleModel(trailerID); // get the model of the trailer
    GetVehiclePos(trailerID, tmpCoords[0], tmpCoords[1], tmpCoords[2]); // get the position of the trailer
    format(string, sizeof string, "Trailer - CreateVehicle(%d, %f, %f, %f, 0, -1, -1, 6000000);", trailerModel, tmpCoords[0], tmpCoords[1], tmpCoords[2]);
    SendClientMessageToAll(-1, string);
    return 1;
}
Reply


Messages In This Thread
Vehicle: File Txt - by DerickClark - 01.07.2018, 04:06
Re: Vehicle: File Txt - by Athos00 - 01.07.2018, 06:45
Re: Vehicle: File Txt - by DerickClark - 01.07.2018, 06:50
Re: Vehicle: File Txt - by RogueDrifter - 01.07.2018, 07:37
Re: Vehicle: File Txt - by DerickClark - 01.07.2018, 07:44
Re: Vehicle: File Txt - by Calisthenics - 01.07.2018, 07:53
Re: Vehicle: File Txt - by RogueDrifter - 01.07.2018, 07:54

Forum Jump:


Users browsing this thread: 1 Guest(s)