[Ajuda] /darvida [id] [vida]
#10

Garanto que esse funciona, substitua de acordo com o seu GAMEMODE!

pawn Код:
CMD:setarvida(playerid, params[])
{
    new Vida;
    if(PlayerDados[playerid][Admin] < 3) return SendClientMessage(playerid, BRANCO, "{FF0000}Vocк nгo й administrador level 3!");
    if(sscanf(params, "ui", ID, Vida)) return SendClientMessage(playerid, CINZA, "{FF0000}Use /setarvida [ID] [Quantia]");
    if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, BRANCO, "{FF0000}Jogador Offline!");
    if(Vida < 0 || Vida > 100) return SendClientMessage(playerid, CINZA, "{FF0000}[ERRO] {FFFF00}Valor Invбlido! Use de 0 a 100");
    SetPlayerHealth(ID, Vida);
    format(String, sizeof(String), "{FF0000} Administrador %s setou a vida de %s para [%d]", Nome(playerid), Nome(ID), Vida);
    SendClientMessageToAll(AZUL_CLARO, String);
    return 1;
}
Reply


Messages In This Thread
/darvida [id] [vida] - by Mateus_. - 10.03.2013, 00:35
Re: /darvida [id] [vida] - by @Riichard - 10.03.2013, 00:40
Re: /darvida [id] [vida] - by Mateus_. - 10.03.2013, 00:53
Re: /darvida [id] [vida] - by Sky™ - 10.03.2013, 01:03
Re: /darvida [id] [vida] - by @Riichard - 10.03.2013, 01:08
Re: /darvida [id] [vida] - by Sky™ - 10.03.2013, 01:09
Re: /darvida [id] [vida] - by @Riichard - 10.03.2013, 01:10
Re: /darvida [id] [vida] - by Abravanel - 10.03.2013, 01:12
Re: /darvida [id] [vida] - by LuxuN - 10.03.2013, 01:22
Re: /darvida [id] [vida] - by feliphemort - 10.03.2013, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)