09.04.2011, 20:09
Like, if the reaction test text is iLiKecArrots and i type that, it doesn't say that %s has won the reaction test...
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[256];
if(ReactionState == R_STATE_ACTIVE)
{
if(!strcmp(text, ReactionString, false))
{
ReactionState = R_STATE_NOT_ACTIVE;
new sPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid,sPlayerName,MAX_PLAYER_NAME);
format(string,sizeof(string),"{FF2800}[REACTION TEST] {00A5DB}"lgrey"%s("lgreen"%d"lgrey") "lyellow"won $%d and 2 scores for phrasing "lred"%s "lyellow"before all!**",sPlayerName,playerid,ReactionCash,ReactionString);
SendClientMessageToAll(0x00F300FF,string);
GivePlayerMoney(playerid,ReactionCash);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 2 );
ReactionCash = 0;
}
}
format(string,sizeof(string),"%s("lorange"ID:"lred"%d"lgreen"){FFFFFF}: %s",GetPName(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}