SA-MP Forums Archive
[Pedido] FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) (/showthread.php?tid=392257)



FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) - TheuziiN_ - 13.11.2012

... Porfavor.. Nгo acho nenhum sem bug ou erro


Re: FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) - duuuwh - 13.11.2012

https://sampforum.blast.hk/showthread.php?tid=138623


Re: FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) - Joao Pedro - 13.11.2012

Quote:
Originally Posted by duuuwh
Посмотреть сообщение
Download notfound, little guy.


Re: FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) - duuuwh - 13.11.2012

Tenta este, peguei em um tуpico aн, e funcionou com eles..

PHP код:
#include <a_samp>

#define SERVER_MAX_PLAYERS 100
//#define SHOWPATH

new RecentlyShot[SERVER_MAX_PLAYERS];

public 
OnFilterScriptInit()
{
    print(
"\n\n__________________________________________________________________");
    print(
" Copyright @sa-mp");
    print(
" ---------------------------");
    
LoadModules(0,1);
    print(
"__________________________________________________________________\n\n");
    return 
1;
}

public 
OnFilterScriptExit()
{
    print(
"\n\n__________________________________________________________________");
    print(
" Copyright @sa-mp");
    print(
" ---------------------------");
    
LoadModules(0,1);
    print(
"__________________________________________________________________\n\n");
    return 
1;
}

public 
OnPlayerConnect(playerid) {
    
LoadModules(playerid,2);
    return 
1;
}

public 
OnPlayerSpawn(playerid)
{
    
RecentlyShot[playerid] = 0;
    return 
1;
}

public 
OnPlayerUpdate(playerid)
{

    return 
1;
}

public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
newkeys KEY_FIRE && newkeys KEY_HANDBRAKE) {
        if(
RecentlyShot[playerid] == 0) {
            
RecentlyShot[playerid] = 1;
            
SetTimerEx("AntiSpam"1000false"d"playerid);
            if(
GetPlayerWeapon(playerid) == 34) {
                new 
Float:blahxFloat:blahyFloat:blahz;
                
HeadshotCheck(playeridblahxblahyblahz);
                return 
1;
            }
            return 
1;
        }
        return 
1;
    }
    return 
1;
}

forward AntiSpam(playerid);
public 
AntiSpam(playerid) {
    
RecentlyShot[playerid] = 0;
    return 
1;
}

stock PlayerName(playerid) {
    new 
name[24];
    
GetPlayerName(playeridnamesizeof(name));
    return 
name;
}

stock HeadshotCheck(playerid, &Float:x, &Float:y, &Float:z)
{
    new 
Float:fx,Float:fy,Float:fz;
    
GetPlayerCameraFrontVector(playeridfxfyfz);

    new 
Float:cx,Float:cy,Float:cz;
    
GetPlayerCameraPos(playeridcxcycz);

    for(new 
Float:0.0500.5)
    {
        
fx cx;
        
fy cy;
        
fz cz;

        
#if defined SHOWPATH
        
CreatePickup(12394xyz, -1);
        
#endif

        
for(new player 0player SERVER_MAX_PLAYERSplayer ++)
        {
            if(
IsPlayerConnected(playerid))
            {
                if(
player != playerid)
                {
                    if(
GetPlayerSpecialAction(player) == SPECIAL_ACTION_DUCK//CROUCHING
                    
{
                        if(
IsPlayerInRangeOfPoint(player0.3xyz))
                        {
                            new 
string[128];
                            
format(stringsizeof(string), "[NEWS]: %s levou um Headshot do %s"PlayerName(player), PlayerName(playerid));
                            
SendClientMessageToAll(0xFF9900AAstring);

                            
GameTextForPlayer(playerid"~r~HEADSHOT!"20006);
                            
GameTextForPlayer(player"~r~HEADSHOT!"20006);

                            
SetPlayerHealth(player0.0);
                            
CallRemoteFunction("OnPlayerDeath""ddd"playerplayerid34);
                        }
                    }
                    else 
//NOT CROUCHING
                    
{
                        if(
IsPlayerInRangeOfPoint(player0.3xy0.7))
                        {
                            new 
string[128];
                            
format(stringsizeof(string), "[NEWS]: %s levou um Headshot do %s"PlayerName(player), PlayerName(playerid));
                            
SendClientMessageToAll(0xFF9900AAstring);

                            
GameTextForPlayer(playerid"~r~HEADSHOT!"20006);
                            
GameTextForPlayer(player"~r~HEADSHOT!"20006);

                            
SetPlayerHealth(player0.0);
                            
CallRemoteFunction("OnPlayerDeath""ddd"playerplayerid34);
                        }
                    }
                }
            }
        }
    }
    return 
1;
}

stock LoadModules(playerid,funcao)
{
    if(
funcao==1) print(" Copyright LegendsHost");
    if(
funcao==2)
    {
        
SendClientMessage(playerid0xFFFFFFFF">Promoзхes: www.legendshost.com.br<");
    }





Re: FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) - TheuziiN_ - 13.11.2012

Nгo queria sу na cabeзa. e sim em todo corpo


Re: FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) - Zona_Sky - 13.11.2012

duuwh esse e de que? um tiro na cabeзa de sniper mata?


Re: FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) - duuuwh - 13.11.2012

Quote:
Originally Posted by Zona_Sky
Посмотреть сообщение
duuwh esse e de que? um tiro na cabeзa de sniper mata?
Sim head-shot.


Re: FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) - Zona_Sky - 13.11.2012

mais so funfa com a sniper ou outras tbm?


Re: FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) - TheuziiN_ - 13.11.2012

Alguem tem De sniper que tira 100 de dano em qualquer lugar do corpo e Anti-LAG? (( se atirar na skin perde hp..))


Re: FS Sniper 1 tiro mata --- FS de Anti-LAG (( nгo presisa atirar no lag )) - duuuwh - 13.11.2012

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(weaponid == 34)
    {
        SetPlayerHealth(issuerid, 0);
    }
    return 0;
}