[Pedido] COMANDO DE DAR DINHEIRO
#1

ALGUEM PODER FAZER ESSE COMANDO AQUI SETAR DINHEIRO PARA TODOS PLAYERS ONLINE.

Код:
dcmd_money(playerid, params[])
{
    new quantidade, adminName[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, adminName, sizeof(adminName));
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COR_ERRO, "[ERRO] Vocк nгo estб logado na RCON!");
    if(sscanf(params, "d", quantidade)) return SendClientMessage(playerid, COR_ERRO, "[ERRO] Uso correto: /money [quantidade]");
    for(new i; i < MAX_PLAYERS; i++) { Dinheiro[i] += quantidade; }
    format(string, sizeof(string), "O GM %s deu %d De Dinheiro para todos!", adminName, quantidade);
    SendClientMessageToAll(COR_GREEN, string);
    return 1;
}
Reply
#2

PHP код:
dcmd_money(playerid, params[])
{
    new 
quantidade, adminName[MAX_PLAYER_NAME], string[128];
    
GetPlayerName(playerid, adminName, sizeof(adminName));
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COR_ERRO, "[ERRO] Vocк nгo estб logado na RCON!");
    if(
sscanf(params, "d", quantidade)) return SendClientMessage(playerid, COR_ERRO, "[ERRO] Uso correto: /money [quantidade]");
    
format(string, sizeof(string), "O GM %s deu %d De Dinheiro para todos!", adminName, quantidade);
    
SendClientMessageToAll(COR_GREEN, string);
    for(new 
i; i < MAX_PLAYERS; i++)
    {
        
Dinheiro[i] += quantidade;
        
GivePlayerMoney(i, quantidade);
    }
    return 
1;
} 
Reply
#3

Vlw mano, Mt obg <3
Reply


Forum Jump:


Users browsing this thread: