making a revive cmd
#5

Very easy to do that you just need to use SetPlayerHealth
Btw , here is the codes

Strcmp
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/heal", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid, 100.0);
        return 1;
    }
    return 0;
}
dcmd
pawn Код:
dcmd_heal(playerid, params[])
{
    SetPlayerHealth(playerid,100);
    return 1;
}
PS: sorry i didn't got you , when the player die he will automatically respawned , so could you explain please what are you trying to do ?
Reply


Messages In This Thread
making a revive cmd - by Jes - 12.12.2013, 17:52
Re: making a revive cmd - by dannyk0ed - 12.12.2013, 17:54
Re: making a revive cmd - by doreto - 12.12.2013, 17:56
Re: making a revive cmd - by Jes - 12.12.2013, 17:56
Re: making a revive cmd - by SilentSoul - 12.12.2013, 17:57
Re: making a revive cmd - by Jes - 12.12.2013, 18:05
Re: making a revive cmd - by SilentSoul - 12.12.2013, 18:07
Re: making a revive cmd - by Ada32 - 12.12.2013, 18:08
Re: making a revive cmd - by Jes - 12.12.2013, 18:09
Re: making a revive cmd - by Kells - 12.12.2013, 18:12
Re: making a revive cmd - by SilentSoul - 12.12.2013, 18:12
Re: making a revive cmd - by Jes - 13.12.2013, 10:47
Re: making a revive cmd - by Jes - 13.12.2013, 10:57
Re: making a revive cmd - by SilentSoul - 13.12.2013, 11:07

Forum Jump:


Users browsing this thread: 1 Guest(s)