AttachTrailerToVehicle problem
#3

pawn Код:
new PlayerTrailer[MAX_PLAYERS] = 0;

public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, -3.9349, 31.2148, 3.0800))
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            new vid = GetPlayerVehicleID(playerid);
            if(vid == 531)
            {
                AttachTrailerToVehicle(PlayerTrailer[playerid],vid);
                SendClientMessage(playerid,COLOR_JOB,"Job: You have to collect products that have grown after you farmed the land. (( /jpick ))");
                DisablePlayerCheckpoint(playerid);
            }
        }
    }
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    /*-- Suas funзхes --*/
    DestroyVehicle(PlayerTrailer[playerid]);
    SetPlayerCheckpoint(playerid,-3.9349,31.2148,3.0800,3.0);
    PlayerTrailer[playerid] = CreateVehicle(607, -1.9775,38.4117,3.0796,330.3404, 0, 0, -1);    
    return 0;
}
Se ajudei da reputation ae
Reply


Messages In This Thread
AttachTrailerToVehicle problem - by Roko_foko - 03.09.2012, 17:10
Re: AttachTrailerToVehicle problem - by Roko_foko - 03.09.2012, 18:56
Re: AttachTrailerToVehicle problem - by [BOPE]Seu._.Madruga - 03.09.2012, 20:02
Re: AttachTrailerToVehicle problem - by Roko_foko - 03.09.2012, 20:25
Re: AttachTrailerToVehicle problem - by [BOPE]Seu._.Madruga - 03.09.2012, 20:36
Re: AttachTrailerToVehicle problem - by Roko_foko - 03.09.2012, 21:50

Forum Jump:


Users browsing this thread: 2 Guest(s)