22.09.2013, 12:53
(
Последний раз редактировалось LeoBawler; 22.09.2013 в 13:40.
Причина: Adding info and codes
)
Hello,
I am having a quite confusing problem on my server, and i can not post the codes here since i specifically do not know what part is which, because i haven't coded in a long time.
My problem is that, when my friend tried to report somebody on my server, and i tried to accept report: /ar
it said that there is no such report. i typed /ar (report id)
so then i told my friend to report again, but this time he got a message saying that he can only have 1 report pending at a time, and it told him to type (/cancelreport) to cancel his pending report
When he tried doing that, it said he has no report pending....
So then he tried to /report again and it still said he already had a report waiting to be accepted or trashed... Please Help!
The code for the variables:
And the everything to do with the reports:
P.S if you are a good scripter with a good reputation, my server is looking for a part/full time scripter, that is loyal, truthful and mature. No scams please. He will be paid in either cash or an admin rank, or both depending on how much he does for the server.
If u want to be a scripter for the server and has what it takes, Pm me or skype me on: kareemk98
Thank you, appreciate the help <3
=Rep
I am having a quite confusing problem on my server, and i can not post the codes here since i specifically do not know what part is which, because i haven't coded in a long time.
My problem is that, when my friend tried to report somebody on my server, and i tried to accept report: /ar
it said that there is no such report. i typed /ar (report id)
so then i told my friend to report again, but this time he got a message saying that he can only have 1 report pending at a time, and it told him to type (/cancelreport) to cancel his pending report
When he tried doing that, it said he has no report pending....
So then he tried to /report again and it still said he already had a report waiting to be accepted or trashed... Please Help!
The code for the variables:
Код:
///Report Menu// #define DIALOG_REPORTMENU (3490) #define DIALOG_REPORTMENU2 (3500) #define DIALOG_REPORTDM (3540) #define DIALOG_REPORTRK (3550) #define DIALOG_REPORTKOS (3560) #define DIALOG_REPORTCR (3570) #define DIALOG_REPORTCARRAM (3580) #define DIALOG_REPORTPG (3590) #define DIALOG_REPORTMG (3600) #define DIALOG_REPORTSPAM (3610) #define DIALOG_REPORTGDE (3620) #define DIALOG_REPORTHACK (3630) #define DIALOG_REPORTMF (3640) #define DIALOG_REPORTSA (3650) #define DIALOG_REPORTNRPN (3660) #define DIALOG_REPORTBANEVADE (3670) #define DIALOG_REPORTGE (3680) #define DIALOG_REPORTRHN (3690) #define DIALOG_REPORTRSE (3700) #define DIALOG_REPORTLOG (3710) #define DIALOG_REPORTCARSURF (3720) #define DIALOG_REPORTNRPB (3730) #define DIALOG_REPORTFREE (3740) #define DIALOG_REPORTNOTLIST (3750) #define DIALOG_REPORTNOTLIST2 (3755) #define DIALOG_UNMUTE (3760) #define DIALOG_REPORTNRPB2 (3770) #define DIALOG_REPORTNAME (3780) #define DIALOG_SPEAKTOADMIN (3790) #define DIALOG_DEDICATEDPLAYER (3800) #define DIALOG_POMAILS (3810) #define DIALOG_PODETAIL (3820) #define DIALOG_POTRASHED (3830) #define DIALOG_POSTAMP (3840) #define DIALOG_PORECEIVER (3850) #define DIALOG_POMESSAGE (3860)
Код:
///Report Menu// if(dialogid == DIALOG_REPORTMENU) { if(response) { switch(listitem) { case 0: //Deathmatch { if(PlayerInfo[playerid][pJailTime] > 0) { SendClientMessage(playerid, COLOR_GREY, "You can't report while in prison."); } else { ShowPlayerDialog(playerid, DIALOG_REPORTDM, DIALOG_STYLE_INPUT, "Report Player - Deathmatch", "Enter the name or ID of the player.", "Enter", "Cancel"); } } case 1: //Hacking { ShowPlayerDialog(playerid, DIALOG_REPORTHACK, DIALOG_STYLE_INPUT, "Report Player - Hacking", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 2: //Revenge Killing { ShowPlayerDialog(playerid, DIALOG_REPORTRK, DIALOG_STYLE_INPUT, "Report Player - Revenge Killing", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 3: //Killing on Sight { ShowPlayerDialog(playerid, DIALOG_REPORTKOS, DIALOG_STYLE_INPUT, "Report Player - Killing on Sight", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 4: //Chicken Running { ShowPlayerDialog(playerid, DIALOG_REPORTCR, DIALOG_STYLE_INPUT, "Report Player - Chicken Running", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 5: //Car Ramming { ShowPlayerDialog(playerid, DIALOG_REPORTCARRAM, DIALOG_STYLE_INPUT, "Report Player - Car Ramming", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 6: //Power Gaming { ShowPlayerDialog(playerid, DIALOG_REPORTPG, DIALOG_STYLE_INPUT, "Report Player - Power Gaming", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 7: //Meta Gaming { ShowPlayerDialog(playerid, DIALOG_REPORTMG, DIALOG_STYLE_INPUT, "Report Player - Meta Gaming", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 8: //Gun Discharge Exploits { ShowPlayerDialog(playerid, DIALOG_REPORTGDE, DIALOG_STYLE_INPUT, "Report Player - Gun Discharge Exploits", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 9: //Spamming { ShowPlayerDialog(playerid, DIALOG_REPORTSPAM, DIALOG_STYLE_INPUT, "Report Player - Spamming", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 10: //Money Farming { ShowPlayerDialog(playerid, DIALOG_REPORTMF, DIALOG_STYLE_INPUT, "Report Player - Money Farming", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 11: //Ban Evader { ShowPlayerDialog(playerid, DIALOG_REPORTBANEVADE, DIALOG_STYLE_INPUT, "Report Player - Ban Evader", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 12: //General Exploits { ShowPlayerDialog(playerid, DIALOG_REPORTGE, DIALOG_STYLE_INPUT, "Report Player - General Exploits", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 13: //Releasing Hitman Names { ShowPlayerDialog(playerid, DIALOG_REPORTRHN, DIALOG_STYLE_INPUT, "Report Player - Releasing Hitman Names", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 14: //Running/Swimming Man Exploit { ShowPlayerDialog(playerid, DIALOG_REPORTRSE, DIALOG_STYLE_INPUT, "Report Player - Running/Swimming Man Exploit", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 15: //Log to Avoid { ShowPlayerDialog(playerid, DIALOG_REPORTLOG, DIALOG_STYLE_INPUT, "Report Player - Logging to Avoid", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 16: //Car Surfing { ShowPlayerDialog(playerid, DIALOG_REPORTCARSURF, DIALOG_STYLE_INPUT, "Report Player - Car Surfing", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 17: //NonRp Behavior { ShowPlayerDialog(playerid, DIALOG_REPORTNRPB, DIALOG_STYLE_INPUT, "Report Player - NonRP Behavior", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 18: //Next Page { ShowPlayerDialog(playerid, DIALOG_REPORTMENU2, DIALOG_STYLE_LIST, "Report Menu [2/2]", "Falling\nOOC Hit\nServer Advertising\nNonRP Name\nOther/Freetext (PVIP Only)\nHouse Move\nAppeal Admin Action\nPrize Claim\nShop Issue\nNot Listed Here\nNeed to speak to an admin\nRequest CA\nRequest Unmute\nPrevious Page","Select", "Exit"); } } } } if(dialogid == DIALOG_REPORTMENU) { if(response) { switch(listitem) { case 0: //Deathmatch { if(PlayerInfo[playerid][pJailTime] > 0) { SendClientMessage(playerid, COLOR_GREY, "You can't report while in prison."); } else { ShowPlayerDialog(playerid, DIALOG_REPORTDM, DIALOG_STYLE_INPUT, "Report Player - Deathmatch", "Enter the name or ID of the player.", "Enter", "Cancel"); } } case 1: //Hacking { ShowPlayerDialog(playerid, DIALOG_REPORTHACK, DIALOG_STYLE_INPUT, "Report Player - Hacking", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 2: //Revenge Killing { ShowPlayerDialog(playerid, DIALOG_REPORTRK, DIALOG_STYLE_INPUT, "Report Player - Revenge Killing", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 3: //Killing on Sight { ShowPlayerDialog(playerid, DIALOG_REPORTKOS, DIALOG_STYLE_INPUT, "Report Player - Killing on Sight", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 4: //Chicken Running { ShowPlayerDialog(playerid, DIALOG_REPORTCR, DIALOG_STYLE_INPUT, "Report Player - Chicken Running", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 5: //Car Ramming { ShowPlayerDialog(playerid, DIALOG_REPORTCARRAM, DIALOG_STYLE_INPUT, "Report Player - Car Ramming", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 6: //Power Gaming { ShowPlayerDialog(playerid, DIALOG_REPORTPG, DIALOG_STYLE_INPUT, "Report Player - Power Gaming", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 7: //Meta Gaming { ShowPlayerDialog(playerid, DIALOG_REPORTMG, DIALOG_STYLE_INPUT, "Report Player - Meta Gaming", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 8: //Gun Discharge Exploits { ShowPlayerDialog(playerid, DIALOG_REPORTGDE, DIALOG_STYLE_INPUT, "Report Player - Gun Discharge Exploits", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 9: //Spamming { ShowPlayerDialog(playerid, DIALOG_REPORTSPAM, DIALOG_STYLE_INPUT, "Report Player - Spamming", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 10: //Money Farming { ShowPlayerDialog(playerid, DIALOG_REPORTMF, DIALOG_STYLE_INPUT, "Report Player - Money Farming", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 11: //Ban Evader { ShowPlayerDialog(playerid, DIALOG_REPORTBANEVADE, DIALOG_STYLE_INPUT, "Report Player - Ban Evader", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 12: //General Exploits { ShowPlayerDialog(playerid, DIALOG_REPORTGE, DIALOG_STYLE_INPUT, "Report Player - General Exploits", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 13: //Releasing Hitman Names { ShowPlayerDialog(playerid, DIALOG_REPORTRHN, DIALOG_STYLE_INPUT, "Report Player - Releasing Hitman Names", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 14: //Running/Swimming Man Exploit { ShowPlayerDialog(playerid, DIALOG_REPORTRSE, DIALOG_STYLE_INPUT, "Report Player - Running/Swimming Man Exploit", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 15: //Log to Avoid { ShowPlayerDialog(playerid, DIALOG_REPORTLOG, DIALOG_STYLE_INPUT, "Report Player - Logging to Avoid", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 16: //Car Surfing { ShowPlayerDialog(playerid, DIALOG_REPORTCARSURF, DIALOG_STYLE_INPUT, "Report Player - Car Surfing", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 17: //NonRp Behavior { ShowPlayerDialog(playerid, DIALOG_REPORTNRPB, DIALOG_STYLE_INPUT, "Report Player - NonRP Behavior", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 18: //Next Page { ShowPlayerDialog(playerid, DIALOG_REPORTMENU2, DIALOG_STYLE_LIST, "Report Menu [2/2]", "Falling\nOOC Hit\nServer Advertising\nNonRP Name\nOther/Freetext (PVIP Only)\nHouse Move\nAppeal Admin Action\nPrize Claim\nShop Issue\nNot Listed Here\nNeed to speak to an admin\nRequest CA\nRequest Unmute\nPrevious Page","Select", "Exit"); } } } } if(dialogid == DIALOG_REPORTMENU2) { if(response) { switch(listitem) { case 0: //Falling { if(gettime() - LastShot[playerid] < 20) { SendClientMessageEx(playerid, COLOR_GREY, "You have been hurt in the last 20 seconds, abusing this system will result in a temporary ban."); } else { new Message[128]; SetPVarInt(playerid, "HasReport", 1); TogglePlayerControllable(playerid, 0); SetPVarInt(playerid, "IsFrozen", 1); format(Message, sizeof(Message), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has been frozen. (Falling Report)", GetPlayerNameEx(playerid), playerid); ABroadCast(COLOR_LIGHTRED, Message, 2); SendReportToQue(playerid, "Falling (Player Frozen)"); SendClientMessageEx(playerid, COLOR_WHITE, "A report has been sent to the available admins, you have been frozen."); } } case 1: //OOC Hit { ShowPlayerDialog(playerid, DIALOG_NOTHING, DIALOG_STYLE_MSGBOX, "OOC Hit", "{FFFFFF}OOC Hits are to be handled on the forums. (Player Complaint)\n\n forum.net/forums", "Close", ""); } case 2: //Server Advertising { ShowPlayerDialog(playerid, DIALOG_REPORTSA, DIALOG_STYLE_INPUT, "Report Player - Server Advertising", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 3: //Non RP Name { ShowPlayerDialog(playerid, DIALOG_REPORTNRPN, DIALOG_STYLE_INPUT, "Report Player - Non-RP Name", "Enter the name or ID of the player.", "Enter", "Cancel"); } case 4: //Other/Freetext (PVip Only!!) { if(PlayerInfo[playerid][pDonateRank] >= 4) { ShowPlayerDialog(playerid, DIALOG_REPORTFREE, DIALOG_STYLE_INPUT,"Other / Free Text","Enter the message you want to send to the admin team.","Send","Cancel"); } else { SendClientMessageEx(playerid, COLOR_GREY, "This is a Platinum VIP+ feature only."); } } case 5: //House Move { SetPVarInt(playerid, "HasReport", 1); SendReportToQue(playerid, "House Move"); SendClientMessageEx(playerid, COLOR_WHITE, "Your house move request has been sent to the current available admins."); } case 6: //Appeal Admin Action { SetPVarInt(playerid, "HasReport", 1); SendReportToQue(playerid,"Appeal Admin Action"); SendClientMessageEx(playerid, COLOR_WHITE, "Your Appeal Admin Action report has been sent to the current available admins."); } case 7: //Prize Claim { if(PlayerInfo[playerid][pFlag] == 0) { SendClientMessageEx(playerid, COLOR_GREY, "You do not have any prize claims pending. (Not Flagged)"); return 1; } else { SetPVarInt(playerid, "HasReport", 1); SendReportToQue(playerid, "Prize Claim"); SendClientMessageEx(playerid, COLOR_WHITE, "Your Prize Claim report has been sent to the current available admins."); } } case 8: //Shop Issue { ShowPlayerDialog(playerid, DIALOG_NOTHING, DIALOG_STYLE_MSGBOX, "Shop Issue", "{FFFFFF}For any shop inquiry or concern please use /shoporder to contact one of our shoptechs.", "Close", ""); } case 9: //Not Listed Here { ShowPlayerDialog(playerid, DIALOG_REPORTNOTLIST, DIALOG_STYLE_INPUT,"Not Listed","Using this category will receive a slower response from the admin team, please consider using the most appropriate category for a faster response.","Send","Cancel"); } case 10: // Needs to speak to an admin { ShowPlayerDialog(playerid, DIALOG_SPEAKTOADMIN, DIALOG_STYLE_INPUT,"Other / Free Text","Enter the message you want to send to the admin team.","Send","Cancel"); } case 11: // Request CA { if(JustReported[playerid] > 0) { SendClientMessageEx(playerid, COLOR_GREY, "Wait 10 seconds after sending a next request!"); return 1; } JustReported[playerid]=10; format(string, sizeof(string), "** %s(%i) is requesting help, reason: Report Menu. (type /accepthelp %i)", GetPlayerNameEx(playerid), playerid, playerid); SendDutyAdvisorMessage(TEAM_AZTECAS_COLOR, string); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You have requested help from a Community Advisor, wait for a reply."); SetPVarInt( playerid, "COMMUNITY_ADVISOR_REQUEST", 1 ); SetPVarInt( playerid, "HelpTime", 5); SetPVarString( playerid, "HelpReason", "Report Menu"); SetTimerEx( "HelpTimer", 60000, 0, "d", playerid); } case 12: //Request Unmute { ShowPlayerDialog(playerid, DIALOG_UNMUTE, DIALOG_STYLE_LIST, "Requesting Unmute", "Ad Unmute\nNewbie Unmute", "Select", "Exit"); } case 13: //Previous Page { ShowPlayerDialog(playerid, DIALOG_REPORTMENU, DIALOG_STYLE_LIST, "Report Menu [1/2]", "Deathmatch\nHacking\nRevenge Killing\nKilling on Sight\nChicken Running\nCar Ramming\nPower Gaming\nMeta Gaming\nGun Discharge Exploits (QS/CS)\nSpamming\nMoney Farming\nBan Evader\nGeneral Exploits\nReleasing Hitman Names\nRunning Man Exploiter\nLog to Avoid\nCar Surfing\nNonRP Behavior\nNext Page","Select", "Exit"); } } } } if(dialogid == DIALOG_UNMUTE) { if(response) { switch(listitem) { case 0: { SetPVarInt(playerid, "HasReport", 1); SendReportToQue(playerid, "Ad Unmute"); SendClientMessageEx(playerid, COLOR_WHITE, "Your report has been sent to the current available admins."); } case 1: { SetPVarInt(playerid, "HasReport", 1); SendReportToQue(playerid, "Newbie Unmute"); SendClientMessageEx(playerid, COLOR_WHITE, "Your report has been sent to the current available admins."); } } } } if(dialogid == DIALOG_REPORTDM) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTDM, DIALOG_STYLE_INPUT, "Report Player - Deathmatch", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTDM, DIALOG_STYLE_INPUT, "Report Player - Deathmatch", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Deathmatch", GetPlayerNameEx(Player), Player); SendReportToQue(playerid, Message); format(Message, sizeof(Message), "You have submitted a report on %s for Deathmatch. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTRK) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTRK, DIALOG_STYLE_INPUT, "Report Player - Revenge Killing", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTRK, DIALOG_STYLE_INPUT, "Report Player - Revenge Killing", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Revenge Killing", GetPlayerNameEx(Player), Player); SendReportToQue(playerid, Message); format(Message, sizeof(Message), "You have submitted a report on %s for Revenge Killing. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTKOS) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTKOS, DIALOG_STYLE_INPUT, "Report Player - Killing on Sight", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTKOS, DIALOG_STYLE_INPUT, "Report Player - Killing on Sight", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Killing on Sight", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Killing on Sight. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTCR) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTCR, DIALOG_STYLE_INPUT, "Report Player - Chicken Running", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTCR, DIALOG_STYLE_INPUT, "Report Player - Chicken Running", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Chicken Running", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Chicken Running. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTCARRAM) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTCARRAM, DIALOG_STYLE_INPUT, "Report Player - Car Ramming", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTCARRAM, DIALOG_STYLE_INPUT, "Report Player - Car Ramming", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Car Ramming", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Car Ramming. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTPG) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTPG, DIALOG_STYLE_INPUT, "Report Player - Power Gaming", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTPG, DIALOG_STYLE_INPUT, "Report Player - Power Gaming", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Power Gaming", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Power Gaming. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTMG) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTMG, DIALOG_STYLE_INPUT, "Report Player - Meta Gaming", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTMG, DIALOG_STYLE_INPUT, "Report Player - Meta Gaming", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Meta Gaming", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Meta Gaming. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTSPAM) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTSPAM, DIALOG_STYLE_INPUT, "Report Player - Spamming", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTSPAM, DIALOG_STYLE_INPUT, "Report Player - Spamming", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Spamming", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Spamming. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTGDE) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTGDE, DIALOG_STYLE_INPUT, "Report Player - Gun Discharge Exploits", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTGDE, DIALOG_STYLE_INPUT, "Report Player - Gun Discharge Exploits", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Gun Discharge Exploits", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Gun Discharge Exploits. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTHACK) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTHACK, DIALOG_STYLE_INPUT, "Report Player - Hacking", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTHACK, DIALOG_STYLE_INPUT, "Report Player - Hacking", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Hacking", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Hacking. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTMF) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTMF, DIALOG_STYLE_INPUT, "Report Player - Money Farming", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTMF, DIALOG_STYLE_INPUT, "Report Player - Money Farming", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Money Farming", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Money Farming. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTSA) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTSA, DIALOG_STYLE_INPUT, "Report Player - Server Advertising", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTSA, DIALOG_STYLE_INPUT, "Report Player - Server Advertising", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Server Advertising", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Server Advertising. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTNRPN) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTNRPN, DIALOG_STYLE_INPUT, "Report Player - NonRP Name", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTNRPN, DIALOG_STYLE_INPUT, "Report Player - NonRP Name", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) NonRP Name", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for NonRP Name. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTBANEVADE) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTBANEVADE, DIALOG_STYLE_INPUT, "Report Player - Ban Evader", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTBANEVADE, DIALOG_STYLE_INPUT, "Report Player - Ban Evader", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Ban Evader", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Ban Evader. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTGE) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTGE, DIALOG_STYLE_INPUT, "Report Player - General Exploits", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTGE, DIALOG_STYLE_INPUT, "Report Player - General Exploits", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) General Exploits", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for General Exploits. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTRHN) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTRHN, DIALOG_STYLE_INPUT, "Report Player - Releasing Hitman Names", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTRHN, DIALOG_STYLE_INPUT, "Report Player - Releasing Hitman Names", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Releasing Hitman Names", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Releasing Hitman Names. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTRSE) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTRSE, DIALOG_STYLE_INPUT, "Report Player - Running/Swimming Man Exploit", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTRSE, DIALOG_STYLE_INPUT, "Report Player - Running/Swimming Man Exploit", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Running/Swimming Man Exploit", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Running/Swimming Man Exploit. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTLOG) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTLOG, DIALOG_STYLE_INPUT, "Report Player - Logging to Avoid", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTLOG, DIALOG_STYLE_INPUT, "Report Player - Logging to Avoid", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Logging to Avoid", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Logging to Avoid. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTCARSURF) { if(response) { new Player, Message[128]; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTCARSURF, DIALOG_STYLE_INPUT, "Report Player - Car Surfing", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTCARSURF, DIALOG_STYLE_INPUT, "Report Player - Car Surfing", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i) Car Surfing", GetPlayerNameEx(Player), Player); SendReportToQue(playerid,Message); format(Message, sizeof(Message), "You have submitted a report on %s for Car Surfing. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); } } } if(dialogid == DIALOG_REPORTNRPB) { if(response) { new Player; if(sscanf(inputtext, "u", Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTNRPB, DIALOG_STYLE_INPUT, "Report Player - NonRP Behavior", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); return 1; } else if(!IsPlayerConnected(Player)) { ShowPlayerDialog(playerid, DIALOG_REPORTNRPB, DIALOG_STYLE_INPUT, "Report Player - NonRP Behavior", "(Error - Invalid Player) Enter the name or ID of the player.", "Enter", "Cancel"); } else if(Player == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't submit a report on yourself."); } else { SetPVarInt(playerid, "NRPB", Player); ShowPlayerDialog(playerid, DIALOG_REPORTNRPB2, DIALOG_STYLE_INPUT,"Report Player - NonRP Behavior","Explain what the player is doing.","Send","Cancel"); } } } if(dialogid == DIALOG_REPORTNRPB2) { if(response == 1) { if(isnull(inputtext)) { ShowPlayerDialog(playerid, DIALOG_REPORTNRPB2, DIALOG_STYLE_INPUT,"Report Player - NonRP Behavior","Explain what the player is doing.","Send","Cancel"); } new Message[128], Player; Player = GetPVarInt(playerid, "NRPB"); SetPVarInt(playerid, "HasReport", 1); format(Message, sizeof(Message), "%s(%i), %s (nonrp behavior)", GetPlayerNameEx(Player), Player, inputtext); SendReportToQue(playerid, Message); format(Message, sizeof(Message), "You have submitted a report on %s for NonRP Behavior. It has been sent to all available admins.", GetPlayerNameEx(Player)); SendClientMessageEx(playerid, COLOR_WHITE, Message); DeletePVar(playerid, "NRPB"); } else { DeletePVar(playerid, "NRPB"); } } if(dialogid == DIALOG_REPORTFREE) { if(response == 1) { if(isnull(inputtext)) { ShowPlayerDialog(playerid, DIALOG_REPORTFREE, DIALOG_STYLE_INPUT,"Other / Free Text","(Error - No Message) Enter the message you want to send to the admin team.","Send","Cancel"); } SetPVarInt(playerid, "HasReport", 1); SendReportToQue(playerid, inputtext); SendClientMessageEx(playerid, COLOR_WHITE, "Your message has been sent to the admin team."); } } if(dialogid == DIALOG_REPORTNOTLIST) { if(response == 1) { if(isnull(inputtext)) { ShowPlayerDialog(playerid, DIALOG_REPORTNOTLIST, DIALOG_STYLE_INPUT,"Not Listed","(Error - No Message) Using this category will receive a slower response from the admin team, please consider using the most appropriate category for a faster response","Send","Cancel"); } SetPVarString(playerid, "ReportNotList", inputtext); ShowPlayerDialog(playerid, DIALOG_REPORTNOTLIST2, DIALOG_STYLE_MSGBOX, "Not Listed", "Are you sure your report doesn't fit under any other report categories?", "Yes", "No"); } } if(dialogid == DIALOG_REPORTNOTLIST2) { if(response == 1) { new Message[128]; GetPVarString(playerid, "ReportNotList", Message, sizeof(Message)); SetPVarInt(playerid, "HasReport", 1); SendReportToQue(playerid, Message); SendClientMessageEx(playerid, COLOR_WHITE, "Your message has been sent to to the admin team."); } }
If u want to be a scripter for the server and has what it takes, Pm me or skype me on: kareemk98
Thank you, appreciate the help <3
=Rep