[Ajuda] ajuda
#1

PHP код:
 public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart//erro function heading differs from prototype
{
    new 
animlib[32], animname[32];
    
GetAnimationName(GetPlayerAnimationIndex(playerid), animlib32animname32);
    if(
pInfo[playerid][pQuebrado] == 0// Checa se o jogador nao estiver com a perna quebrada
    
{
        if(
amount 15 && strcmp("FALL_FALL"animnametrue) == 0// Quando cai de uma certa altura
        
{
            if(
pInfo[playerid][pQuebrado] == 0)
            {
                
pInfo[playerid][pQuebrado] = 1;
                
GameTextForPlayer(playerid"~w~Broken Leg!"15003);
                
PlayerTextDrawShow(playeridBrokenL[playerid]);
            }
        }
        if(
issuerid != INVALID_PLAYER_ID && weaponid != 0// Quando leva tiro na perna
        
{
            
            if(
amount 20)
            {
                if(
pInfo[playerid][pSangrando] == 0)
                {
                    
pInfo[playerid][pSangrando] = 1;
                    
SangueTimer[playerid] = SetTimerEx("Sangrar"10000true"d"playerid);
                    
PlayerTextDrawShow(playeridBleed[playerid]);
                }
            }
            if(
weaponid == 34 && bodypart == 9)
            {
                if(
pInfo[playerid][pTemCapacete] == 1)
                {
                    
GameTextForPlayer(issuerid"~y~Player Using Helmet!"20003);
                    
GameTextForPlayer(playerid"~g~Helmet Protected You!"20003);
                }
                else
                {
                    
SetPlayerHealth(playerid0);
                    
GameTextForPlayer(issuerid"~r~Headshot!"20003);
                }
            }
            if(
bodypart == || bodypart == 8)
            {
                if(
pInfo[playerid][pQuebrado] == 0// Checa se o jogador n ta com a perna quebrada
                
{
                    
pInfo[playerid][pQuebrado] = 1;
                    
GameTextForPlayer(playerid"~w~Broken Leg!"15003);
                    
PlayerTextDrawShow(playeridBrokenL[playerid]);
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
ajuda - by didimk157 - 30.12.2016, 12:15
Re: ajuda - by iLordGG - 30.12.2016, 12:36
Re: ajuda - by didimk157 - 30.12.2016, 12:38
Re: ajuda - by didimk157 - 30.12.2016, 17:25
Re: ajuda - by JhefTFJ - 30.12.2016, 17:35
Re: ajuda - by HeisenGiromB - 30.12.2016, 17:36
Re: ajuda - by didimk157 - 30.12.2016, 19:16

Forum Jump:


Users browsing this thread: 3 Guest(s)