26.10.2012, 11:08
i'll give you an example ONLY:
Just an example
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
switch(weaponid)
{
case 0:
{
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health-5);
}
}
}
return 1;
}