how to make a kill
#5

Quote:
Originally Posted by 'Pawno.
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext, "/kill", true) == 0)
{
    new Float:health;
    GetPlayerHealth(playerid, health);
    if(health > 0.0)
        SetPlayerHealth(playerid);
    else
        return SendClientMessage(playerid, 0xFFFFFFFF, "** You can't do that because you already type that in!");
    return 1;
}
You shud use Playerstates..PLAYER_STATE_WASTED to accurately check if hes dead or not
Reply


Messages In This Thread
how to make a kill - by DerickClark - 31.10.2012, 11:30
Re: how to make a kill - by [HK]Ryder[AN] - 31.10.2012, 11:36
Re: how to make a kill - by 'Pawno. - 31.10.2012, 11:37
Re: how to make a kill - by Mustafa6155 - 31.10.2012, 11:39
Re: how to make a kill - by [HK]Ryder[AN] - 31.10.2012, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)