Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.
/ antilag-inc Public archive

This library allows you to create zones where players can be shot directly at their skin

License

Notifications You must be signed in to change notification settings

DevD4v3/antilag-inc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AntiLag-Inc

This library allows you to create zones where players can be shot directly at their skin.

Installation

Place the antilag.inc file in your /pawno/include/ directory:

#include <a_samp>
#include <antilag>

Macros

  • SetPlayerAntiLag – Enable or disable the skinshoot feature for a specific player.

    Example 1 (Enable skinshoot):

    SetPlayerAntiLag(playerid, true);

    Example 2 (Disable skinshoot):

    SetPlayerAntiLag(playerid, false);
  • IsPlayerAntiLag – Check if a player is currently in a skinshoot zone.

    Example 1 (Player is in a skinshoot zone):

    if(IsPlayerAntiLag(playerid))
    {
        print("The player is in a skinshoot zone");
    }

    Example 2 (Player is not in a skinshoot zone):

    if(!IsPlayerAntiLag(playerid))
    {
        print("The player is not in a skinshoot zone");
    }

Usage

Here’s a complete example using the Pawn.CMD command processor:

#include <a_samp>
#include <antilag>
#include <Pawn.CMD>

public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
{
    if(IsPlayerAntiLag(playerid) && strcmp(cmd, "exitzone", true) != 0)
    {
        SendClientMessage(playerid, -1, "ERROR: You must use /exitzone to leave the skinshoot area.");
        return 0;
    }
    return 1;
}

cmd:antilag(playerid)
{
    if(IsPlayerAntiLag(playerid))
        return SendClientMessage(playerid, -1, "ERROR: You are already in a skinshoot zone.");
    
    SetPlayerAntiLag(playerid, true);
    SendClientMessage(playerid, -1, "You have entered a skinshoot area.");
    GivePlayerWeapon(playerid, 24, 500);
    return 1;
}

cmd:exitzone(playerid)
{
    if(!IsPlayerAntiLag(playerid))
        return SendClientMessage(playerid, -1, "ERROR: You are not in a skinshoot zone.");
    
    SetPlayerAntiLag(playerid, false);
    SpawnPlayer(playerid);
    return 1;
}

Credits

  • DevD4v3 – Main developer
  • SA-MP Team

About

This library allows you to create zones where players can be shot directly at their skin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published