Textdraw
#2

Quote:
Originally Posted by MonTaNaAa
Посмотреть сообщение
When I'm typing a CMD there a player's supposed to get a textdraw, he doesn't, I need to reload the admin script, after I type the CMD he gets it, when I want to show rules for everyone, I need to reload it again..

Under OnFilterScriptInit
pawn Код:
SetTimerEx("RulesTextDestroy", 7000, false, "i");
    SetTimerEx("policeRulesIntroBox", 7000, false, "i");
    SetTimerEx("policeRulesIntro", 7000, false, "i");
    SetTimerEx("policeRules", 7000, false, "i");
    SetTimerEx("policeRules1", 7000, false, "i");
    SetTimerEx("policeRules2", 7000, false, "i");
    SetTimerEx("policeRules3", 7000, false, "i");
    SetTimerEx("policeRules4", 7000, false, "i");
    SetTimerEx("policeRules5", 7000, false, "i");
    SetTimerEx("policeRules6", 7000, false, "i");
    SetTimerEx("policeRules7", 7000, false, "i");
    SetTimerEx("policeRules8", 7000, false, "i");
    SetTimerEx("policeRules9", 7000, false, "i");
    SetTimerEx("policeRules10", 7000, false, "i");
    SetTimerEx("policeRules11", 7000, false, "i");
    SetTimerEx("policerules12", 7000, false, "i");
    SetTimerEx("DisarmText", 7000, false, "i");

pawn Код:
forward RulesTextDestroy(playerid);
public RulesTextDestroy(playerid)
{
    TextDrawDestroy(policeRulesIntroBox);
    TextDrawDestroy(policeRulesIntro);
    TextDrawDestroy(policeRules);
    TextDrawDestroy(policeRules1);
    TextDrawDestroy(policeRules2);
    TextDrawDestroy(policeRules3);
    TextDrawDestroy(policeRules4);
    TextDrawDestroy(policeRules5);
    TextDrawDestroy(policeRules6);
    TextDrawDestroy(policeRules7);
    TextDrawDestroy(policeRules8);
    TextDrawDestroy(policeRules9);
    TextDrawDestroy(policeRules10);
    TextDrawDestroy(policeRules11);
    TextDrawDestroy(policeRules12);
    TextDrawDestroy(DisarmText);
    return 1;
}
I prefer you to use normal textlines like SendClientMessageToAll.
This will show all of them a message in one quick CMD.
Reply


Messages In This Thread
Textdraw - by [..MonTaNa..] - 08.06.2013, 08:32
Re: Textdraw - by stundje - 08.06.2013, 08:43
Re: Textdraw - by [..MonTaNa..] - 08.06.2013, 09:18
Re: Textdraw - by [..MonTaNa..] - 09.06.2013, 08:41

Forum Jump:


Users browsing this thread: 1 Guest(s)