[Ajuda] Sistem de Hs Bugado
#9

Acho que esse

Code:
if(Arena[playerid] != 1)
nгo tem utilidade entгo eu tirei e fico assim:

PHP Code:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    if(
issuerid != INVALID_PLAYER_ID)
    {
        new 
string[20];
        
format(stringsizeof(string), "~s~-~r~%.0f"amount);
        
GameTextForPlayer(playeridstring10006);
        
GameTextForPlayer(issuerid string10005);
        
PlayerPlaySound(issuerid 178020.00.00.0);
        if(
issuerid != INVALID_PLAYER_ID && weaponid == 34 || weaponid == 24 || weaponid == 33 && Arena2[playerid] == && Arena[playerid] == && mortohs[playerid] == false)
        {
            if(
bodypart == BODY_PART_HEAD)
            {
                
SetPlayerHealth(playerid0.0);
                new 
wpname[50];
                
GetWeaponName(weaponid,wpname,sizeof(wpname));
                new 
strm[200], matado[MAX_PLAYER_NAME], matador[MAX_PLAYER_NAME];
                
GetPlayerName(issuerid,matador,sizeof(matador));
                
GetPlayerName(playerid,matado,sizeof(matado));
                
format(strm,sizeof(strm),"{FFFFFF}|SERVER|» {FFFF00}%s {FF0000}Levou um Headshot de {FFFF00}%s {FF0000}(%s)",matado,matador,wpname);
                
SendClientMessageToAll(-1,strm);
                
GameTextForPlayer(issuerid"~g~~n~~n~~n~~n~~n~~n~HeadShot Porra!"50006);//Nem Mexe
                
GameTextForPlayer(playerid"~r~~n~~n~~n~~n~~n~~n~HeadShot Porra!"100006);//Nem Mexe
                
mortohs[playerid] = true;
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Sistem de Hs Bugado - by Shuffle013 - 07.06.2018, 01:53
Re: Sistem de Hs Bugado - by Shuffle013 - 07.06.2018, 16:59
Re: Sistem de Hs Bugado - by AutoMatic2 - 07.06.2018, 17:51
Re: Sistem de Hs Bugado - by F1N4L - 07.06.2018, 17:52
Re: Sistem de Hs Bugado - by Shuffle013 - 07.06.2018, 23:12
Re: Sistem de Hs Bugado - by Shuffle013 - 08.06.2018, 00:20
Re: Sistem de Hs Bugado - by AutoMatic2 - 08.06.2018, 01:09
Re: Sistem de Hs Bugado - by Shuffle013 - 08.06.2018, 01:12
Re: Sistem de Hs Bugado - by AutoMatic2 - 08.06.2018, 01:14

Forum Jump:


Users browsing this thread: 1 Guest(s)