Sziasztok.Keresgéltem a textdraw frissitésrõl és rá találtam erre a scriptre nem én készitettem használjátok egészséggel
http://sampforum.hu/index.php?topic=20624.5 <- valószínûleg innen származik
Készitõ:
#include <a_samp>
#include <zcmd>
#define FILTERSCRIPT
#define green 0x33AA33AA
forward Changecmds();
forward ChangeTextcmds (text[]);
new Text:Textcmds;
new TextcmdsCount = 0;
#define gamemodecount 11
#define ms 5000
#define websitecount 11
#define ms 5000
#define cmdscount 11
#define ms 5000
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\"Váltakozó textdraw betöltve by NiKe\");
print(\"--------------------------------------\\n\");
Textcmds = TextDrawCreate(4.000000, 324.000000, \"/help\");
TextDrawBackgroundColor(Textcmds, -16776961);
TextDrawFont(Textcmds, 0);
TextDrawLetterSize(Textcmds, 0.509999, 1.499999);
TextDrawColor(Textcmds, 255);
TextDrawSetOutline(Textcmds, 1);
TextDrawSetProportional(Textcmds, 1);
SetTimer(\"Changecmds\",ms,5000);
return 1;
}
public OnFilterScriptExit()
{
TextDrawDestroy(Textcmds);
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, green,\"A parancsok,fontosabb dolgok térkép fölött!\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid, Textcmds);
return 1;
}
public ChangeTextcmds(text[])
{
TextDrawHideForAll(Textcmds);
TextDrawSetString(Textcmds,text);
TextDrawShowForAll(Textcmds);
return 1;
}
public Changecmds()
{
if(TextcmdsCount > cmdscount) TextcmdsCount = 0;
switch(TextcmdsCount)
{
case 0:
{
ChangeTextcmds(\"/help\"); // Ezeket átirhatod de csak ami kékkel van!!itt a /help
}
case 1:
{
ChangeTextcmds(\"/rescue\");
}
case 2:
{
ChangeTextcmds(\"/cmds\");
}
case 3:
{
ChangeTextcmds(\"/gohome\");
}
case 4:
{
ChangeTextcmds(\"/convoy\");
}
case 5:
{
ChangeTextcmds(\"Face:Kaminozz es Fuvarozz\");
}
case 6:
{
ChangeTextcmds(\"/work\");
}
case 7:
{
ChangeTextcmds(\"Admin tgf:OFF\");
}
case 8:
{
ChangeTextcmds(\"Ha barmi problemad van szolj egy adminnak\");
}
case 9:
{
ChangeTextcmds(\"Tulaj:NiKe,WRx,Foadmin:Volvo\");
}
case 10:
{
ChangeTextcmds(\"/givecash\");
}
case 11:
{
ChangeTextcmds(\"/getcar\");
}
case 12:
{
ChangeTextcmds(\"/gobus\");
}
case 13:
{
ChangeTextcmds(\"/assist\");
}
case 14:
{
ChangeTextcmds(\"convoykick\");
}
case 15:
{
ChangeTextcmds(\"/munkavege\"); // Folytathatod tovább ugy ahogy itt láthatod
}
}
TextcmdsCount++;
}