[Tutorial] Anti-Weapon hack
#1

Bom gente,meu 1є tutorial vamos lб

Esse tutorial de hoje irei ensinar a como colocar em seu servidor um anti-xiter de armas

1є Vamos criar uma Forward Chamada AntiHack

PHP код:
forward AntiHack(playerid); 
2є Criaremos um SetTimer no OnGameModeInit.
PHP код:
SetTimer("AntiHack"20001);// Obs: Esse SetTimer Server para verificar se o player puxo alguma arma ilegal 
3є Criaremos a Public onde terб o id das armas proibidas !

PHP код:
public AntiHack(playerid)
{
   new 
string[128];
   new 
giveplayer[MAX_PLAYER_NAME];
   if(
IsPlayerInRangeOfPoint(playerid10.0FogoX[1],FogoY[1],FogoZ[1]))
       {
     for(new 
0MAX_PLAYERSi++)
     {
         if(
IsPlayerConnected(i) && gPlayerLogged[i] == && !IsPlayerNPC(i) && spawnado[i] > 0)
         {
                        if(
GetPlayerWeapon(i) == 35)// Aqui Serб o ID Da Arma
             
{
            
GetPlayerName(igiveplayersizeof(giveplayer));
            
format(stringsizeof(string), "ANTIXITER: %s[%d] pegou alguma arma pelo ****** e foi banido automaticamente!"giveplayer,i);// Aqui a msg q serб exibida
            
SendClientMessageToAll(COLOR_LIGHTREDstring);
            
SBan(i"Puxando Armas Pelo ******""Automбtico");// Aqui e a parte do ban ai vocк mim pergunta porque vocк nгo usa Ban(i);? a Resposta й porque usando Ban(i); o Player Serб banido e colocado numa pasta chamada samp.ban na host ou seja se for desbanir o player terб q ir na host e usando o Sban Nгo.
            
}
          }
   }
   return 
1
By:ScriptG
Reply


Messages In This Thread
Anti-Weapon hack - by ScriptGameS - 03.12.2013, 02:08
Re: Anti-Weapon hack - by Juniiro3 - 03.12.2013, 02:11
Re: Anti-Weapon hack - by ScriptGameS - 03.12.2013, 02:17
Re: Anti-Weapon hack - by mau.tito - 03.12.2013, 07:51
Re: Anti-Weapon hack - by Don_Speed - 03.12.2013, 08:14
Respuesta: Anti-Weapon hack - by DanDRT - 03.12.2013, 08:44
Re: Anti-Weapon hack - by WLSF - 03.12.2013, 12:10
Re: Anti-Weapon hack - by Samuel300 - 03.12.2013, 16:45
Re: Anti-Weapon hack - by DouglasRodrigues - 03.12.2013, 18:23
Re: Anti-Weapon hack - by ScriptGameS - 03.12.2013, 18:26

Forum Jump:


Users browsing this thread: 2 Guest(s)