SA-MP Forums Archive
Textdraw - 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: Textdraw (/showthread.php?tid=442594)



Textdraw - [..MonTaNa..] - 08.06.2013

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;
}



Re: Textdraw - stundje - 08.06.2013

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.


Re: Textdraw - [..MonTaNa..] - 08.06.2013

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


Re: Textdraw - [..MonTaNa..] - 09.06.2013

Anyone?