/Report Script
#1

Pwn Code:

CMD:approve(playerid, params[])
{
new string[128], option[32];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on admin duty.");
if(sscanf(params, "s[32]", option))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /approve [option]");
SendClientMessage(playerid, COLOR_GREY, "OPTIONS: taxrequest | namechange");
return 1;
}
if(!strcmp(option, "taxrequest", true, 10))
{
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to approve tax percent requests.");
if(TaxRequester == -1) return SendClientMessage(playerid, COLOR_GREY, "Nobody has requested a tax percent change.");
format(string, sizeof(string), "AdmCmd: %s has accepted %s's request to change the tax percent to %d.", RPN(playerid), RPN(TaxRequester), TaxPercent);
SendAdminMessage(COLOR_DARKRED, 1, string);
Log("logs/settax.log", string);
format(string, sizeof(string), " Administrator %s has approved your requset to change the tax percent.", RPN(playerid));
SendClientMessage(TaxRequester, COLOR_LIGHTBLUE, string); TaxPercent = TempTaxPercent;
SendClientMessageToAll(COLOR_WHITE, "|___________ Government News Announcement ___________|");
format(string, sizeof(string), "** [%s] %s %s: Dear Citizens of San Andreas, this is %s %s speaking. **", RPFN(TaxRequester), RPFRN(TaxRequester), RPN(TaxRequester), RPFRN(TaxRequester), RPN(TaxRequester));
SendClientMessageToAll(COLOR_BLUE, string);
format(string, sizeof(string), "** [%s] %s %s: I'd like to inform you that the tax rate on your paychecks is now %d percent. **", RPFN(TaxRequester), RPFRN(TaxRequester), RPN(TaxRequester), TaxPercent);
SendClientMessageToAll(COLOR_BLUE, string);
format(string, sizeof(string), "** [%s] %s %s: That's all, long live San Andreas. **", RPFN(TaxRequester), RPFRN(TaxRequester), RPN(TaxRequester));
SendClientMessageToAll(COLOR_BLUE, string);
TempTaxPercent = 0;
TaxRequester = -1;
}
else if(!strcmp(option, "namechange", true, 10))
{
new playerb, parm[42];
if(sscanf(params, "s[32]u", option, playerb)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /approve namechange [playerid]");
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to approve namechange requests.");
if(!strlen(VIPName[playerb])) return SendClientMessage(playerid, COLOR_GREY, "Player hasn't requested a namechange.");
format(parm, sizeof(parm), "%d %s", playerb, VIPName[playerb]);
Approve[playerid] = 1;
cmd_setname(playerid, parm);
format(VIPName[playerb], MAX_PLAYER_NAME, "");
}
else SendClientMessage(playerid, COLOR_GREY, "Invalid option.");
return 1;
}

CMD:deny(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on admin duty.");
if(sscanf(params, "s[32]", params))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /deny [option]");
SendClientMessage(playerid, COLOR_GREY, "OPTIONS: taxrequest | namechange");
return 1;
}
if(!strcmp(params, "taxrequest", false))
{
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to deny tax percent requests.");
if(TaxRequester == -1) return SendClientMessage(playerid, COLOR_GREY, "Nobody has requested a tax percent change.");
format(string, sizeof(string), "AdmCmd: %s has denied %s's request to change the tax percent to %d.", RPN(playerid), RPN(TaxRequester), TempTaxPercent);
SendAdminMessage(COLOR_DARKRED, 1, string);
Log("logs/settax.log", string);
format(string, sizeof(string), " Administrator %s has denied your requset to change the tax percent.", RPN(playerid));
SendClientMessage(TaxRequester, COLOR_LIGHTBLUE, string);
TempTaxPercent = 0;
TaxRequester = -1;
}
else if(!strcmp(params, "namechange", true, 10))
{
new playerb;
if(sscanf(params, "s[32]u", params, playerb)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /deny namechange [playerid]");
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to approve namechange requests.");
if(!strlen(VIPName[playerb])) return SendClientMessage(playerid, COLOR_GREY, "Player hasn't requested a namechange.");
format(VIPName[playerb], MAX_PLAYER_NAME, "");
format(string, sizeof(string), "AdmWarn: %s has denied %s's namechange request.", RPN(playerid), RPN(playerb));
SendAdminMessage(COLOR_DARKRED, 1, string);
format(string, sizeof(string), " Administrator %s has denied your namechange request.", RPN(playerid));
SendClientMessage(playerb, COLOR_WHITE, string);
}
else SendClientMessage(playerid, COLOR_GREY, "Invalid option.");
return 1;
}

Anyone got a better /report script ?

__________________
Hostname: New Street's Life Roleplay [Refunding GVIP]
IP/Port: 91.121.237.252:7847
Players: 1/25
Game Mode: NSL:RP v2.6
Map: LS / LV
Server Version: 0.3z
Lagcomp: On
Website: Coming Soon!
Reply
#2

here : https://sampforum.blast.hk/showthread.php?tid=380679

hope it helped
Reply
#3

Код HTML:
here : https://sampforum.blast.hk/showthread.php?tid=380679

hope it helped
Thanks

__________________
Hostname: New Street's Life Roleplay [Refunding GVIP]
IP/Port: 91.121.237.252:7847
Players: 1/25
Game Mode: NSL:RP v2.6
Map: LS / LV
Server Version: 0.3z
Lagcomp: On
Website: Coming Soon!
Reply
#4

LOL WTF? what the hell is this? this aint even a report system LMAO those two accounts is the same guy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)