19.01.2012, 22:22
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;
}