show texdraw if isplayerinvehicle - 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: show texdraw if isplayerinvehicle (
/showthread.php?tid=467826)
show texdraw if isplayerinvehicle -
kbalor - 05.10.2013
Hi guys. How are you?
Could you please help me. When player is in a vehicle (DRIVER ONLY). Show textdraw on lower right screen something like this...
Press
Y to Jump
Press
H to Flip
Press
2 to Boost
.......Furthermore REMOVE/DELETE the textdraw when player is in a race or event. Thank you looking forwards.
EDIT: And additional if player (driver) exit the vehicle or disconnected remove/delete the textdraw.
Re: show texdraw if isplayerinvehicle -
Iron3man - 05.10.2013
Код:
public OnplayerStateChange(playerid, newstate, oldstate)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
TextDrawShowForPlayer(playerid,//textdraw);
}
return 1;
}
Re: show texdraw if isplayerinvehicle -
kbalor - 05.10.2013
Quote:
Originally Posted by Iron3man
Код:
public OnplayerStateChange(playerid, newstate, oldstate)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
TextDrawShowForPlayer(playerid,//textdraw);
}
return 1;
}
|
Thanks man. But can you please give how to make textdraw on the right lower part of the screen?
Re: show texdraw if isplayerinvehicle -
DanishHaq - 05.10.2013
I'd recommend you make your textdraw's with this GM:
https://sampforum.blast.hk/showthread.php?tid=376758.
Re: show texdraw if isplayerinvehicle -
Jankingston - 05.10.2013
hey, use this :
Click Me
And after that, just put the codes in which Iron3Man gave
Re: show texdraw if isplayerinvehicle -
DanishHaq - 05.10.2013
Quote:
Originally Posted by Jankingston
hey, use this : Click Me
And after that, just put the codes in which Iron3Man gave 
|
Yea, this is better actually and is what I was looking for, I couldn't find it haha. Use this instead of the link that I gave you. This site can set the position too of the text draw which is basically what you want from what I've gathered.