So one of the probs.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: So one of the probs.. (
/showthread.php?tid=312105)
So one of the probs.. -
trapped1 - 19.01.2012
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!
Re: So one of the probs.. -
-Prodigy- - 19.01.2012
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;
}
Re: So one of the probs.. -
trapped1 - 19.01.2012
Thanks a lot man
Re: So one of the probs.. -
trapped1 - 20.01.2012
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!