OnPlayerTakeDamage?
#10

the code i've made is based at what he said... he says that wanted to do one thing and posted a piece of code that wasn't working "properly", most probably he already his own stuff. Then i supposed his code won't work as he wanted.

i don't sleep for over 2 days, Anyways, i thought in a short version and better.

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new Float:HP;
    GetPlayerHealth(playerid, HP);
    if(GetPlayerWeapon(issuerid) == 24) SetPlayerHealth(playerid, HP-50);
    return 1;
}
Reply


Messages In This Thread
OnPlayerTakeDamage? - by N0FeaR - 03.09.2012, 13:37
Re: OnPlayerTakeDamage? - by Cjgogo - 03.09.2012, 13:40
Re: OnPlayerTakeDamage? - by Psymetrix - 03.09.2012, 13:44
Re: OnPlayerTakeDamage? - by Cjgogo - 03.09.2012, 13:50
Re : OnPlayerTakeDamage? - by ricardo178 - 03.09.2012, 13:57
Re: OnPlayerTakeDamage? - by N0FeaR - 03.09.2012, 14:00
Re: OnPlayerTakeDamage? - by Psymetrix - 03.09.2012, 14:08
Re: OnPlayerTakeDamage? - by leonardo1434 - 03.09.2012, 14:35
Re: OnPlayerTakeDamage? - by Psymetrix - 03.09.2012, 15:37
Re: OnPlayerTakeDamage? - by leonardo1434 - 03.09.2012, 16:16

Forum Jump:


Users browsing this thread: 1 Guest(s)