SA-MP Forums Archive
GiveCash Dialog?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GiveCash Dialog?? (/showthread.php?tid=498020)



GiveCash Dialog?? - EmpireSk - 01.03.2014

Hi, is there a script to givecash through dialogue??


Re: GiveCash Dialog?? - NewerthRoleplay - 01.03.2014

https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog That should help you instead of asking others to do it for you, you can just make it yourself..


Re: GiveCash Dialog?? - EmpireSk - 01.03.2014

do not know in the dialogue


Re: GiveCash Dialog?? - EmpireSk - 01.03.2014

Help me??


Re: GiveCash Dialog?? - EmpireSk - 01.03.2014

Please Help me


Re: GiveCash Dialog?? - SDLMMM - 01.03.2014

PM me to get more info about this work , i will script it for u


Re: GiveCash Dialog?? - Golimad - 01.03.2014

You don't necessarily need a dialog. You can make a simple one like this :
pawn Код:
COMMAND:givemoney(playerid, params[])
{
    if (IsPlayerAdmin(playerid))
    {
        new
          toplayerid, // the player we want to give money to
          amount;
        // extracting player's ID and amount from params
        if (!sscanf(params, "ii", toplayerid, amount))
        {
          if (toplayerid != INVALID_PLAYER_ID)
          {
            new
              message[40];
            GivePlayerMoney(toplayerid, amount);
            format(message, sizeof(message), "You got $%d from admin!", amount);
            SendClientMessage(toplayerid, 0x00FF00FF, message);
          }
          else SendClientMessage(playerid, 0xFF0000FF, "That player is not connected");
        }
        else SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /givemoney <playerid> <amount>");
    }
    else SendClientMessage(playerid, 0xFF0000FF, "Only admins can use this command!");
    return 1;
}
Source : https://sampforum.blast.hk/showthread.php?tid=91354