їComo hago?..
#1

Tengo este FS DE Headshot, yo lo que quiero es que cuando MATEN A ALGUIEN CON HEADSHOT SE ESCUCHE UN MP3 CON EL EFECTO DE HEADSHOT (EL LINK LO TENGO YO).

OSEA QUE SE ESCUCHE TANTO COMO AL QUE MATARON Y QUE SE ESCUCHE AL QUE HIZO EL HEADSHOT.. їComo lo adapto?.

Aqui el codigo del headshot que consegui:


PHP код:
#include <a_samp>
 
/*-------------------------
HeadShot System by Peppe
The faster implementation of a headshot system in SA:MP.
This script requires the new version of SA:MP 0.3b.
 
www.pawnoitalia.forumfree.it
www.atlantisgaming.it
-------------------------*/
 
#define TIMER_INTERVAL 150
 
new
    
maxPlayers;
 
public 
OnFilterScriptInit()
{
    
maxPlayers GetMaxPlayers();
    
SetTimer("CheckHeadShot"TIMER_INTERVAL1);
    return 
1;
}
 
public 
OnPlayerDeath(playeridkilleridreason)
{
    if(
GetPVarInt(playerid"Headshotted") == 1)
    {
        
SetPVarInt(playerid"Headshotted"0);
        
GameTextForPlayer(playerid"~r~Headshotted"30003);
        
GameTextForPlayer(killerid"~r~Headshott"30003);
    }
    return 
1;
}
 
forward CheckHeadShot();
public 
CheckHeadShot()
{
    new
        
index;
    for(new 
playeridplayerid maxPlayersplayerid++)
    {
        if(
IsPlayerConnected(playerid))
        {
            
index GetPlayerAnimationIndex(playerid);
            if(
index == 1173 || index == 1175 || index == 1177 || index == 1178)
            {
                
SetPVarInt(playerid"Headshotted"1);
                
SetPlayerHealth(playerid0);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
їComo hago?.. - by ronaldfa - 18.05.2015, 19:40
Respuesta: їComo hago?.. - by iimma - 18.05.2015, 20:58
Respuesta: їComo hago?.. - by xSeveNx - 18.05.2015, 23:18
Respuesta: їComo hago?.. - by Revelation - 18.05.2015, 23:51
Re: Respuesta: їComo hago?.. - by SickAttack - 19.05.2015, 00:10

Forum Jump:


Users browsing this thread: 1 Guest(s)