new Texts;
foreach(Player,i)
{
switch(Texts)
{
case 1: { SetTimerEx("SendTxtMsgD",10000,0,"i",i); Texts=1;}
case 2: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=2;}
case 3: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=3;}
case 4: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=4;}
case 5: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=5;}
}
}
forward SendTxtMsgD();
public SendTxtMsgD()
{
switch(Texts)
{
case 1: { TextDrawHideForAll(TextMessage[0]); }
case 2: { TextDrawHideForAll(TextMessage[1]); }
case 3: { TextDrawHideForAll(TextMessage[2]); }
case 4: { TextDrawHideForAll(TextMessage[3]); }
case 5: { TextDrawHideForAll(TextMessage[4]); }
}
}
foreach(Player,i) { switch(Texts) { case 1: { SetTimerEx("SendTxtMsgD",10000,0,"i",i); Texts=1; } case 2: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=2; } case 3: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=3; } case 4: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=4; } case 5: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=5; } } }
foreach(Player,i) { switch(Texts) { case 1: { SetTimerEx("SendTxtMsgD",500,0,"i",i); Texts=1; } case 2: { SetTimerEx("SendTxtMsgD",500,0,"i",i); Texts=2; } case 3: { SetTimerEx("SendTxtMsgD",500,0,"i",i); Texts=3; } case 4: { SetTimerEx("SendTxtMsgD",500,0,"i",i); Texts=4; } case 5: { SetTimerEx("SendTxtMsgD",500,0,"i",i); Texts=5; } } }
Wow! to many timers! lagfest? Anyways. are you trying to make random messages?
|