[Ajuda] head shot
#1

Opa ai galera blz? to com um problema aqui alguem pode ajuda?

to com esse FS de HS

https://sampforum.blast.hk/showthread.php?pid=802102#pid802102

mais quero saber como faz pra pessoas do mesmo time nгo tomar HS, alguem pode me ajuda?

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
head shot - by Souz4. - 22.09.2013, 20:36
Re: head shot - by Neutron97 - 22.09.2013, 20:52
Re: head shot - by Souz4. - 22.09.2013, 20:56
Re: head shot - by Neutron97 - 22.09.2013, 21:03
Re: head shot - by Souz4. - 22.09.2013, 21:08
Respuesta: head shot - by SeV_ - 22.09.2013, 21:31
Re: head shot - by Souz4. - 23.09.2013, 00:15

Forum Jump:


Users browsing this thread: 1 Guest(s)