03.09.2012, 16:16
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.
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;
}