Posts: 160
Threads: 40
Joined: Jul 2015
M's Headshot System
Features
Added with all weapons
Hit sound on head shot
Headshot messages
Download
Solidfiles
Dont Like With All Weapons?
This one have headshot with Sniper,country rifle,shotgun,deagle
Download
Solidfiles
Posts: 113
Threads: 3
Joined: Jul 2015
Reputation:
0
Pastebin Please. and Great job man.
Posts: 1,648
Threads: 482
Joined: Jun 2010
Little bit strange that it's in an .exe format..
Posts: 1,045
Threads: 150
Joined: Oct 2013
Reputation:
0
No reason to release such a "system" if it doesn't have any features except a gametext and a sound.
Posts: 160
Threads: 40
Joined: Jul 2015
Quote:
Originally Posted by 1Deagle1
You must do it like that.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
{
SetPlayerHealth(playerid, 0);
GameTextForPlayer(issuerid,"~r~Headshot",2000,3) && GameTextForPlayer(playerid,"~r~Headshot",2000,3);
PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0) && PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0);
SetPlayerHealth(playerid, 0.0);
}
return 1;
}
So when you headshoot someone with sniper he dies.
|
So tell me why i added
Код:
SetPlayerHealth(playerid, 0);
Dont be a noob -_-