Need /giverefund
#1

i need a /giverefund command

i need included: Levels, money, bankmoney, materials, crack, pot, screwdriver, and platinum vip

can somebody give me one or something
Reply
#2

bump
Reply
#3

What you mean with:
"i need included: Levels, money, bankmoney, materials, crack, pot, screwdriver, and platinum vip" ?
like /giverefund Level ?
Reply
#4

Quote:
Originally Posted by BrandyPenguin
Посмотреть сообщение
What you mean with:
"i need included: Levels, money, bankmoney, materials, crack, pot, screwdriver, and platinum vip" ?
like /giverefund Level ?
All in one :P
Reply
#5

Do you have the variables already created in your server, before I hand you the command I made?
Reply
#6

like the levels, money, bankmoney, materials, crack, pot, screwdriver, and platinum VIP?

if that. then yes.

if you mean something else, brief me
Reply
#7

He means like
[pCash] [pPot] something like that.. Example. If there's a CMD that gives you Pot (Before i say something, i'm guessing you downloaded the GM) or gives you gun when you buy from ammu-nation, there will be [pGun] or something (On the one i know it does, coz it has Anti-Hack)
Reply
#8

Command:
pawn Код:
CMD:refund(playerid, params[])
{
    if(IsPlayerConnected(playerid)) {
        new giveplayerid;
        if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /refund [playerid]");
        if(PlayerInfo[playerid][pAdmin] < 2) {
            SendClientMessage(playerid, COLOR_GREY,"   You are not authorized to use that command !");
            return 1;
        }
        if(IsPlayerConnected(giveplayerid)) {
            if(giveplayerid != INVALID_PLAYER_ID) {
                RefundingID[playerid] = giveplayerid;
                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;
}

Dialog:

pawn Код:
if(dialogid == 47) //refund
    {
        if(!response)
        {
            RefundingID[playerid] = 999;
        }
        if(response)
        {
            new statname[32];
            new giveplayer[MAX_PLAYER_NAME];
            GetPlayerName(RefundingID[playerid], giveplayer, sizeof(giveplayer));
            switch(listitem)
            {
                case 0:
                {
                    RefundingNumber[playerid] = 0;
                    statname = "Level";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 1:
                {
                    RefundingNumber[playerid] = 1;
                    statname = "Cash";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 2:
                {
                    RefundingNumber[playerid] = 2;
                    statname = "Bank";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                    return 1;
                }
                case 3:
                {
                    RefundingNumber[playerid] = 3;
                    statname = "Materials";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 4:
                {
                    RefundingNumber[playerid] = 4;
                    statname = "Crack";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 5:
                {
                    RefundingNumber[playerid] = 5;
                    statname = "Pot";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 6:
                {
                    RefundingNumber[playerid] = 6;
                    statname = "Arms Dealer Skill";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 7:
                {
                    RefundingNumber[playerid] = 7;
                    statname = "Carjacker Skill";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 8:
                {
                    RefundingNumber[playerid] = 8;
                    statname = "Detective Skill";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 9:
                {
                    RefundingNumber[playerid] = 9;
                    statname = "Lawyer Skill";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 10:
                {
                    RefundingNumber[playerid] = 10;
                    statname = "Mechanic Skill";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 11:
                {
                    RefundingNumber[playerid] = 11;
                    statname = "Drug Dealer Skill";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 12:
                {
                    RefundingNumber[playerid] = 12;
                    statname = "Sex Skill";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 13:
                {
                    RefundingNumber[playerid] = 13;
                    statname = "Boxing Skill";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 14:
                {
                    RefundingNumber[playerid] = 14;
                    statname = "Fishing Skill";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 15:
                {
                    RefundingNumber[playerid] = 15;
                    statname = "Weapon Restriction";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
                case 16:
                {
                    RefundingNumber[playerid] = 16;
                    statname = "Gang Warnings";
                    format(string, sizeof(string), "Refunding [%d]%s's %s", RefundingID[playerid] , giveplayer, statname);
                    ShowPlayerDialog(playerid,48,DIALOG_STYLE_INPUT, string,"Enter the amount below.","Confirm","Cancel");
                }
            }
            return 1;
        }
    }

You will have to add in the variables yourself.
Reply
#9

i am using NGRP i THINK variables are there
Reply
#10

by the way. are they all given at the same time?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)