[Pedido] Sistema HeadShot - 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] Sistema HeadShot (
/showthread.php?tid=385772)
Sistema HeadShot -
Vinicius_TroLL - 17.10.2012
Eai pessoal, vim pedir um sistema de headshot simples pro meu gm rpg eu quero o code pra por no gamemode eu ja tentei converter FS mais nao consegui alguem tem o code ai pra me passar ? pode ser vbem simples nao prescisa daquelas coisas de Id todou um headshot do ID...Sу o headshot mesmo...Obrigado...
Re: Sistema HeadShot -
[PSN]Andre_Simpson - 17.10.2012
Tae
PHP код:
#define TIMER_INTERVAL 150
new
maxPlayers;
// On gameModeInit //
maxPlayers = GetMaxPlayers();
SetTimer("HeadShot", TIMER_INTERVAL, 1);
return 1;
}
//OnePlayerDeath//
if(GetPVarInt(playerid, "Headshot") == 1)
{
SetPVarInt(playerid, "Headshot", 0);
GameTextForPlayer(playerid, "~r~Headshot", 3000, 3);
GameTextForPlayer(killerid, "~r~Headshot", 3000, 3);
}
return 1;
}
forward HeadShot();
public HeadShot()
{
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, "Headshot", 1);
SetPlayerHealth(playerid, 0);
}
}
}
return 1;
}
Re: Sistema HeadShot -
Q.I - 17.10.2012
Quote:
Originally Posted by [PSN]Andre_Simpson
Tae
PHP код:
#define TIMER_INTERVAL 150
new
maxPlayers;
// On gameModeInit //
maxPlayers = GetMaxPlayers();
SetTimer("HeadShot", TIMER_INTERVAL, 1);
return 1;
}
//OnePlayerDeath//
if(GetPVarInt(playerid, "Headshot") == 1)
{
SetPVarInt(playerid, "Headshot", 0);
GameTextForPlayer(playerid, "~r~Headshot", 3000, 3);
GameTextForPlayer(killerid, "~r~Headshot", 3000, 3);
}
return 1;
}
forward HeadShot();
public HeadShot()
{
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, "Headshot", 1);
SetPlayerHealth(playerid, 0);
}
}
}
return 1;
}
|
hum massa heim
voce que fez ?
Re: Sistema HeadShot -
[PSN]Andre_Simpson - 17.10.2012
Sim, Tinha aqui no pc :/
Re: Sistema HeadShot -
HDTV - 17.10.2012
carinha se ta mentindo, tenho esse sistema aki.
https://sampforum.blast.hk/showthread.php?pid=802102#pid802102
roubando crйditos й foda.
Re: Sistema HeadShot -
Vinicius_TroLL - 17.10.2012
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_INTERVAL, 1);
return 1;
}
//OnePlayerDeath//
if(GetPVarInt(playerid, "Headshot") == 1)
{
SetPVarInt(playerid, "Headshot", 0);
GameTextForPlayer(playerid, "~r~Headshot", 3000, 3);
GameTextForPlayer(killerid, "~r~Headshot", 3000, 3);
}
return 1;
}
forward HeadShot();
public HeadShot()
{
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, "Headshot", 1);
SetPlayerHealth(playerid, 0);
}
}
}
return 1;
}
|
Re: Sistema HeadShot -
HDTV - 17.10.2012
esse sistema de headshot sу funciona quando o jogador estб parado, tipo se vocк ta correndo e nego atira em vocк isto dai nгo vai funcionar.
Re: Sistema HeadShot -
[PSN]Andre_Simpson - 17.10.2012
Quote:
Originally Posted by HDTV
esse sistema de headshot sу funciona quando o jogador estб parado, tipo se vocк ta correndo e nego atira em vocк isto dai nгo vai funcionar.
|
Pois nгo .
Nгo roubei crйditos sу falei que tinha aqui pro meu PC, mas agora que vi que o codigo й quase igual , por isso me enganei malz @
Re: Sistema HeadShot - Joao Pedro - 17.10.2012
Quote:
Originally Posted by [PSN]Andre_Simpson
Pois nгo .
Nгo roubei crйditos sу falei que tinha aqui pro meu PC, mas agora que vi que o codigo й quase igual , por isso me enganei malz @
|
Acho que a histуria do primo do PC colava mais.
Re: Sistema HeadShot -
@Riichard - 17.10.2012
Sem querer entrar na confusгo.
Mas... Me diga! Em qual momento ele citou que aquele cуdigo ali foi ele quem fez?
#PenseAntesDeDizer.