Need to know something
#1

How to detect weapon hacks?

my server have deagle gun and it is unlimited [ like a roleplay ]
but to get gun need to do something special like mats collection

if a player do weapon hack how i can detect it?

please show it with an example

Thanks.
Reply
#2

Код:
forward Weapons(playerid); public Weapons(playerid) {
    GetPlayerWeaponData(playerid, c, weaponid, ammo);
    if (weaponid != 24 ) return BanEx(playerid, "WeaponHack"); }

public OnPlayerConnect(playerid) {
    SetTimer("Weapons", 10000, 1); }

public OnPlayerDisconnect(playerid) {
    KillTimer(Weapons(playerid)); }
I think this could help, it will detect, if you have something else than Deagle.
Sorry for some mistakes, I wrote it quickly
Reply
#3

Quote:
Originally Posted by Gameluner
Посмотреть сообщение
Код:
forward Weapons(playerid); public Weapons(playerid) {
    GetPlayerWeaponData(playerid, c, weaponid, ammo);
    if (weaponid != 24 ) return BanEx(playerid, "WeaponHack"); }

public OnPlayerConnect(playerid) {
    SetTimer("Weapons", 10000, 1); }

public OnPlayerDisconnect(playerid) {
    KillTimer(Weapons(playerid)); }
I think this could help
Please avoid writing code like this, no offense, but this is so bad it's cancerous.
Reply
#4

I like it, sorry
Код:
forward Weapons(playerid); public Weapons(playerid) 
{
    GetPlayerWeaponData(playerid, c, weaponid, ammo);
    if (weaponid != 24 ) return BanEx(playerid, "WeaponHack"); 
}

public OnPlayerConnect(playerid) 
{
    SetTimer("Weapons", 10000, 1); 
}

public OnPlayerDisconnect(playerid) 
{
    KillTimer(Weapons(playerid)); 
}
//Nope, it doesn't work. Sorry, I don't have time to work on it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)