[Pedido]Sistema de Gold bar
#10

Testa ai.

pawn Код:
enum pInfo
{
    pGold
};
new PlayerInfo[MAX_PLAYERS][pInfo];


    new string[128];
    if(strcmp(cmd, "/transformargold", true) == 0)
    {
        if(GetPlayerMoney(playerid) < 1000000) return SendClientMessage(playerid, -1, "ERROR: Vocк nгo tem 1kk");
        GivePlayerMoney(playerid, -1000000);
        PlayerInfo[playerid][pGold]++;
        format(string,sizeof(string),"1kk transformado para 1 Gold. Vocк agora possui %i Gold e %i$ em mгos.", PlayerInfo[playerid][pGold], GetPlayerMoney(playerid));
        SendClientMessage(playerid,-1,string);
        return 0x01;
    }
    if(strcmp(cmd, "/destranformargold", true) == 0)
    {
        new gold;
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, -1, "/destranformargold [golds]");
        gold = strval(tmp);
        if(PlayerInfo[playerid][pGold] < gold || gold < 1 || gold > 10) return SendClientMessage(playerid, -1, "ERROR: Vocк nгo tem essa quantia | Min 1 - mбx 10");
        PlayerInfo[playerid][pGold]-=gold;
        GivePlayerMoney(playerid, 1000000*gold);
        format(string,sizeof(string),"Vocк tem %i gold's disponнveis e possui agora %i em mгos.", PlayerInfo[playerid][pGold], GetPlayerMoney(playerid));
        SendClientMessage(playerid,-1,string);
        return 0x01;
    }
Reply


Messages In This Thread
[Pedido]Sistema de Gold bar - by jpmdik - 30.05.2011, 22:13
Re: [Pedido]Sistema de Gold bar - by Shadoww5 - 30.05.2011, 22:15
Re: [Pedido]Sistema de Gold bar - by jpmdik - 30.05.2011, 23:21
Re: [Pedido]Sistema de Gold bar - by Ricop522 - 31.05.2011, 01:49
Re: [Pedido]Sistema de Gold bar - by TheGarfield - 31.05.2011, 02:19
Re: [Pedido]Sistema de Gold bar - by diretor7 - 31.05.2011, 02:48
Re: [Pedido]Sistema de Gold bar - by Black Sσldiєя - 31.05.2011, 03:50
Re: [Pedido]Sistema de Gold bar - by Macintosh - 31.05.2011, 10:30
Re: [Pedido]Sistema de Gold bar - by Chefгo - 31.05.2011, 12:16
Re: [Pedido]Sistema de Gold bar - by Ricop522 - 31.05.2011, 19:48

Forum Jump:


Users browsing this thread: 2 Guest(s)