Scripting help
#1

I want /setmoney for my admin system help please
Reply
#2

For witch Admin lvl?
Reply
#3

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
Reply
#4

For admin level 4
Reply
#5

well i will send u in ur pm go check it
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)