Jump to content

Question

Posted

Salut as dori sa stiu cum se poate face chestia asta:

-Cand un player este AFK(away from keyboard) sa poata il omora cineva...

-Are vreo treaba cu OnPlayerGiveDamage ?

-Multumesc pentru atentie.

2 answers to this question

Recommended Posts

Posted

NexT." post="136567" timestamp="1364126945"]

Nu ai sanse sa il omori daca sta afk...

Da da se poate si da are legatura cu onplayergivedamage.

[pawn]public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)

{

    new Float:Viata, Float:Armura;

    GetPlayerArmour(damagedid, Armura);

    GetPlayerHealth(damagedid,Viata);

    if(Armura > 10)

    {

        SetPlayerArmour(damagedid Armura-amount)

    }

    else

    {

        SetPlayerHealth(damagedid, Viata-amount)

    }

    return 1;

}[/pawn]

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.