Question - REP ++
#2

pawn Код:
#include <a_samp>

new Truck; // Vehicle

public OnFilterScriptInit()
{
    CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
    return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) // When he enter in vehicle
{
    if(vehicleid = Truck) // If he enter in that vehicle
    {
        SetPlayerCheckpoint(playerid, X, Y, Z, 3.0); // Will sets a checkpoint to him.
    }
    return 1;
}

public OnPlayerEnterCheckpoint(playerid) // He enters in checkpoint
{
    AttachTrailerToVehicle(450, Truck); // Will attach a trailer to his vehicle
    return 1;
}
https://sampwiki.blast.hk/wiki/AttachTrailerToVehicle
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle
https://sampwiki.blast.hk/wiki/CreateVehicle
Reply


Messages In This Thread
Question - REP ++ - by buburuzu19 - 16.11.2014, 07:30
Re: Question - REP ++ - by HY - 16.11.2014, 07:38
Re: Question - REP ++ - by Capua - 16.11.2014, 08:18
Re: Question - REP ++ - by buburuzu19 - 16.11.2014, 09:15
Re: Question - REP ++ - by Capua - 16.11.2014, 09:22
Re: Question - REP ++ - by buburuzu19 - 16.11.2014, 11:24
Re: Question - REP ++ - by buburuzu19 - 16.11.2014, 11:32
Re: Question - REP ++ - by buburuzu19 - 16.11.2014, 13:44
Re: Question - REP ++ - by buburuzu19 - 16.11.2014, 17:16
Re: Question - REP ++ - by sammp - 16.11.2014, 17:35

Forum Jump:


Users browsing this thread: 2 Guest(s)