DevD4v3/antilag-inc
This library allows you to create zones where players can be shot directly at their skin
Der Autor hat dieses Repository archiviert, es wird also nicht mehr gepflegt.
Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.
README.md
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
grandgrand-theft-autogtaincludepawnsa-mpsa-mp-developmentsan-andreas-multiplayer
Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden