23.07.2014, 20:22
Pelo que parece, й sу deletar quase tudo.
pawn Код:
public OnPlayerTakeDamage(playerid,issuerid,Float:amount,weaponid)
{
if(weaponid == 24) amount = 32;
SetPlayerScore(issuerid,GetPlayerScore(issuerid) + floatround(amount) / 10);
PlayerPlaySound(playerid,6401,0,0,0);
PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
return 1;
}
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
switch(weaponid)
{
case 24: amount = 32;
case 9: amount = 10;
case 38: amount = 0;
}
PlayerPlaySound(damagedid,6401,0,0,0);
new Float:Coleete;
PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
if(Coleete > 0)
{
if(amount > Coleete)
{
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
return 1;
}
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
}
else
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
return 1;
}