SA-MP Forums Archive
[FilterScript] [FS] Reaction-Test - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Reaction-Test (/showthread.php?tid=150274)

Pages: 1 2 3


Re: [FS] Reaction-Test - ChristolisTV - 06.06.2015

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;
}



Re: [FS] Reaction-Test - Malph - 25.10.2018

And how to start the reaction?