[Pedido] Som do sininho ao tomar dano
#7

public OnPlayerTakeDamage(playerid,issuerid,Float:amount, weaponid)
{
if(Lagduel[playerid] == false) return 1;
if(weaponid == 24) amount = 32;
SetPlayerScore(issuerid,GetPlayerScore(issuerid) + floatround(amount) / 10);
PlayerPlaySound(playerid,6401,0,0,0);
new Float:life;
GetPlayerHealth(playerid,life);
if((life - amount) <= 0)
{
Morto[playerid] = true;
SendDeathMessage(issuerid,playerid,weaponid);
DeadPlayer(playerid,issuerid,weaponid);
}
return 1;
}
Reply


Messages In This Thread
Som do sininho ao tomar dano - by Brenopwn - 13.11.2016, 01:11
Re: Som do sininho ao tomar dano - by CZ - 13.11.2016, 01:30
Re: Som do sininho ao tomar dano - by zSuYaNw - 13.11.2016, 01:34
Re: Som do sininho ao tomar dano - by VinnyScript - 13.11.2016, 01:37
Re: Som do sininho ao tomar dano - by Brenopwn - 13.11.2016, 01:44
Re: Som do sininho ao tomar dano - by CZ - 13.11.2016, 02:10
Re: Som do sininho ao tomar dano - by Brenopwn - 13.11.2016, 02:14
Re: Som do sininho ao tomar dano - by VinnyScript - 13.11.2016, 02:17
Respuesta: Re: Som do sininho ao tomar dano - by SammyJ - 13.11.2016, 10:18
Re: Som do sininho ao tomar dano - by Brenopwn - 13.11.2016, 14:44

Forum Jump:


Users browsing this thread: 1 Guest(s)