26.07.2013, 09:23
Oops, not sure where I got 'Vehicle Health' from...
You cannot exactly alter an explosion from a weapon, but this is something that should help...
This will work depending on the lagg between the server and the client. Hopefully many people won't die from excess explosions. I'm pretty sure this would work, I haven't exactly experimented with it.
You cannot exactly alter an explosion from a weapon, but this is something that should help...
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
switch(weaponid)
{
case 16, 35, 36, 39, 40, 51:
{
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, (health + amount));
}
}
return 1;
}