01.10.2007, 18:19
Code:
public OnPlayerText(playerid, text[]) { if(!strcmp(text, reactionstr, false)) { if(reactioninprog == 2) ReactionWin(playerid); if(reactioninprog == 1) { if(reactionwinnerid == playerid) { SendClientMessage(playerid,0x247C1BFF,"You\'ve already won!"); } else { SendClientMessage(playerid,0x247C1BFF,"You are too slow!"); } { { if (Calling[playerid] > -1 && Answered[playerid] == 1) { new string[256]; new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s: %s", sendername, text); SendClientMessage(Calling[playerid], COLOR_YELLOW, string); format(string, sizeof(string), "%s: %s", sendername, text); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s: %s", sendername, text); print(string); format(string, sizeof(string), "%s: %s", sendername, text); print(string); return 0; } return 1; }