Jump to content
  • 0

Question

Posted

in my headshot script:

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 27 && bodypart == 9)

    {
        if(ActivarHS == 1)
        {
            SetPlayerHealth(playerid, 0.0);
         }
    }
}
//Suerte! By Reedk | No robar creditos! |

cum se adauga

pentru mesaj ucigas =  HeadShot Done     

daca jucatorul este mort  mesaj  =   You HeadShoted

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

Salut @JoeMirana,

Nu pot sa inteleg care este problema, daca vorbesti romana, fii mai explicit.

Daca te referi sa apare un mesaj ucigasului si unul calui omorat, arata in felul urmator:

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
	if(issuerid != INVALID_PLAYER_ID && weaponid == 27 && bodypart == 9)
	{
		if(ActivarHS == 1)
		{
			SetPlayerHealth(playerid, 0.0);
			SendClientMessage(playerid, -1, "You have been headshooted!");
			SendClientMessage(issuerid, -1, "HeadShot done!");
		}
	}
}

EN: If you don't speak romanian, tell the problem in english.

Edited by shane

Daca te-am ajutat =>

spacer.png

  • 0
Posted

Schimbi functia SendClientMessage cu GameTextForPlayer.

Ex: GameTextForPlayer(playerid, "Kill", 2000, 3);

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.