Print Trailer to txt
#1

How can i print it thru text note pad?
Should i use ffile?
Код:
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, "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
Print Trailer to txt - by DerickClark - 09.07.2018, 18:24
Re: Print Trailer to txt - by Florin48 - 09.07.2018, 19:15
Re: Print Trailer to txt - by DerickClark - 09.07.2018, 19:28
Re: Print Trailer to txt - by ItsRobinson - 09.07.2018, 19:37
Re: Print Trailer to txt - by DerickClark - 09.07.2018, 19:45
Re: Print Trailer to txt - by Florin48 - 09.07.2018, 19:48

Forum Jump:


Users browsing this thread: 1 Guest(s)