show texdraw if isplayerinvehicle
#1

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.
Reply
#2

Код:
public OnplayerStateChange(playerid, newstate, oldstate)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
         TextDrawShowForPlayer(playerid,//textdraw);
    }
    return 1;
}
Reply
#3

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?
Reply
#4

I'd recommend you make your textdraw's with this GM: https://sampforum.blast.hk/showthread.php?tid=376758.
Reply
#5

hey, use this : Click Me

And after that, just put the codes in which Iron3Man gave
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)