SA-MP Forums Archive
[Ajuda] Dano Zumbie. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Dano Zumbie. (/showthread.php?tid=414044)



Dano Zumbie. - HumildadeAgain - 07.02.2013

Bom, a mensagem nгo ta aparecendo para mim..
pawn Код:
public OnPlayerUpdate(playerid)
{
    new targetid = GetPlayerTargetPlayer(playerid);
    if(IsPlayerNPC(targetid)) {
        format(str,sizeof str,"Voce tirou life do npc, Life atual dele: %d.",NPC_LIFE[targetid]);
        MSG(playerid,-1,str);
        NPC_LIFE[targetid] -= 5;
        ApplyAnimation(targetid, "PED", "KO_shot_stom",4.0,1,0,0,1,0);
        ApplyAnimation(targetid, "PED", "KO_shot_stom",4.0,1,0,0,1,0);
        if(NPC_LIFE[targetid] <= 0) {
            SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
            MSG(playerid,-1,"[AVISO]: Vocк imobilizou um zombie!");
            RNPC_StopPlayback(targetid);
            ApplyAnimation(targetid, "WUZI", "CS_Dead_Guy", 12.0, 1, 1, 1, 1, 1);
            ApplyAnimation(targetid, "WUZI", "CS_Dead_Guy", 12.0, 1, 1, 1, 1, 1);
        }
        return false;
    }
    return 1;
}
Oq pode ser?

Grato!