Textdraw
#1

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

Quote:
Originally Posted by stundje
Посмотреть сообщение
I prefer you to use normal textlines like SendClientMessageToAll.
This will show all of them a message in one quick CMD.
In one quick CMD, yes, but not that I want
Reply
#4

Anyone?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)