So one of the probs..
#1

Hello some one maybe can give me links or code...

Need help with:

When player enters vehicle dialog pops up...

(I can make dialog... but where to put it? So when player is at steering wheel dialogs show up).

I was searching for it like 2 h butt no result!
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerStateChange

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) // Player entered a vehicle as a driver
    {
        ShowPlayerDialog(playerid, dialog, DIALOG_STYLE, "Header", "Body", "Button1", "Button2");
    }
    return 1;
}
Reply
#3

Thanks a lot man
Reply
#4

Quote:

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) // Remove this if you don't want to show the messages below when a player enters a vehicle.
{
ShowVehicleControlDialog(playerid);
return 1;
}

This code will show dialog if player gets in the car? It dosnt work... I want when player gets in car dialog shows up!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)