11.07.2014, 03:21
(
Последний раз редактировалось lucotaku1; 12.07.2014 в 22:39.
)
I was bored, I made a simple eh headshot system.
WEAPONS:
Sniper Rifle
Rifle
CODE
IMAGES
I have no pictures because I could not test it with anyone. Later add images.
It tests if anyone who uploads a picture please.
Excuse my bad English
bye and have a good day
EDIT:bug fixed
WEAPONS:
Sniper Rifle
Rifle
CODE
pawn Код:
#include <a_samp>
new name[MAX_PLAYERS];
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33) && bodypart == 9)
{
SetPlayerHealth(playerid, 0.0);
new stringa[80];
GetPlayerName(playerid, name, sizeof(name));
format(stringa, sizeof(stringa), "[ ! ]:[%s] He was killed by a shot to the head", name);
SendClientMessageToAll(0xFFFF00FF,stringa);
}
return 1;
}
IMAGES
I have no pictures because I could not test it with anyone. Later add images.
It tests if anyone who uploads a picture please.
Excuse my bad English
bye and have a good day

EDIT:bug fixed