[Ajuda] Comando /setmoney
#2

Eu tenho esse comando no meu gamemode, vou postar aqui , eu tenho como tu queres , mete no teu gamemode e adiciona as includes e dps vк-se funciona ... Obvio que vais ter de definir algumas coisas , mas tenta :3

pawn Код:
if(strcmp(cmd, "/darguito", true) == 0)
            {
                if(IsPlayerConnected(playerid))
                {
                    tmp = strtok(cmdtext, idx);
                    if(!strlen(tmp))
                    {
                        SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "*{C0C0C0} Uso:{FFFFFF} /darguito [playerid] [money]");
                        return 1;
                    }
                    new playa;
                    new money;
                    playa = ReturnUser(tmp);
                    tmp = strtok(cmdtext, idx);
                    money = strval(tmp);
                    if (PlayerInfo[playerid][pAdmin] >= 20)
                    {
                        if(IsPlayerConnected(playa))
                        {
                            if(playa != INVALID_PLAYER_ID)
                            {
                                GivePlayerEuros(playa, money);
                                format(string, sizeof(string), "- %s Criou $%d para %s.", GetPlayerNameEx(playerid), money, GetPlayerNameEx(playa));
                                GuitoLog(string);
                            }
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid,COLOR_RED,SEM_NIVEL);
                    }
                }
                return 1;
            }
Reply


Messages In This Thread
Comando /setmoney - by GustavinCTN - 24.06.2013, 08:59
Re: Comando /setmoney - by JuniorPT - 24.06.2013, 09:17
Re: Comando /setmoney - by Mateus_. - 29.06.2013, 00:06
Re: Comando /setmoney - by ProKillerpa - 29.06.2013, 13:15

Forum Jump:


Users browsing this thread: 1 Guest(s)