Jump to content
  • 0

[Intrebare] Kill One Shot (Sniper)


LorDSG

Question

Am tot cautat pe forum,dar nu am gasit nimic care sa explice cum pot seta ca atunci cand trag cu Sniper-ul in cineva sa-l omor dintr-un singur glont (ajuta foarte mult la Hitman).

Daca este asa ceva pe forum va rog sa ma iertati,poate nu am citit cu atentie si daca este lasati-mi va rog link.

Off: O seara buna.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Iti spun eu ca nu ai cautat puteai cauta realistic weapon damage ..

Da uite codu facut de mine .

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
        if(issuerid != INVALID_PLAYER_ID)
        {
                if( weaponid == 34 )
                {
                      SetPlayerHealth( playerid , -100 );
                }
        }
        return 1;
}

I'm back bitches.

Link to comment
Share on other sites

Fi atent fa asa ( dar  nu scrie codul tau lasi asa la OnPlayerSpawn ).

Sub OnPlayerSpawn pui OnPlayerTakeDamage.

Daca nici asa nu ai inteles nu am ce iti face ...

public OnPlayerSpawn( playerid )
{
    //codul tau in continuare
    return ( 1 );
}

public OnPlayerTakeDamage( playerid , issuerid , Float: amount , weaponid )
{
        if( issuerid != INVALID_PLAYER_ID )
        {
                if( weaponid == 34 )
                     return SetPlayerHealth( playerid , -100 );
        }
        return 1;
}

I'm back bitches.

Link to comment
Share on other sites

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.