SA-MP Forums Archive
[PEDIDO] Vida todos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [PEDIDO] Vida todos (/showthread.php?tid=335228)



[PEDIDO] Vida todos - .ThePro - 17.04.2012

comando de dar vida para todos em zcmd, no search sу achei em strmcp .-.


Re: [PEDIDO] Vida todos - @Riichard - 17.04.2012

tenho de setar vida para player..
se quiser '-'


Re: [PEDIDO] Vida todos - BreakDriFT - 17.04.2012

@EDITADOOO

pawn Код:
CMD:vidaall (playerid, params[])
    {
        if(JogadorInfo[playerid][Admin] < 1) return SendClientMessage(playerid, -1, "Erro: Vocк nгo й admin!!.");
        for(new i=0;i<MAX_PLAYERS;i++)
        SetPlayerHealth(i,100);
        new string2[72];
        format(string2, sizeof(string2), "Admin: %s deu vida apra all",PegarNome(playerid));
        SendClientMessageToAll( VERDE, string2);
        SendClientMessage(playerid, VERDE_CLARO, "voce deu vida apra all);
        return true;
    }
Peguei o cod do gm do udy .


Re: [PEDIDO] Vida todos - @Riichard - 17.04.2012

- EDIT
Vo posta n ,__,


Re: [PEDIDO] Vida todos - .ThePro - 17.04.2012

Й PARA TODOS E NГO PARA UM ID ESPECIFICO!


Re: [PEDIDO] Vida todos - BreakDriFT - 17.04.2012

eu editei ve laaaa


Re: [PEDIDO] Vida todos - Abravanel - 17.04.2012

pawn Код:
CMD:darvidatodos(playerid)
{
    new i = -1;
    while(++i < MAX_PLAYERS)
    {
        if(IsPlayerConnected(i))
        {
            SetPlayerHealth(i, 100);
        }
    }
    return true;
}
'-'