05.07.2012, 23:37
pon este include :
https://sampforum.blast.hk/showthread.php?pid=937824#pid937824
y usa este
https://sampforum.blast.hk/showthread.php?pid=937824#pid937824
y usa este
pawn Код:
new mordido[MAX_PLAYERS]; // al Principio
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) // Al Final
{
new Float:health;
GetPlayerHealth(targetplayer, health);
SetPlayerHealth(targetplayer, health-10);
SetPlayerHealth(targetplayer, health-10);
mordido[Target] = 1;
return 1;
}
public OnPlayerDeath /// Ubicalo y Pon esto
{
if(mordido[playerid] == 1)
{
new RandomTl = random(8);
switch(RandomTl)
{
case 0: SetPlayerSkin(playerid, 162);
case 1: SetPlayerSkin(playerid, 129);
case 3: SetPlayerSkin(playerid, 130);
case 4: SetPlayerSkin(playerid, 159);
case 5: SetPlayerSkin(playerid, 197);
case 6: SetPlayerSkin(playerid, 200);
case 7: SetPlayerSkin(playerid, 196);
case 8: SetPlayerSkin(playerid, 160);
}
}
return 1;
}