Ilyenre gondolsz?
#include a_samp
#define FILTERSCRIPT
#define red 0xF60000AA
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\");
print(\"--------------------------------------\\n\");
Textcmds = TextDrawCreate(511.000000, 101.000000, \"/help\");
TextDrawBackgroundColor(Textcmds, 255);
TextDrawFont(Textcmds, 3);
TextDrawLetterSize(Textcmds, 0.439999, 2.000000);
TextDrawColor(Textcmds, -1);
TextDrawSetOutline(Textcmds, 2);
TextDrawSetProportional(Textcmds, 1);
SetTimer(\"Changecmds\",ms,5000);
return 1;
}
public OnFilterScriptExit()
{
TextDrawDestroy(Textcmds);
return 1;
}
public OnPlayerConnect(playerid)
{
// SendClientMessage(playerid, red,\"A parancsok a pénz alatt!\");
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(\"~r~/help\");
}
case 1:
{
ChangeTextcmds(\"~g~/tele\");
}
case 2:
{
ChangeTextcmds(\"~y~/parancs\");
}
case 3:
{
ChangeTextcmds(\"~w~/parancs\");
}
case 4:
{
ChangeTextcmds(\"~b~/parancs\");
}
case 5:
{
ChangeTextcmds(\"~p~/parancs\");
}
case 6:
{
ChangeTextcmds(\"~w~/parancs\");
}
case 7:
{
ChangeTextcmds(\"~r~/parancs\");
}
/* case 8:
{
ChangeTextcmds(\"~r~/parancs\");
}*/
}
TextcmdsCount++;
}