[DUV] /dargrana
#4

pawn Код:
if(strcmp(cmd, "/dargrana", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /dargrana [ id ] [money]");
                return 1;
            }
            new playa;
            new money;
            playa = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            money = strval(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 1337)
            {
                if(admintrabalhando[playerid] < 1)
                {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                return 1;
                }
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        ConsumingMoney[playa] = 1;
                        GivePlayerMoneyEx(playa, money);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Voce nгo esta autorizado a usar este comando!");
            }
        }
        return 1;
    }
Reply


Messages In This Thread
[DUV] /dargrana - by [AF]Junior - 24.01.2011, 14:52
Re: [DUV] /dargrana - by felipewireless - 24.01.2011, 14:58
Re: [DUV] /dargrana - by [AF]Junior - 24.01.2011, 15:08
Re: [DUV] /dargrana - by Macintosh - 24.01.2011, 15:16

Forum Jump:


Users browsing this thread: 3 Guest(s)