[Hilfe] AntiWeaponCheat klappt net wie es soll

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hallo alles Zusammen,


    Ich habe mir eben em Englishen Forum ein Anti Weapon Cheat runter geladen.
    Es klappt eigendlich alles wie es soll ich werde gebannt sobald ich mir ne Waffe Cheate doch in den Dm Zonen wo man mit zb. RPG, MG gespawnt wird sieht er es auch als Cheat an was kann ich machen??


    Hier mal der Script vom Anti Cheat.


    #include <a_samp>


    forward CheckForAll();
    forward CheckForMeele();
    forward CheckForHeavy();
    forward CheckForAssault();
    forward CheckForLight();
    forward CheckForShotgun();
    forward CheckForRifle();
    forward CheckForRPG();
    forward CheckForMinigun();
    forward CheckForGrenade();
    forward CheckForMolotov();
    forward CheckForStatchel();
    forward CheckForVision();


    public CheckForAll()
    {
    SetTimer("AllCheck", 1000, true);
    }
    public CheckForMeele()
    {
    SetTimer("MeeleCheck", 1000, true);
    }
    public CheckForHeavy()
    {
    SetTimer("HeavyCheck", 1000, true);
    }
    public CheckForAssault()
    {
    SetTimer("AssaultCheck", 1000, true);
    }
    public CheckForLight()
    {
    SetTimer("LightCheck", 1000, true);
    }
    public CheckForShotgun()
    {
    SetTimer("ShotgunCheck", 1000, true);
    }
    public CheckForRifle()
    {
    SetTimer("RifleCheck", 1000, true);
    }
    public CheckForRPG()
    {
    SetTimer("RPGCheck", 1000, true);
    }
    public CheckForMinigun()
    {
    SetTimer("MinigunCheck", 1000, true);
    }
    public CheckForGrenade()
    {
    SetTimer("GrenadeCheck", 1000, true);
    }
    public CheckForMolotov()
    {
    SetTimer("MolotovCheck", 1000, true);
    }
    public CheckForStatchel()
    {
    SetTimer("StatchelCheck", 1000, true);
    }
    public CheckForVision()
    {
    SetTimer("VisionCheck", 1000, true);
    }


    forward AllCheck(playerid);
    public AllCheck(playerid)
    {
    if(GetPlayerWeapon(playerid) == 1) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 2) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 3) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 4) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 5) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 6) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 7) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 8) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 9) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 10) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 11) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 12) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 13) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 14) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 15) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 16) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 17) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 18) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 22) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 23) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 24) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 25) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 26) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 27) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 28) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 29) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 31) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 32) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 33) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 34) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 35) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 36) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 37) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 38) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 39) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 40) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 41) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 42) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 43) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 45) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 46) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 47) Ban(playerid);

    }
    forward MeeleCheck(playerid);
    public MeeleCheck(playerid)
    {
    if(GetPlayerWeapon(playerid) == 1) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 2) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 3) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 4) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 5) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 6) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 7) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 8) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 9) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 10) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 11) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 12) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 13) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 14) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 15) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 41) Ban(playerid);
    }
    forward HeavyCheck(playerid);
    public HeavyCheck(playerid)
    {
    if(GetPlayerWeapon(playerid) == 9) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 34) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 35) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 36) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 37) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 38) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 39) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 40) Ban(playerid);
    }
    forward AssaultCheck(playerid);
    public AssaultCheck(playerid)
    {
    if(GetPlayerWeapon(playerid) == 30) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 31) Ban(playerid);
    }
    forward LightCheck(playerid);
    public LightCheck(playerid)
    {
    if(GetPlayerWeapon(playerid) == 22) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 23) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 24) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 26) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 28) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 29) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 32) Ban(playerid);
    }
    forward ShotgunCheck(playerid);
    public ShotgunCheck(playerid)
    {
    if(GetPlayerWeapon(playerid) == 25) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 26) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 27) Ban(playerid);
    }
    forward RifleCheck(playerid);
    public RifleCheck(playerid)
    {
    if(GetPlayerWeapon(playerid) == 33) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 34) Ban(playerid);
    }
    forward RPGCheck(playerid);
    public RPGCheck(playerid)
    {
    if(GetPlayerWeapon(playerid) == 35) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 36) Ban(playerid);
    }
    forward StatchelCheck(playerid);
    public StatchelCheck(playerid)
    {
    if(GetPlayerWeapon(playerid) == 39) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 40) Ban(playerid);
    }
    forward VisionCheck(playerid);
    public VisionCheck(playerid)
    {
    if(GetPlayerWeapon(playerid) == 44) Ban(playerid);
    if(GetPlayerWeapon(playerid) == 45) Ban(playerid);
    }



    Hoffe jemand kann mir Helfen

    Ich habe aus meinen Fehlern gelernt,eine Teilnahme eines Reallife Projektes ist kacke wenn man nicht selbst der Hoster ist. Man kann so leicht ausgenutzt werden.


    Copyright © ->BillyGirl 2010<-

  • Ganz ehrlich ^^ ? Das Skript ist totaler Schmarn


    //é:


    #include <a_samp>
    new _defined_weapons[] = {38/*Minigun */,37/*Flammenwerfer*/}; // Ändere oder füge neuen Waffen hinzu
    new _timer;


    public OnFilterscriptInit()
    {
    _timer = SetTimer("killya",1000,1);
    return 1;
    }
    public OnFilerscriptExit()
    {
    KillTimer(_timer);
    return 1;
    }
    public killya()
    {
    new banx[64+MAX_PLAYER_NAME],banned[MAX_PLAYER_NAME];
    for(new i = 0;i<MAX_PLAYERS;i++)
    {
    if(!IsPlayerConnected(i) || IsPlayerNPC(i))continue;
    for(new j = 0;j<sizeof defined_weapons;j++)
    {
    if(GetPlayerWeapon(i) != defined_weapons[j])continue;
    GetPlayerName(i,banned,sizeof banned);
    format(banx,sizeof banx,"%s wurde verbannt aufgrund eines WaffenHacks.",banned);
    SendClientMessage(i,0xFFFFFFFF,banx);
    Ban(i);
    }
    }
    return 1;
    }


    Ausm Kopf geschrieben sollte so gehen

    Mfg. BlackFoX_UD_ alias [BFX]Explosion


    Einmal editiert, zuletzt von BlackFoX ()

  • D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(242) : warning 215: expression has no effect
    D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(3469) : warning 219: local variable "score" shadows a variable at a preceding level
    D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(3470) : warning 204: symbol is assigned a value that is never used: "score"
    D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(5185) : warning 235: public function lacks forward declaration (symbol "OnFilterscriptInit")
    D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(5193) : warning 235: public function lacks forward declaration (symbol "OnFilerscriptExit")
    D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(5201) : warning 235: public function lacks forward declaration (symbol "killya")
    D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(5207) : error 020: invalid symbol name ""
    D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(5209) : error 029: invalid expression, assumed zero
    D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(5209) : warning 215: expression has no effect
    D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(5209) : error 001: expected token: ";", but found "]"
    D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(5209) : error 029: invalid expression, assumed zero
    D:\Users\Sven\Desktop\Neuer Server\gamemodes\SU.pwn(5209) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.


    Das kommt.

    Ich habe aus meinen Fehlern gelernt,eine Teilnahme eines Reallife Projektes ist kacke wenn man nicht selbst der Hoster ist. Man kann so leicht ausgenutzt werden.


    Copyright © ->BillyGirl 2010<-

  • #include <a_samp>
    new _defined_weapons[] = {38/*Minigun */,37/*Flammenwerfer*/}; // Ändere oder füge neuen Waffen hinzu
    new _timer;


    public OnFilterScriptInit()
    {
    _timer = SetTimer("killya",1000,1);
    return 1;
    }
    public OnFilterScriptExit()
    {
    KillTimer(_timer);
    return 1;
    }
    forward killya();
    public killya()
    {
    new banx[64+MAX_PLAYER_NAME],banned[MAX_PLAYER_NAME];
    for(new i = 0;i<MAX_PLAYERS;i++)
    {
    if(!IsPlayerConnected(i) || IsPlayerNPC(i))continue;
    for(new j = 0;j<sizeof _defined_weapons;j++)
    {
    if(GetPlayerWeapon(i) != _defined_weapons[j])continue;
    GetPlayerName(i,banned,sizeof banned);
    format(banx,sizeof banx,"%s wurde verbannt aufgrund eines WaffenHacks.",banned);
    SendClientMessage(i,0xFFFFFFFF,banx);
    Ban(i);
    }
    }
    return 1;
    }


    Sorry , hab nen Falschen Bezeichner verwendet

    Mfg. BlackFoX_UD_ alias [BFX]Explosion


  • Ok habs drinne mhh also kann mir ne mg cheaten und mit rum schießen. Passiert nichts.

    Ich habe aus meinen Fehlern gelernt,eine Teilnahme eines Reallife Projektes ist kacke wenn man nicht selbst der Hoster ist. Man kann so leicht ausgenutzt werden.


    Copyright © ->BillyGirl 2010<-

  • In diesem Fall müsstest du die Minigun in der Hand halten ;)


    jetzt nicht


    #include <a_samp>
    new _defined_weapons[] = {38/*Minigun */,37/*Flammenwerfer*/}; // Ändere oder füge neuen Waffen hinzu
    new _timer;


    public OnFilterScriptInit()
    {
    _timer = SetTimer("killya",1000,1);
    return 1;
    }
    public OnFilterScriptExit()
    {
    KillTimer(_timer);
    return 1;
    }
    forward killya();
    public killya()
    {
    new banx[64+MAX_PLAYER_NAME],banned[MAX_PLAYER_NAME];
    for(new i = 0;i<MAX_PLAYERS;i++)
    {
    if(!IsPlayerConnected(i) || IsPlayerNPC(i))continue;
    for(new j = 0;j<sizeof _defined_weapons;j++)
    {
    for(new wslot = 0;wslot<13;wslot++)
    {
    new waffex,ammox;
    GetPlayerWeaponData(i,wslot,waffex,ammox);
    if(waffex != _defined_weapons[j])continue;
    GetPlayerName(i,banned,sizeof banned);
    format(banx,sizeof banx,"%s wurde verbannt aufgrund eines WaffenHacks.",banned);
    SendClientMessage(i,0xFFFFFFFF,banx);
    Ban(i);
    }
    }
    }
    return 1;
    }

    Mfg. BlackFoX_UD_ alias [BFX]Explosion


  • Ok nun klappt es. Dank dir.


    Em ich hänge jetzt schon 2 Tage lang an dem Score System sodass wenn man jemand killt man 3 scores bekommt und wenn stirbt -3
    Doch das ging irgendwie net. Also total bugged... Hast du was für mich vielleicht das klappt?

    Ich habe aus meinen Fehlern gelernt,eine Teilnahme eines Reallife Projektes ist kacke wenn man nicht selbst der Hoster ist. Man kann so leicht ausgenutzt werden.


    Copyright © ->BillyGirl 2010<-