SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/10/2019, 05:35 PM   #1
Sairkhan99
Little Clucker
 
Join Date: Sep 2018
Posts: 16
Reputation: 0
Default help me about hackers

Hello guys.
Today i am here and also worries about hackers
actually there's one player who attack my server again and again and do multi hacks
The hack is that he hack minigun and trying to killing players but when he killed any player with minigun( just in a sec) it shows that he killed players with deagle.
I ban him but he come right a moment ago.
Please tell me what should i do which type of anticheat should i use.
Please give me anticheat scripts to add in my server's script to stop him
Thanks.
Sairkhan99 is offline   Reply With Quote
Old 30/10/2019, 06:08 PM   #2
Tanz
Little Clucker
 
Join Date: Mar 2015
Posts: 16
Reputation: 16
Default Re: help me about hackers

Are you sure he is not rapid firing with a Deagle? Rapid fire seems to be a commonly used cheat these days.
Tanz is offline   Reply With Quote
Old 30/10/2019, 06:09 PM   #3
Sairkhan99
Little Clucker
 
Join Date: Sep 2018
Posts: 16
Reputation: 0
Default Re: help me about hackers

No he use minigun instead of deagle but kill notification show it deagle.
Sairkhan99 is offline   Reply With Quote
Old 30/10/2019, 07:18 PM   #4
WalkZ
Big Clucker
 
WalkZ's Avatar
 
Join Date: Oct 2019
Location: Pakistan
Posts: 102
Reputation: 4
Default Re: help me about hackers

If you are using minigun in server then make your weapons server-sided or else if you want to blacklist minigun or any other weapon you can do like this

PHP Code:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        if(
GetPlayerWeapon(killerid) == 38Ban(killerid); //Ban if they have a minigun
    
}
    return 
1;

https://wiki.sa-mp.com/wiki/GetPlayerWeapon
WalkZ is offline   Reply With Quote
Old 30/10/2019, 08:27 PM   #5
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 375
Reputation: 87
Default Re: help me about hackers

Quote:
Originally Posted by WalkZ View Post
If you are using minigun in server then make your weapons server-sided or else if you want to blacklist minigun or any other weapon you can do like this

PHP Code:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        if(
GetPlayerWeapon(killerid) == 38Ban(killerid); //Ban if they have a minigun
    
}
    return 
1;

https://wiki.sa-mp.com/wiki/GetPlayerWeapon
Why wait until someone dies when you can prevent damage

PHP Code:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    new 
Float:hp;
    if(
weaponid == 38)
    {
        
GetPlayerHealth(playeridhp);
        
SetPlayerHealth(playeridhp);
        
Ban(issuerid);
    }
    return 
1;

__________________
Lokii is offline   Reply With Quote
Old 30/10/2019, 08:40 PM   #6
WalkZ
Big Clucker
 
WalkZ's Avatar
 
Join Date: Oct 2019
Location: Pakistan
Posts: 102
Reputation: 4
Default Re: help me about hackers

Quote:
Originally Posted by Lokii View Post
Why wait until someone dies when you can prevent damage

PHP Code:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    new 
Float:hp;
    if(
weaponid == 38)
    {
        
GetPlayerHealth(playeridhp);
        
SetPlayerHealth(playeridhp);
        
Ban(issuerid);
    }
    return 
1;

You are right even we can do that with OnPlayerWeaponShot so player will not even take damage from hacked weapons.

PHP Code:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
    if(
GetPlayerWeapon(playerid) == 38Ban(playerid);
    return 
1;

WalkZ is offline   Reply With Quote
Old 02/11/2019, 09:22 PM   #7
Sairkhan99
Little Clucker
 
Join Date: Sep 2018
Posts: 16
Reputation: 0
Default Re: help me about hackers

Thanks Buddy <3
Sairkhan99 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
So many Hackers XaibBaba Scripting Help 6 22/09/2014 05:20 PM
WTF HACKERS! DIVESHSEET Scripting Help 2 16/05/2014 07:28 AM
AGAINST HACKERS HELP!! BlackHorse Server Support 5 31/05/2013 03:16 AM
Hackers nickbouwhuis Scripting Help 3 17/12/2012 04:52 PM
A few tips to protect against hackers please? (real hackers not game hackers) ThePS3Guy Everything and Nothing 4 08/08/2009 04:09 PM


All times are GMT. The time now is 12:36 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.