[Ajuda] Ajuda life
#3

tipo isso, basta adaptar:
pawn Код:
new bool:playerCongelado[MAX_PLAYERS];

if(!strcmp(cmdtext, "/mecongelar", true))
{
    playerCongelado[playerid] = true;
    TogglePlayerControllable(playerid, false);
    return 0x01;
}

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(amount >= 5.0 && playerCongelado[playerid])
        TogglePlayerControllable(playerid, true), playerCongelado[playerid] = false;
    return 1;
}
Reply


Messages In This Thread
Ajuda life - by LeandroSantos - 27.11.2014, 13:43
Re: Ajuda life - by MultiKill - 27.11.2014, 13:49
Re: Ajuda life - by Falcon. - 27.11.2014, 13:51
Re: Ajuda life - by LeandroSantos - 27.11.2014, 14:24
Re: Ajuda life - by n0minal - 27.11.2014, 14:27
Re: Ajuda life - by PT - 27.11.2014, 14:27
Re: Ajuda life - by LeandroSantos - 27.11.2014, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)