ZCMD goes wrong..
#9

Should fix it...

pawn Код:
CMD:givemoney(playerid,params[])
{
    if(IsPlayerConnected(playerid))
    {
        new playa,money,string[64],sendername[MAX_PLAYER_NAME],giveplayer[MAX_PLAYER_NAME],tmp[256];
        if(PlayerInfo[playerid][pAdmin] >= 1338)
        {
            money = strval(tmp);
            if(sscanf(params, "ui", playa,money)) return SendClientMessage(playerid,COLOR_GREY,"Lietojums: /givemoney <Spe-le-ta-ja ID> <Naudas Daudzums>");
            if(IsPlayerConnected(playa))
            {
                PlayerInfo[playa][pMoneyH] += money;
                GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, 256, "AdmWarning: Administrators %s iedeva %s $%d.", sendername,giveplayer,money);
                ABroadCast(COLOR_YELLOW,string,1);
            }
            else return SendClientMessage(playerid,COLOR_GREY,"Nepareizs spe-le-ta-ja ID");
        }
        else return SendClientMessage(playerid,COLOR_GREY,"Tu nevari izmantot љo komandu!");
    }
    return 1;
}
Reply


Messages In This Thread
ZCMD goes wrong.. - by GaGlets(R) - 13.07.2010, 18:48
Re: ZCMD goes wrong.. - by oliverrud - 13.07.2010, 18:56
Re: ZCMD goes wrong.. - by GaGlets(R) - 13.07.2010, 19:14
Re: ZCMD goes wrong.. - by oliverrud - 13.07.2010, 19:47
Re: ZCMD goes wrong.. - by Sergei - 13.07.2010, 20:05
Re: ZCMD goes wrong.. - by GaGlets(R) - 13.07.2010, 20:19
Re: ZCMD goes wrong.. - by Kar - 13.07.2010, 20:21
Re: ZCMD goes wrong.. - by GaGlets(R) - 13.07.2010, 20:47
Re: ZCMD goes wrong.. - by PotH3Ad - 13.07.2010, 20:52
Re: ZCMD goes wrong.. - by GaGlets(R) - 13.07.2010, 21:11

Forum Jump:


Users browsing this thread: 3 Guest(s)