pawn Code:
if(dialogid == 48) //refund
{
if(!IsPlayerConnected(RefundingID[playerid]) || RefundingID[playerid] == INVALID_PLAYER_ID)
{
RefundingID[playerid] = 999; RefundingNumber[playerid] = 999;
SendClientMessage(playerid, COLOR_GREY, " That player is Offline / Invalid ID !");
return 1;
}
if(!response) //cancel
{
RefundingNumber[playerid] = 999;
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
}
if(response)
{
if(!strlen(inputtext)) //no text inputted
{
RefundingNumber[playerid] = 999;
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
return 1;
}
new giveplayer[MAX_PLAYER_NAME];
new amount;
amount = strval(inputtext);
new year, month, day;
getdate(year, month, day);
new stat = RefundingNumber[playerid];
new giveplayerid = RefundingID[playerid];
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
switch(stat)
{
case 0: //Level
{
RefundingNumber[playerid] = 999;
PlayerInfo[giveplayerid][pLevel] = amount; //edit
format(string, sizeof(string), "* You have set %s's Level to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Level to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 1: //Cash
{
RefundingNumber[playerid] = 999;
ResetPlayerCash(giveplayerid);
GivePlayerCash(giveplayerid, amount);
format(string, sizeof(string), "* You have set %s's Cash to $%d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Cash to $%d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Cash to $%d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 2: //Bank
{
RefundingNumber[playerid] = 999;
PlayerInfo[giveplayerid][pAccount] = amount; //edit
format(string, sizeof(string), "* You have set %s's Bank Account to $%d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Bank Account to $%d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Bank Account to $%d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 3: //Materials
{
RefundingNumber[playerid] = 999;
PlayerInfo[giveplayerid][pMats] = amount; //edit
format(string, sizeof(string), "* You have set %s's Materials to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Materials to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Materials to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 4: //Crack
{
RefundingNumber[playerid] = 999;
PlayerInfo[giveplayerid][pCrack] = amount; //edit
format(string, sizeof(string), "* You have set %s's Crack to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Crack to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Crack to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 5: //Pot
{
RefundingNumber[playerid] = 999;
PlayerInfo[giveplayerid][pPot] = amount; //edit
format(string, sizeof(string), "* You have set %s's Pot to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Pot to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Pot to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 6: //Arms Dealer
{
RefundingNumber[playerid] = 999;
//
new lvl;
if(amount == 1) { lvl = 0;}
else if(amount == 2) { lvl = 50; }
else if(amount == 3) { lvl = 100; }
else if(amount == 4) { lvl = 200; }
else if(amount == 5) { lvl = 400; }
else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); return 1; } //edit
PlayerInfo[giveplayerid][pArmsSkill] = lvl; //edit
//
format(string, sizeof(string), "* You have set %s's Arms Dealer Level to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Arms Dealer Level to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Arms Dealer Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 7: //Carjacker
{
RefundingNumber[playerid] = 999;
//
new lvl;
if(amount == 1) { lvl = 0;}
else if(amount == 2) { lvl = 50; }
else if(amount == 3) { lvl = 100; }
else if(amount == 4) { lvl = 200; }
else if(amount == 5) { lvl = 400; }
else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); return 1; } //edit
PlayerInfo[giveplayerid][pJackSkill] = lvl; //edit
//
format(string, sizeof(string), "* You have set %s's Car Jacker Level to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Car Jacker Level to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Car Jacker Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 8: //Detective
{
RefundingNumber[playerid] = 999;
//
new lvl;
if(amount == 1) { lvl = 0;}
else if(amount == 2) { lvl = 50; }
else if(amount == 3) { lvl = 100; }
else if(amount == 4) { lvl = 200; }
else if(amount == 5) { lvl = 400; }
else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); return 1; } //edit
PlayerInfo[giveplayerid][pDetSkill] = lvl; //edit
//
format(string, sizeof(string), "* You have set %s's Detective Level to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Detective Level to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Detective Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 9: //Lawyer
{
RefundingNumber[playerid] = 999;
//
new lvl;
if(amount == 1) { lvl = 0;}
else if(amount == 2) { lvl = 50; }
else if(amount == 3) { lvl = 100; }
else if(amount == 4) { lvl = 200; }
else if(amount == 5) { lvl = 400; }
else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); return 1; } //edit
PlayerInfo[giveplayerid][pLawSkill] = lvl; //edit
//
format(string, sizeof(string), "* You have set %s's Lawyer Level to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Lawyer Level to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Lawyer Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 10: //Mechanic
{
RefundingNumber[playerid] = 999;
//
new lvl;
if(amount == 1) { lvl = 0;}
else if(amount == 2) { lvl = 50; }
else if(amount == 3) { lvl = 100; }
else if(amount == 4) { lvl = 200; }
else if(amount == 5) { lvl = 400; }
else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); return 1; } //edit
PlayerInfo[giveplayerid][pMechSkill] = lvl; //edit
//
format(string, sizeof(string), "* You have set %s's Mechanic Level to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Mechanic Level to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Mechanic Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 11: //Drug Dealer
{
RefundingNumber[playerid] = 999;
//
new lvl;
if(amount == 1) { lvl = 0;}
else if(amount == 2) { lvl = 50; }
else if(amount == 3) { lvl = 100; }
else if(amount == 4) { lvl = 200; }
else if(amount == 5) { lvl = 400; }
else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); return 1; } //edit
PlayerInfo[giveplayerid][pDrugsSkill] = lvl; //edit
//
PlayerInfo[giveplayerid][pDrugsSkill] = amount; //edit
format(string, sizeof(string), "* You have set %s's Drug Dealer Level to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Drug Dealer Level to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Drug Dealer Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 12: //Sex
{
RefundingNumber[playerid] = 999;
//
new lvl;
if(amount == 1) { lvl = 0;}
else if(amount == 2) { lvl = 50; }
else if(amount == 3) { lvl = 100; }
else if(amount == 4) { lvl = 200; }
else if(amount == 5) { lvl = 400; }
else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); return 1; } //edit
PlayerInfo[giveplayerid][pSexSkill] = lvl; //edit
//
PlayerInfo[giveplayerid][pSexSkill] = amount; //edit
format(string, sizeof(string), "* You have set %s's Sex Level to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Sex Level to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Sex Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 13: //Boxing
{
RefundingNumber[playerid] = 999;
//
new lvl;
if(amount == 1) { lvl = 0;}
else if(amount == 2) { lvl = 50; }
else if(amount == 3) { lvl = 100; }
else if(amount == 4) { lvl = 200; }
else if(amount == 5) { lvl = 400; }
else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); return 1; } //edit
PlayerInfo[giveplayerid][pBoxSkill] = lvl; //edit
//
format(string, sizeof(string), "* You have set %s's Boxing Level to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Boxing Level to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Boxing Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 14: //Fishing
{
RefundingNumber[playerid] = 999;
//
new lvl;
if(amount == 1) { lvl = 0;}
else if(amount == 2) { lvl = 50; }
else if(amount == 3) { lvl = 100; }
else if(amount == 4) { lvl = 200; }
else if(amount == 5) { lvl = 400; }
else { SendClientMessage(playerid, COLOR_GREY, " Amount can't be below 0 or above 5 !"); ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); return 1; } //edit
PlayerInfo[giveplayerid][pFishSkill] = lvl; //edit
//
format(string, sizeof(string), "* You have set %s's Fishing Level to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Fishing Level to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Fishing Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 15: //Weap Restrict
{
RefundingNumber[playerid] = 999;
PlayerInfo[giveplayerid][pWRestricted] = amount; //edit
//
format(string, sizeof(string), "* You have set %s's Weapon Restriction to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Weapon Restriction to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Fishing Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
case 16: //Gang Warns
{
RefundingNumber[playerid] = 999;
PlayerInfo[giveplayerid][pGangWarn] = amount; //edit
//
format(string, sizeof(string), "* You have set %s's Gang Warnings to %d.", GetPlayerNameEx(giveplayerid), amount); //edit
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Administrator %s has set your Gang Warnings to %d.", GetPlayerNameEx(playerid), amount); //edit
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
format(string, sizeof(string), "[%d/%d/%d] %s has set %s's Fishing Level to %d", day, month, year, GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); //edit
}
default:
{
ShowPlayerDialog(playerid, 47, DIALOG_STYLE_LIST, "Stat Refund","Level\nCash\nBank\nMaterials\nCrack\nPot\nArms Dealer Skill\nCarjacker Skill\nDetective Skill\nLawyer Skill\nMechanic Skill\nDrug Dealer Skill\nSex Skill\nBoxing Skill\nFishing Skill\nRestricted Weapon Time\nGang Warnings", "Proceed", "Cancel"); //refund
SendClientMessage(giveplayerid, COLOR_GREY, " Invalid stat code !");
return 1;
}
}
OnPlayerStatsUpdate(giveplayerid);
}
}