Help with TextDraw - 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: Help with TextDraw (
/showthread.php?tid=645769)
Help with TextDraw -
SebaLBP - 03.12.2017
Hello, I need help with TextDraw. My problem is that I create a textdraw and I want to put it in the moment that a user falls from an airplane as he would ?
Also as I do, if the user points a weapon that is on the ground, I sent him a textdraw. and grab that weapon
NOTE:
each gun sends you a different TextDraw
Finally, when you point to a door and press F key, it automatically opens and allows you to enter that house or home.
all this is done for the pubg game mode
Re: Help with TextDraw -
webby - 03.12.2017
Use a function to detect if player is falling,
here is one.
At this one, you can add TextDrawShowForPlayer. Example:
PHP код:
new Text:Falling= TextDrawCreate(150.0, 120.0, "You are falling.."); // coordinates x(left/right) and y(up/down).
TextDrawShowForPlayer(playerid, Falling);
Re: Help with TextDraw -
SebaLBP - 03.12.2017
Quote:
Originally Posted by webby
Use a function to detect if player is falling, here is one.
At this one, you can add TextDrawShowForPlayer. Example:
PHP код:
new Text:Falling= TextDrawCreate(150.0, 120.0, "You are falling.."); // coordinates x(left/right) and y(up/down).
TextDrawShowForPlayer(playerid, Falling);
|
Thanks but...
Also as I do, if the user points to a weapon that is on the ground, I sent it to textdraw. and grab that gun
And finally, when you point to a door and press F key, it automatically opens and allows you to enter that house or home.