[FilterScript] [FS] Reaction-Test
#41

Under xTestBusy = false; put return 0; Just like this:

Код:
public OnPlayerText(playerid, text[])
{
        switch(xTestBusy)
        {
            case true:
            {
                        if(!strcmp(xChars, text, false))
                        {
                            new
                                string[128],
                                pName[MAX_PLAYER_NAME]
                                ;
                                GetPlayerName(playerid, pName, sizeof(pName));
                                format(string, sizeof(string), "{006600}[REACTION]:{FFFFFF} Player{FFFF00} %s{FFFFFF} has won the reaction test!", pName);
                            SendClientMessageToAll(GREEN, string);
                            format(string, sizeof(string), "{FFFFFF}Congratulations! You{00FF00} won{FFFFFF} the reaction!", xCash, xScore);
                            SendClientMessage(playerid, GREEN, string);
                            GivePlayerMoney(playerid, xCash);
                                SetPlayerScore(playerid, GetPlayerScore(playerid) + xScore);
                                xReactionTimer = SetTimer("xReactionTest", TIME, 1);
                            xTestBusy = false;
                            return 0;
                        }
                }
        }
        return 1;
}
Reply
#42

And how to start the reaction?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)