TextDrawShowForPlayer
#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


Messages In This Thread
TextDrawShowForPlayer - by [..MonTaNa..] - 30.05.2013, 20:02
AW: TextDrawShowForPlayer - by HurtLocker - 30.05.2013, 20:05
Re: TextDrawShowForPlayer - by [..MonTaNa..] - 30.05.2013, 20:05
Re: TextDrawShowForPlayer - by SilverKiller - 30.05.2013, 20:07
Re: TextDrawShowForPlayer - by [..MonTaNa..] - 30.05.2013, 20:27
Re: TextDrawShowForPlayer - by [..MonTaNa..] - 30.05.2013, 20:48
Re: TextDrawShowForPlayer - by rpg894 - 30.05.2013, 20:49
Re: TextDrawShowForPlayer - by [..MonTaNa..] - 30.05.2013, 21:28

Forum Jump:


Users browsing this thread: 1 Guest(s)