TextDrawShowForPlayer - 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: TextDrawShowForPlayer (
/showthread.php?tid=440664)
TextDrawShowForPlayer -
[..MonTaNa..] - 30.05.2013
Removed.
AW: TextDrawShowForPlayer -
HurtLocker - 30.05.2013
You did create them. What's the difficult to make them show up? And use OnPlayerKeyStateChange to close them with lmb as you want.
Re: TextDrawShowForPlayer -
[..MonTaNa..] - 30.05.2013
Removed.
Re: TextDrawShowForPlayer -
SilverKiller - 30.05.2013
Put this in your admin duty command :
pawn Код:
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
And for the lmb thing, put this at the top of the script :
pawn Код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
And :
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
if (IsInAdminDuty[playerid]) // Replace this with your Admin Duty Variable.
{
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
}
}
return 1;
}
Re: TextDrawShowForPlayer -
[..MonTaNa..] - 30.05.2013
Removed.
Re: TextDrawShowForPlayer -
[..MonTaNa..] - 30.05.2013
Removed.
Re: TextDrawShowForPlayer -
rpg894 - 30.05.2013
forget that weird define. use onplayerkeystatechange as normal and use textdrawshowforplayer and textdrawhideforplayer to show/hide the textdraws. By the way give me rep+ if you want, look at my reputation number.
Re: TextDrawShowForPlayer -
[..MonTaNa..] - 30.05.2013
Removed.