[Ajuda] Como tirar skinshot no pawn
#3

esta aqui
Quote:

public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
if(Aj[playerid] == false && GetPlayerSpecialAction(playerid) == 2) return SetPlayerHealth(playerid,0);
switch(weaponid)
{
case 24: amount = 32;
case 9: amount = 10;
case 38: amount = 0;
}
if(Morto[damagedid] == true) return 1;
if(Lagduel[damagedid] == true) return 1;
PlayerPlaySound(damagedid,6401,0,0,0);
new Float:Life, Float:Coleete, Floatano;
GetPlayerArmour(damagedid,Coleete);
GetPlayerHealth(damagedid,Life);
if(Coleete > 0)
{
if(amount > Coleete)
{
Dano = amount - Coleete;
Life = Life - Dano;
SetPlayerArmour(damagedid, 0.0);
SetPlayerHealth(damagedid, Life);
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
return 1;
}
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
Coleete = Coleete - amount;
SetPlayerArmour(damagedid, Coleete);
}
if(Coleete < 1)
{
Life = Life - amount;
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
SetPlayerHealth(damagedid, Life);
if(Life <= 0)
{
Morto[damagedid] = true;
SendDeathMessage(playerid,damagedid,weaponid);
DeadPlayer(damagedid,playerid,weaponid);
}
}
return 1;
}

Reply


Messages In This Thread
Como tirar skinshot no pawn - by LKING - 18.07.2014, 20:52
Re: Como tirar skinshot no pawn - by Gabriel10101 - 18.07.2014, 21:08
Re: Como tirar skinshot no pawn - by LKING - 18.07.2014, 21:13
Re: Como tirar skinshot no pawn - by LKING - 18.07.2014, 21:46
Re: Como tirar skinshot no pawn - by ViniBorn - 19.07.2014, 03:54
Re: Como tirar skinshot no pawn - by LKING - 19.07.2014, 19:41
Re: Como tirar skinshot no pawn - by ViniBorn - 19.07.2014, 19:46
Re: Como tirar skinshot no pawn - by LKING - 19.07.2014, 19:48
Re: Como tirar skinshot no pawn - by Jardell - 20.07.2014, 03:28

Forum Jump:


Users browsing this thread: 1 Guest(s)