new idQuestion;
new Quizz[][]={
// Format: Question[],Reponse[]
{" 3+4+2=?"," 9"},
{" 23+3+52=?"," 78"},
{" 12+12+12=?"," 36"},
{" 110+56+8=?"," 174"},
{" 0+9+12=?"," 21"}
};
new ptsQuizz[MAX_PLAYERS];
public OnPlayerText(playerid,text[])
{
if(strcmp(text,Quizz[idQuestion][2],false)== 1)
{
new pname[MAX_PLAYER_NAME],str[256];
GetPlayerName(playerid,pname,sizeof(pname));
ptsQuizz[playerid]++;
format(str,sizeof(str),"%s a trouvé la réponse (ses points : %d).",pname,ptsQuizz[playerid]);
SendClientMessageToAll(COULEUR_JAUNE,str);
SendClientMessageToAll(COULEUR_VERTE,"Veuillez patienter avant la prochaine question.");
}
return 1;
}