SA-MP Forums Archive
Scripting help - 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: Scripting help (/showthread.php?tid=523513)



Scripting help - kirostar - 02.07.2014

I want /setmoney for my admin system help please


Re: Scripting help - SHE790 - 02.07.2014

For witch Admin lvl?


Re: Scripting help - BroZeus - 02.07.2014

well this is wrong section for this
try making one and if you have any problem then ask in this section
we are not meant to give the code of your request in this section we are meant to help u to make it out


Re: Scripting help - kirostar - 02.07.2014

For admin level 4


Re: Scripting help - SHE790 - 02.07.2014

well i will send u in ur pm go check it


Re: Scripting help - Beckett - 02.07.2014

pawn Код:
CMD:givemoney(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 4)
    {
        new string[128],string2[128], targetid, money;
        if(sscanf(params, "ud", targetid, money)) return SendClientMessage(playerid,LIGHTBLUE, "[INFO]{FFFFFF}: /givemoney [playerid] [money]");
        if((targetid == INVALID_PLAYER_ID)) return MSG(playerid,RED,"** Player not found.");
        if(IsPlayerConnected(targetid))
        {
            GivePlayerMoney(targetid, money);
            format(string, sizeof(string), "* You have gave %s an amount of $%d.",sendername(targetid),money);
            SendClientMessage(playerid,-1, string);
            format(string2,sizeof(string2),"[GIVE_MONEY] %s has given %s %d cash.",sendername(playerid),sendername(targetid),money);
            printf(string2);
        }
    }
    else
    {
        SendClientMessage(playerid,-1,"You are not authorized to use this command.");
    }
    return 1;
}
This command is taken from my admin system.