FiveGame SA:MP GameMod, Tutoriale

FiveGame SA:MP Daca aveti orice fel de intrebari nu ezitati sa ne contactati. O zi buna, Echipa FiveGame.AmForum.Net
93.119.26.230:7777
Iunie 2018
LunMarMierJoiVinSamDum
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar

Flux RSS

Yahoo! 
MSN 
AOL 
Netvibes 
Bloglines 
Navigare
 Portal
 Index
 Membri
 Profil
 FAQ
 Cautare
Cine este conectat?
In total sunt 12 utilizatori conectati: 0 Inregistrati, 0 Invizibil si 12 Vizitatori :: 1 Motor de cautare

Nici unul

Vizualizeaza toata lista

Parteneri


forum new Fivegame RPG
http://rpg-fivegame.esy.es




Fan http://mobiclub.hi2.ro


Salut, vreau sa va anunț ca în

    Nu exista anunturi disponibile


    Distribuiţi
    In jos
    Shower
    Manager
    Manager
    Mesaje : 228
    Data de inscriere : 11/10/2015
    Varsta : 25

    0Follow this topic Anti-Hack ( +10 anti hacks )

    la data de 2/3/2017, 05:33
    Reputaţie mesaje: 100% (1 voturi)
    - Acest Anti-hack a fost creat de mine [HY De pe .COM] si contine:

    1. Anti-High Ping (300) ;
    2. Anti-Jetpack ;
    3. Anti-Money Hack ;
    4. Anti-Weapon Hack ; Weapon Blocker ;
    5. Anti-Health Hack ;
    6. Anti-Armour Hack ;
    7. Anti-Vehicle Speed Hack ;
    8. Anti-Command Spam ;
    9. Anti-Fly Car ;
    10. Anti C-BUG System ;


    Pentru download [IN ROMANA DESIGUR] :

    [Trebuie sa fiti inscris si conectat pentru a vedea acest link]" target="_blank" target="_blank" target="_blank -> PWN, doar compilati !


    Cod:

    /*

    ANTI-SYSTEM BY HY


    1. Anti-High Ping (300) ;
    2. Anti-Jetpack ;
    3. Anti-Money Hack ;
    4. Anti-Weapon Hack ; Weapon Blocker ;
    5. Anti-Health Hack ;
    6. Anti-Armour Hack ;
    7. Anti-Vehicle Speed Hack ;
    8. Anti-Command Spam ;
    9. Anti-Fly Car ;
    10. Anti C-BUG System ;

    */


    //------------------------------------------------------------------------------
    [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
    //------------------------------------------------------------------------------
    forward PingChecker();
    forward AntiJetpack();
    forward GivePlayerMoneyEx(playerid,ammount);
    forward CheckMoney();
    //------------------------------------------------------------------------------
    new bool:PingChecked[MAX_PLAYERS];
    new OldMoney[MAX_PLAYERS];
    new NewMoney[MAX_PLAYERS];
    new Float:pHealth, Float:pArmour;
    //------------------------------------------------------------------------------

    public OnGameModeInit()
    {
    SetTimer("PingChecker", 60000, true);
    SetTimer("CheckMoney",5000,true);
    return 1;
    }

    public PingChecker()
    {
    for(new i;i < MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i))
    {
    if(GetPlayerPing(i) > 300 && PingChecked[i] == false)
    {
    SendClientMessage(i, -1, "[SERVER]: {15FF00}Ai fost prins cu Ping mare. Rezolva-l, sau vei primi kick !");
    PingChecked[i] = true;
    }
    if(GetPlayerPing(i) > 300 && PingChecked[i] == true)
    {
    new pName[MAX_PLAYER_NAME] , string[MAX_PLAYER_NAME*2];
    GetPlayerName(i, pName, sizeof(pName));
    format(string, sizeof(string), "{FF0000}[SERVER]: {FFCC33}%s {15FF00}a primit kick de la {FF0000}AdmBot ! {FFFFFF}|| {FFFF00}Motiv: {15FF00}Ping-Mare", pName);
    SendClientMessageToAll(-1, string);
    SendClientMessage(i, -1, "{FF0000}[SERVER]: {FFCC33}Ai primit kick de la AdmBot || {FFFF00}Motiv: {15FF00}Ping Mare !");
    Kick(i);
    }
    }
    }
    return 1;
    }

    public AntiJetpack()
    {
    new playerid;
    if (GetPlayerSpecialAction(playerid) == 2)
    {
    new string[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"{FF0000}[SERVER]: {FFCC33}%s {15FF00}a primit kick de la {FF0000}AdmBot ! {FFFFFF}|| {FFFF00}Motiv: {15FF00}Jetpack",name);
    SendClientMessageToAll(-1,string);
    Kick(playerid);
    }
    }

    public GivePlayerMoneyEx(playerid,ammount)
    {
    OldMoney[playerid] = GetPlayerMoney(playerid);
    NewMoney[playerid] = ammount;
    GivePlayerMoney(playerid,ammount);

    return 1;
    }

    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if(newkeys & KEY_FIRE && ForbiddenWeap(playerid) && !IsPlayerAdmin(playerid))
    {
    new pname[MAX_PLAYER_NAME];
    new string[124];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "[SERVER]: {FFCC33}%s {15FF00}a primit kick de la {FF0000}AdminBot ! {FFFFFF}|| {FFFF00}Motiv: {15FF00}Hack de arme !", pname);
    SendClientMessageToAll(-1,string);
    print(string);
    SetTimerEx("KickTimer", 10, false, "i", playerid);
    BanEx(playerid,string);
    return 1;
    }
    if(pHealth >= 100.1)
    {
    Kick(playerid);
    }
    if(pArmour >= 100.1)
    {
    Kick(playerid);
    }
    return 0;
    }

    public CheckMoney()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(GetPlayerMoney(i) > NewMoney[i])
    {
    ResetPlayerMoney(i);
    GivePlayerMoney(i,OldMoney[i]);
    }
    }
    }
    return 1;
    }

    public OnPlayerText(playerid, text[])
    {
    new lol = GetTickCount();
    if(GetTickCount() - lol < 3000)
    {
    SendClientMessage(playerid,-1,"{FF0000}[SERVER]: {15FF00}Ai nevoie de 3 secunde, inainte sa folosesti alta comanda !");
    }
    return 1;
    }

    stock ForbiddenWeap(playerid)
    {
    new wp = GetPlayerWeapon(playerid);
    if( wp == 38 || wp == 37 || wp == 36 || wp == 35)
    {
    return true;
    }
    return false;
    }

    stock GetVehicleVelocityVehicle(vehicle)
    {
    new Float:Velocity[3], output[80];
    GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
    if(Velocity >= 500)
    {
    Kick(playerid);
    }
    }

    forward OnPlayerCBug(playerid);
    public OnPlayerCBug(playerid)
    {
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    new str2[128];
    new string[128];
    format(str2, sizeof(str2), "{FF0000}[SERVER]: {15FF00}%s a primit kick de la {FF0000}AdmBot ! || {FFFF00}Motiv: {15FF00}C-BUG", playername);
    new Float:Health; GetPlayerHealth(playerid,Health); SetPlayerHealth(playerid,Health-10);
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(playerid, x, y, z+15);
    PlayerPlaySound(playerid,1190,0.0,0.0,0.0); PlayerPlaySound(playerid,1190,0.0,0.0,0.0);
    SendClientMessageToAll(-1, string);
    Kick(playerid);
    return 1;

    FiveGame RPG

    FiveGame RPG

    avatar
    Andu
    Administrator
    Administrator
    Mesaje : 479
    Data de inscriere : 02/10/2015
    Varsta : 25
    Localizare : Neamt
    http://fivegame.forumz.ro

    Re: 0Follow this topic Anti-Hack ( +10 anti hacks )

    la data de 3/3/2017, 19:36
    mai trebuie adaugat ceva ca-sa  functioneze perfect

    FiveGame RPG

    FiveGame RPG


    IP: [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
     
    [Trebuie sa fiti inscris si conectat pentru a vedea acest link]t

    [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
    Sus
    Permisiunile acestui forum:
    Nu puteti raspunde la subiectele acestui forum