Jump to content

Question

9 answers to this question

Recommended Posts

  • 1
Posted (edited)

Problema este in 'task SetPlayerUnjail[ 1000 ]( ) {'

Acolo trebuie inlocuit script-ul acesta:
 

        if( GetPlayerCameraMode ( x ) == 53 )
        {
            new Float: cam_pos ;
            GetPlayerCameraPos ( x, cam_pos, cam_pos, cam_pos ) ;
            if ( floatabs ( cam_pos ) > 50000 ) return va_SendClientMessageToAll(COLOR_LIGHTRED, "AdmBot: %s has been kicked by AdmBot, reason: Weapon Crasher #2.", GetName(x));
            Kick(x);
            return 0;
        }

cu acesta:
 

        if( GetPlayerCameraMode ( x ) == 53 )
        {
            new Float: cam_pos ;
            GetPlayerCameraPos ( x, cam_pos, cam_pos, cam_pos ) ;
            if ( floatabs ( cam_pos ) > 50000 )
            {
                va_SendClientMessageToAll(COLOR_LIGHTRED, "AdmBot: %s has been kicked by AdmBot, reason: Weapon Crasher #2.", GetName(x));
                Kick(x);
                return 0;
            }
        }

Return-ul este pus gresit doar pe trimiterea mesajului.
Adica daca ai hack, trimite acel mesaj dar nu iei kick.
Iar daca nu ai hack, nu trimite mesajul dar iei kick.

Edited by Akan

Discord:
! Akan !#6675

  • 0
Posted

Verifica callback-ul "OnPlayerWeaponShot", acolo trebuie sa fie ceva gresit.

Discord:
! Akan !#6675

  • 0
Posted

Probabil gamemode-ul tau are un sistem de anti-cheat pentru arme, incearca sa dai armele cu GivePlayerWeaponEx.

  • 0
Posted
2 hours ago, IrinelBro57 said:

Probabil gamemode-ul tau are un sistem de anti-cheat pentru arme, incearca sa dai armele cu GivePlayerWeaponEx.

Aprob, aici poate fi.Verifica cand cumpara arma din gun shop(poti sa te uiti si la dialogul cu comanda Buy Weapon, sa vezi daca ii da  GivePlayerWeaponEx sau cum ai tu definit in gamemode.Daca o ai doar giveplayerweapon, modifca cum ai tu functia in gamemode!

  • 0
Posted (edited)
10 hours ago, IrinelBro57 said:

Probabil gamemode-ul tau are un sistem de anti-cheat pentru arme, incearca sa dai armele cu GivePlayerWeaponEx.

 

Edited by DanielSy

 

 

  • 0
Posted
40 minutes ago, Akan said:

Problema este in 'task SetPlayerUnjail[ 1000 ]( ) {'

Acolo trebuie inlocuit script-ul acesta:
 

        if( GetPlayerCameraMode ( x ) == 53 )
        {
            new Float: cam_pos ;
            GetPlayerCameraPos ( x, cam_pos, cam_pos, cam_pos ) ;
            if ( floatabs ( cam_pos ) > 50000 ) return va_SendClientMessageToAll(COLOR_LIGHTRED, "AdmBot: %s has been kicked by AdmBot, reason: Weapon Crasher #2.", GetName(x));
            Kick(x);
            return 0;
        }

cu acesta:
 

        if( GetPlayerCameraMode ( x ) == 53 )
        {
            new Float: cam_pos ;
            GetPlayerCameraPos ( x, cam_pos, cam_pos, cam_pos ) ;
            if ( floatabs ( cam_pos ) > 50000 )
            {
                va_SendClientMessageToAll(COLOR_LIGHTRED, "AdmBot: %s has been kicked by AdmBot, reason: Weapon Crasher #2.", GetName(x));
                Kick(x);
                return 0;
            }
        }

Return-ul este pus gresit doar pe trimiterea mesajului.
Adica daca ai hack, trimite acel mesaj dar nu iei kick.
Iar daca nu ai hack, nu trimite mesajul dar iei kick.

+1 am rezolvat

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.