Npc and trailer
#2

Try placing the AttachTrailerToVehicle function in OnPLayerStateChange, be sure to add the player state conditional for driving, example:
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
    if(!strcmp(playername,"Jonas_Betas",true))
    {
        if(newstate==PLAYER_STATE_DRIVER)AttachTrailerToVehicle(priekaba, sunk);
    }
}
Reply


Messages In This Thread
Npc and trailer - by marrcko - 07.05.2011, 11:58
Re: Npc and trailer - by Joe Staff - 07.05.2011, 12:03
Re: Npc and trailer - by marrcko - 07.05.2011, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)