19.04.2014, 22:18
Quote:
pawn Код:
|
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
{
new Float px, py, pz; GetPlayerPos(playerid, px, py, pz);
CreateExplosion(px, py, pz, 12, 10.0);
SetPlayerHealth(playerid, 0.0);
}
return 1;
}