[Pedido] Sistema De Head Shot!!! Ja Procurei Mais Nao Acho!!!os que eu acho so funfa na sniper pq?
#1

aaaaaaaaa
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=182250
https://sampforum.blast.hk/showthread.php?tid=392257
https://sampforum.blast.hk/showthread.php?tid=284347
https://sampforum.blast.hk/showthread.php?tid=138791
Reply
#3

aff niguem '-'
Reply
#4

pawn Код:
#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.

http://www.pawnoitalia.forumfree.it
http://www.atlantisgaming.it
-------------------------*/


#define TIMER_INTERVAL 150

new
    maxPlayers;

public OnFilterScriptInit()
{
    maxPlayers = GetMaxPlayers();
    SetTimer("CheckHeadShot", TIMER_INTERVAL, 1);
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(GetPVarInt(playerid, "Headshotted") == 1)
    {
        SetPVarInt(playerid, "Headshotted", 0);
        GameTextForPlayer(playerid, "~r~Headshotted", 3000, 3);
        GameTextForPlayer(killerid, "~r~Headshott", 3000, 3);
    }
    return 1;
}

forward CheckHeadShot();
public CheckHeadShot()
{
    new
        index;
    for(new playerid; playerid < maxPlayers; playerid++)
    {
        if(IsPlayerConnected(playerid))
        {
        index = GetPlayerAnimationIndex(playerid);
        if(index == 1173 || index == 1175 || index == 1177 || index == 1178)
        {
                SetPVarInt(playerid, "Headshotted", 1);
                SetPlayerHealth(playerid, 0);
            }
        }
    }
    return 1;
}
Usei o ****** achei rapidin
Reply
#5

nao funfou
Reply
#6

Escrevi este hб algum tempo :


https://sampforum.blast.hk/showthread.php?pid=1819136#pid1819136



Espero ter ajudado .
Reply
#7

se funcionar te do rep obrigado amgo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)