Random Message Error
#2

are romain
I translated with ******
I hope you understand



Posts enough?
example:
[GodplaY BOT]: Want to know the community forum? / forum and you'll find.
Urmaritii following steps:

Add to forward to the last as not to confuse gamemodu
line

Код:
forward rMessage();
then the new

Код:
new rMessageList[][] = {
"{6EF83C}[GodplaY-BOT]:{FFFFFF}Ai vazut vreun Codat ? /report si-l vom rezolva!",
"{6EF83C}[GodplaY-BOT]:{FFFFFF}Ai nevoie de ajutor ? /needhelp si te ajutam!",
"{6EF83C}[GodplaY-BOT]:{FFFFFF}Vrei niste detalii despre server ? /serverinfo!!"
};
new rCheckList[sizeof(rMessageList)];
Of course here you can change the message ..
then the public

Код:
public rMessage()
{
        new rNumber, Check = 0;
        do{
            for(new i=0; i<sizeof(rCheckList); i++)
                        if(rCheckList[i] != 0)
                                Check++;
                if(Check == sizeof(rCheckList))
                    for(new i=0; i<sizeof(rCheckList); i++)
                        rCheckList[i] = 0;
                rNumber = random(sizeof(rMessageList));
        }while(rCheckList[rNumber]);
    SendClientMessageToAll(-1, rMessageList[rNumber]);
        rCheckList[rNumber] = 1;
}
at onGameModeInit

Код:
SetTimer("rMessage", 300000, 1);
here about safety precautions set of 5 in 5 minutes but it changed
300,000 instead put more ...

I hope it will go is made ​​easy and simple so ...
Reply


Messages In This Thread
Random Message Error - by LuisGraph - 30.01.2012, 19:51
AW: Random Message Error - by Papana - 30.01.2012, 20:33
Re: Random Message Error - by LuisGraph - 31.01.2012, 02:24

Forum Jump:


Users browsing this thread: 1 Guest(s)