07.05.2011, 12:03
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);
}
}