HEADSHOT DISTANCE HELP
#6

Nice work copying xd from my release that got removed xd

anyways, heres my code.
PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart

// Headshot System 
            
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9
            { 
            
SetPlayerHealth(playerid0.0); 
            
GameTextForPlayer(playerid"~r~HEADSHOT"30003); 
            
GameTextForPlayer(issuerid"~g~HEADSHOT"30003); 
            new 
Float:xFloat:yFloat:zFloat:fDistancehsMessage[90], KName[MAX_PLAYER_NAME], PName[MAX_PLAYER_NAME]; 
        
GetPlayerPos(playeridxyz); 
        
fDistance GetPlayerDistanceFromPoint(issueridxyz); 
        
GetPlayerName(issueridKNameMAX_PLAYER_NAME); 
        
GetPlayerName(playeridPNameMAX_PLAYER_NAME); 
            
format(hsMessagesizeof(hsMessage), "%s has Headshotted %s from the distance of %0.2f"KNamePNamefDistance); 
            
SendClientMessageToAll(0xFCFC18AAhsMessage); 
EDIT: This is a out-dated version, I have optimized my script very much.
Reply


Messages In This Thread
HEADSHOT DISTANCE HELP - by Hunud - 25.07.2016, 15:15
Re: HEADSHOT DISTANCE HELP - by Deadpoop - 25.07.2016, 15:26
Re: HEADSHOT DISTANCE HELP - by Hunud - 25.07.2016, 17:57
Re: HEADSHOT DISTANCE HELP - by DRIFT_HUNTER - 25.07.2016, 18:09
Re: HEADSHOT DISTANCE HELP - by PrO.GameR - 25.07.2016, 23:07
Re: HEADSHOT DISTANCE HELP - by Logic_ - 26.07.2016, 11:19
Re: HEADSHOT DISTANCE HELP - by Bolex_ - 26.07.2016, 11:22
Re: HEADSHOT DISTANCE HELP - by GhostHacker - 26.07.2016, 12:46

Forum Jump:


Users browsing this thread: 1 Guest(s)