[AJUDA] Comando /salvar
#2

Tente isso.
Apenas irб setar vida para o jogador.

pawn Код:
if(strcmp(cmd, "/salvar", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
        return SendClientMessage(playerid, COLOR_GRAD2, "USE: /salvar [Id/Playername]");

    new Vstring[40];
    new target = ReturnUser(tmp);
    if(IsPlayerConnected(target))
        if(target != INVALID_PLAYER_ID)
        {
            new Ferido[MAX_PLAYER_NAME];
            GetPlayerName(target, Ferido, MAX_PLAYER_NAME);
            SetPlayerHealth(target,50);
            format(Vstring,64,"Vocк salvou %s.",Ferido);
            SendClientMessage(playerid,-1,Vstring);
        }

    return 1;
}
Reply


Messages In This Thread
[AJUDA] Comando /salvar - by felipe360 - 29.10.2011, 03:40
Re: [AJUDA] Comando /salvar - by ViniBorn - 29.10.2011, 05:38
Re: [AJUDA] Comando /salvar - by felipe360 - 29.10.2011, 17:28

Forum Jump:


Users browsing this thread: 1 Guest(s)