#include <a_samp>
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Anti Cheat by GangSteR] \");
print(\"--------------------------------------\\n\");
return 1;
}
public OnPlayerConnect(playerid)
{
SetTimerEx(\"OnPlayerBadWeapons\", 10, true, \"i\", playerid);
SetTimerEx(\"OnPlayerBadHealth\", 10, true, \"i\", playerid);
return 1;
}
forward OnPlayerBadWeapons(playerid);
public OnPlayerBadWeapons(playerid)
{
new weapons = GetPlayerWeapon(playerid);
if(weapons == 35 || weapons == 36 || weapons == 37 || weapons == 38)
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof string, \"%s kilett rúgva a szerverrõl Cheat miatt!(Tiltott fegyver)\", name);
SendClientMessageToAll(0xFF0000AA,string);
Kick(playerid);
}
return 1;
}
#pragma tabsize 0
forward OnPlayerBadHealth(playerid);
public OnPlayerBadHealth(playerid)
{
new Float:health;
if (IsPlayerAdmin(playerid))
{
if(GetPlayerHealth(playerid, health))
{
if(health > 100.1)
{
SendClientMessage(playerid, szin, \"Admin vagy ezért nem kickel a rendszer!\");
}
else
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof string, \"%s kilett rúgva a szerverrõl Cheat miatt!(Halhatatlanság)\", name);
SendClientMessageToAll(0xFF0000AA,string);
Kick(playerid);
}
}
}
return 1;
}
Itt RCON adminnal csináltam meg! Tesztelni nem teszteltem bocsi ha rossz