Help for Minigun hacking samp
#1

Please help , my server is Roleplay now they have come to make an account use Minigun for DM , please help me , my server have anti but cant stop them , i tried login their account but dont see minigun from it

I hope people help me resolved this
Reply
#2

You can use
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
to detect what weapon the attacker is using and ban him once he shoots someone with the minigun/rpg/flamethrower.

You can also use OnPlayerDeath to ban the attacker AFTER he killed someone using the minigun.
Reply
#3

You have an other solution.

Like me, you can use the " OnPlayerKeyStateChange() " and you make this define and this condition :

PHP код:
#define KEY_AIM KEY_HANDBRAKE
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
newkeys == KEY_FIRE || newkeys == KEY_AIM// If the player aims or shoots
    
{
        new 
weaponid GetPlayerWeapon(playerid);
        if(
weaponid == 38// Minigun is Weapon ID 38
        
{
             
ResetPlayerWeapons(playerid);
                     
// Here you ban the player.
            
return 1;
        }
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)