[Pedido] Sistema HeadShot
#6

Deu certo, brigadгo


Quote:
Originally Posted by [PSN]Andre_Simpson
Посмотреть сообщение
Tae

PHP код:
#define TIMER_INTERVAL 150
 
new
    
maxPlayers;
 
// On gameModeInit //
    
maxPlayers GetMaxPlayers();
    
SetTimer("HeadShot"TIMER_INTERVAL1);
    return 
1;
}
 
//OnePlayerDeath//
    
if(GetPVarInt(playerid"Headshot") == 1)
    {
        
SetPVarInt(playerid"Headshot"0);
        
GameTextForPlayer(playerid"~r~Headshot"30003);
        
GameTextForPlayer(killerid"~r~Headshot"30003);
    }
    return 
1;
}
 
forward HeadShot();
public 
HeadShot()
{
    new
        
index;
    for(new 
playeridplayerid maxPlayersplayerid++)
    {
        if(
IsPlayerConnected(playerid))
        {
            
index GetPlayerAnimationIndex(playerid);
            if(
index == 1173 || index == 1175 || index == 1177 || index == 1178)
            {
                
SetPVarInt(playerid"Headshot"1);
                
SetPlayerHealth(playerid0);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Sistema HeadShot - by Vinicius_TroLL - 17.10.2012, 17:22
Re: Sistema HeadShot - by [PSN]Andre_Simpson - 17.10.2012, 17:26
Re: Sistema HeadShot - by Q.I - 17.10.2012, 17:40
Re: Sistema HeadShot - by [PSN]Andre_Simpson - 17.10.2012, 17:54
Re: Sistema HeadShot - by HDTV - 17.10.2012, 17:59
Re: Sistema HeadShot - by Vinicius_TroLL - 17.10.2012, 18:01
Re: Sistema HeadShot - by HDTV - 17.10.2012, 18:03
Re: Sistema HeadShot - by [PSN]Andre_Simpson - 17.10.2012, 18:30
Re: Sistema HeadShot - by Joao Pedro - 17.10.2012, 20:10
Re: Sistema HeadShot - by @Riichard - 17.10.2012, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)