help with onplayertext
#6

Quote:
Originally Posted by superrobot48
Посмотреть сообщение
He meants if a player is writing the reaction text it must not show to other players.

return 0 on onplayertext ?

EDIT:
pawn Код:
if(!strcmp(xChars, text, false))
                        {
                            new
                                string[128],
                                pName[MAX_PLAYER_NAME]
                                ;
                                GetPlayerName(playerid, pName, sizeof(pName));
                                format(string, sizeof(string), \%s\" has won the reaction test. »", pName);
                            SendClientMessageToAll(GREEN, string);
                            format(string, sizeof(string), "« You have earned $%d + %d score points. »", xCash, xScore);
                            SendClientMessage(playerid, GREEN, string);
                            GivePlayerMoney(playerid, xCash);
                                SetPlayerScore(playerid, GetPlayerScore(playerid) + xScore);
                                xReactionTimer = SetTimer("xReactionTest", TIME, 1);
                            xTestBusy = false;
                            return 0; //Returning Text!
                        }
only winners rtest letters should be hidden not all players
Reply


Messages In This Thread
help with onplayertext - by saikumar - 06.05.2014, 13:43
Re: help with onplayertext - by KillerStrike23 - 06.05.2014, 14:03
Re: help with onplayertext - by saikumar - 06.05.2014, 14:07
Re: help with onplayertext - by superrobot48 - 06.05.2014, 14:07
Re: help with onplayertext - by NaClchemistryK - 06.05.2014, 14:12
Re: help with onplayertext - by saikumar - 06.05.2014, 14:14
Re: help with onplayertext - by superrobot48 - 06.05.2014, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)