[Ajuda] Dano Zumbie.
#1

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)