[Ajuda] Servidor - 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: [Ajuda] Servidor (
/showthread.php?tid=651148)
Servidor -
FabioGTP - 14.03.2018
Loguei em um servidor hoje, e tinha um sistema de x1 que era com colete e paraquedas disse q й ant-xiter e realmente funciona contra os trava life, queria saber o porque o paraquedas funciona contra trava life?
Re: Servidor -
PowerMwK - 14.03.2018
Uma vez que essa animaзгo sу funciona se vocк tiver um pбra-quedas, verifique se o jogador tem ID da arma 46 (pбra-quedas) se nгo, eles sгo, obviamente, hackeando.
PHP код:
foreach(Player, i) //Cycling through each player thats connected, you'll need to include the foreach include if you haven't already
{
if(GetPlayerAnimationIndex(i))//Getting the players current animation
{
new animlib[32], animname[32]; //defining our two local vars that'll handle the animation name and library
GetAnimationName(GetPlayerAnimationIndex(i), animlib, sizeof(animlib), animname, sizeof(animname));
if(!strcmp(animlib, "PARACHUTE", true) && !strcmp(animname, "FALL_SkyDive_Accel", true))
//To make it simple, we're just looking for the animation that handles falling with a parachute
{
if(GetPlayerWeapon(i) != 46) //If the player does not have the parachute as a weapon.
{
//Your kick/ban code here
}
}
By Flake.