//----------------------------------------------------------------------------------------------------- if(strcmp(cmd, "/bonustrivia", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_GREY,"# Level 1 # - 25 correct answers - 100.000$ + 5 respect points."); SendClientMessage(playerid, COLOR_GREY,"# Level 2 # - 50 corrent answers - 150.000$ + 10 respect points."); SendClientMessage(playerid, COLOR_GREY,"# Level 3 # - 100 correct answers - 300.000$ + 20 respect points."); SendClientMessage(playerid, COLOR_GREY,"# Level 4 # - 200 correct answers - 1.000.000$ + 50 respect points."); new triviarewards = PlayerInfo[playerid][TriviaReward]; if(PlayerInfo[playerid][TriviaSkill] == 0) { SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 1 **"); format(string, 256 ,"* Correct answers [%d/25] *", triviarewards); SendClientMessage(playerid, COLOR_LIGHTRED, string); return 1; } if(PlayerInfo[playerid][TriviaSkill] == 1) { SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 2 **"); format(string, 256 ,"* Correct answers [%d/50] *", triviarewards); SendClientMessage(playerid, COLOR_LIGHTRED, string); return 1; } if(PlayerInfo[playerid][TriviaSkill] == 2) { SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 3 **"); format(string, 256 ,"* Correct answers [%d/100] *", triviarewards); SendClientMessage(playerid, COLOR_LIGHTRED, string); return 1; } if(PlayerInfo[playerid][TriviaSkill] == 3) { SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 4 **"); format(string, 256 ,"* Correct answers [%d/200] *", triviarewards); SendClientMessage(playerid, COLOR_LIGHTRED, string); return 1; } } return 1; }