TextDrawShowForPlayer
#1

Removed.
Reply
#2

You did create them. What's the difficult to make them show up? And use OnPlayerKeyStateChange to close them with lmb as you want.
Reply
#3

Removed.
Reply
#4

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;
}
Reply
#5

Removed.
Reply
#6

Removed.
Reply
#7

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

Removed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)