[DUV] Mensagens em ordem
#5

Acho que assim da

pawn Код:
forward ServerNames();
new SVNAMES[2][256] = {
    "[WinG]• Paraquedismo Brasil   •[BasE]",
    "[WinG]• Paraquedismo Brasil   •[BasE]"
};

forward ServerNames2();
new SVNAMES2[2][256] = {
    "[WinG]• Parachuting Brazil    •[BasE]",
    "[WinG]• Parachuting Brazil    •[BasE]"
};

forward ServerNames3();
new SVNAMES3[2][256] = {
    "[WinG]• Base Jumping          •[BasE]",
    "[WinG]• Base Jumping          •[BasE]"
};

forward ServerNames4();
new SVNAMES4[2][256] = {
    "[WinG]• Portuguese/English    •[BasE]",
    "[WinG]• Portuguese/English    •[BasE]"
};

forward ServerNames5();
new SVNAMES5[2][256] = {
    "[WinG]• Wingsuit-Base Jumping •[BasE]",
    "[WinG]• Wingsuit-Base Jumping •[BasE]"
};

new SVNAMETIMER;
SVNAMETIMER = SetTimerEx("ServerNames",2000,1);

public ServerNames()
{
KillTimer(SVNAMETIMER);
new string[256];
new random1 = random(sizeof(SVNAMES));
format(string, sizeof(string), "hostname %s", SVNAMES[random1] );
SendRconCommand(string);
new SVNAME1TIMER;
SVNAME1TIMER = SetTimerEx("ServerNames2",2000,1);
return 1;
}

public ServerNames2()
{
KillTimer(SVNAME1TIMER);
new string[256];
new random2 = random(sizeof(SVNAMES2));
format(string, sizeof(string), "hostname %s", SVNAMES2[random2] );
SendRconCommand(string);
new SVNAME2TIMER;
SVNAME2TIMER = SetTimerEx("ServerNames3",2000,1);
return 1;
}

public ServerNames3()
{
KillTimer(SVNAME2TIMER);
new string[256];
new random3 = random(sizeof(SVNAMES3));
format(string, sizeof(string), "hostname %s", SVNAMES3[random3] );
SendRconCommand(string);
new SVNAME3TIMER;
SVNAME3TIMER = SetTimerEx("ServerNames4",2000,1);
return 1;
}

public ServerNames4()
{
KillTimer(SVNAME3TIMER);
new string[256];
new random4 = random(sizeof(SVNAMES4));
format(string, sizeof(string), "hostname %s", SVNAMES4[random4] );
SendRconCommand(string);
new SVNAME4TIMER;
SVNAME4TIMER = SetTimerEx("ServerNames5",2000,1);
return 1;
}

public ServerNames5()
{
KillTimer(SVNAME4TIMER);
new string[256];
new random5 = random(sizeof(SVNAMES5));
format(string, sizeof(string), "hostname %s", SVNAMES5[random5] );
SendRconCommand(string);
new SVNAMETIMER;
SVNAMETIMER = SetTimerEx("ServerNames1",2000,1);
return 1;
}
Edit: tenta agora!
Reply


Messages In This Thread
[DUV] Mensagens em ordem - by BiieL - 21.08.2010, 13:44
Re: [DUV] Mensagens em ordem - by DartakousLien - 21.08.2010, 13:52
Re: [DUV] Mensagens em ordem - by BiieL - 21.08.2010, 13:53
Re: [DUV] Mensagens em ordem - by DartakousLien - 21.08.2010, 14:34
Re: [DUV] Mensagens em ordem - by BlackFin - 21.08.2010, 15:00
Re: [DUV] Mensagens em ordem - by BiieL - 21.08.2010, 15:05
Re: [DUV] Mensagens em ordem - by DartakousLien - 21.08.2010, 17:27
Re: [DUV] Mensagens em ordem - by BiieL - 21.08.2010, 22:20
Re: [DUV] Mensagens em ordem - by BlackFin - 21.08.2010, 22:27

Forum Jump:


Users browsing this thread: 1 Guest(s)