Banuje me


Započeo PekiDaBoss, Mart 19, 2018, 20:12:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Kikuje me server kad ukucam /vipmenu,zbog anti-weapon hacka,pa me interesuje kako da stavim za odredjenu komandu da ne banuje
Dio skripte: [ pawn ]stock CheckWeapons(playerid)
{
    new weaponid = GetPlayerWeapon(playerid);
    new string[128];
    if(weaponid >= 1 && weaponid <= 15)
    {
        if(weaponid == Weapons[playerid][Melee])
        {
           return 1;
        }
        else
        {
            SendClientMessage(playerid, -1, "[MG:RPG] "CRVENA"Kikovani ste zbog weapon hacka!");
            Kick(playerid);
            format(string, sizeof(string), "[MG:RPG] "BELA"Kikujem igraca %s zbog Weapon Hacka!",GetName(playerid));
         AdminGameMaster(-1, string);
        }
    }
   if( weaponid >= 16 && weaponid <= 18 || weaponid == 39 ) // Checking Thrown
    {
        if(weaponid == Weapons[playerid][Thrown])
        {
           return 1;
        }
        else
        {
            SendClientMessage(playerid, -1, "[MG:RPG] "CRVENA"Kikovani ste zbog weapon hacka!");
            Kick(playerid);
            format(string, sizeof(string), "[MG:RPG] "BELA"Kikujem igraca %s zbog Weapon Hacka!",GetName(playerid));
         AdminGameMaster(-1, string);
        }
    }
    if( weaponid >= 22 && weaponid <= 24 ) // Checking Pistols
    {
        if(weaponid == Weapons[playerid][Pistols])
        {
           return 1;
        }
        else
        {
              if(PlayerInfo[playerid][pClan] == 1 || PlayerInfo[playerid][pLider] == 1)
            {
                return 1;
         }
            SendClientMessage(playerid, -1, "[MG:RPG] "CRVENA"Kikovani ste zbog weapon hacka!");
            Kick(playerid);
            format(string, sizeof(string), "[MG:RPG] "BELA"Kikujem igraca %s zbog Weapon Hacka!",GetName(playerid));
         AdminGameMaster(-1, string);
        }
    }
    if( weaponid >= 25 && weaponid <= 27 ) // Checking Shotguns
    {
        if(weaponid == Weapons[playerid][Shotguns])
        {
           return 1;
        }
        else
        {
             SendClientMessage(playerid, -1, "[MG:RPG] "CRVENA"Kikovani ste zbog weapon hacka!");
             Kick(playerid);
            format(string, sizeof(string), "[MG:RPG] "BELA"Kikujem igraca %s zbog Weapon Hacka!",GetName(playerid));
         AdminGameMaster(-1, string);
        }
    }
    if( weaponid == 28 || weaponid == 29 || weaponid == 32 ) // Checking Sub Machine Guns
    {
        if(weaponid == Weapons[playerid][SubMachine])
        {
           return 1;
        }
        else
        {
            SendClientMessage(playerid, -1, "[MG:RPG] "CRVENA"Kikovani ste zbog weapon hacka!");
            Kick(playerid);
            format(string, sizeof(string), "[MG:RPG] "BELA"Kikujem igraca %s zbog Weapon Hacka!",GetName(playerid));
         AdminGameMaster(-1, string);
        }
    }
    if( weaponid == 30 || weaponid == 31 ) // Checking Assault
    {
        if(weaponid == Weapons[playerid][Assault])
        {
           return 1;
        }
        else
        {
            SendClientMessage(playerid, -1, "[MG:RPG] "CRVENA"Kikovani ste zbog weapon hacka!");
            Kick(playerid);
            format(string, sizeof(string), "[MG:RPG] "BELA"Kikujem igraca %s zbog Weapon Hacka!",GetName(playerid));
         AdminGameMaster(-1, string);
        }
    }
    if( weaponid == 33 || weaponid == 34 ) // Checking Rifles
    {
        if(weaponid == Weapons[playerid][Rifles])
        {
           return 1;
        }
        else
        {
            SendClientMessage(playerid, -1, "[MG:RPG] "CRVENA"Kikovani ste zbog weapon hacka!");
            Kick(playerid);
            format(string, sizeof(string), "[MG:RPG] "BELA"Kikujem igraca %s zbog Weapon Hacka!",GetName(playerid));
         AdminGameMaster(-1, string);
        }
    }
    if( weaponid >= 35 && weaponid <= 38 ) // Checking Heavy
    {
        if(weaponid == Weapons[playerid][Heavy])
        {
           return 1;
        }
        else
        {
            SendClientMessage(playerid, -1, "[MG:RPG] "CRVENA"Kikovani ste zbog weapon hacka!");
            Kick(playerid);
            format(string, sizeof(string), "[MG:RPG] "BELA"Kikujem igraca %s zbog Weapon Hacka!",GetName(playerid));
         AdminGameMaster(-1, string);
        }
    }
    else { return 1; }
   return 1;
}[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): ////

staviš provjeru ako je igrač admin da ga ne banuje
Respect to Muma187, Sivir, Ino420, Tosic, Shomy Script, σgí, [CG]Johnny, [WG]Danny
Alfa Gaming Community Owner & Skripter
Alfa Gaming mod edit:100%


Koju funkciju koristis za davanje oruzja? Imas li vec napravljenu za postavljanje varijable kod davanja oruzja?


bilo je lijepo dok je trajalo.


Citat: Bašovski poslato Mart 19, 2018, 21:48:20 POSLE PODNE
Koju funkciju koristis za davanje oruzja? Imas li vec napravljenu za postavljanje varijable kod davanja oruzja?

Kada admin kuca /aoruzije da bi dao oruzje,banuje ga, isto kao VIP-a kad kuca /vipmenu

 ::)
Citat: Belegija poslato Mart 19, 2018, 20:26:14 POSLE PODNE
To znam,ali ako VIP kuca /vipmenu odmah ga banuje
pošalji komandu nam
Poslednja Izmena: Mart 20, 2018, 20:32:23 POSLE PODNE od Yannick
Respect to Muma187, Sivir, Ino420, Tosic, Shomy Script, σgí, [CG]Johnny, [WG]Danny
Alfa Gaming Community Owner & Skripter
Alfa Gaming mod edit:100%

Yannic ne prosipaj se, posalji nam cmd  :)
MAJ SKVEL BOGOTAC JA SAM MAJ SKVEL MAKAVELI MAJSTOR OH NE JA SAM BOGOTAC JA ZNAM MAJ SKVEL TI KORISTIS .INI OH NE TI SI BOTARA I KANCER SI JER NE KORISTIS MAJ SKVEL MAKAVELI OH NE...

ili
Y_INI ne odredjuje tvoje sposobnosti :D
(Ono gore Joey)

Citat: Nobody poslato Mart 20, 2018, 20:31:09 POSLE PODNE
Yannic ne prosipaj se, posalji nam cmd  :)

YCMD:vipmenu(playerid, params[], help)
{
	if(IsPlayerConnected(playerid))
	{
		if(PlayerInfo[playerid][pVip] >= 4)
		{
		if(PlayerInfo[playerid][pWar] >= 1) return SCM(playerid,-1,"MG:RPG| "SPLAVA"Ne mozete koristiti ovu komandu jer ste u waru!");
		if(PlayerInfo[playerid][pZatvor] != 0) return SCM(playerid,-1,"MG:RPG| "SPLAVA"Ne mozete koristiti ovu komandu jer ste zatvoreni!");
		if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, -1, "Ne mozes to u vozilu si");
		ShowPlayerDialog(playerid,4576,DIALOG_STYLE_LIST, "VIP MENU", "AK47 ($ 11k) [300ammo]\nM4 ($ 12k) [300ammo]\nTec9 ($ 13k) [200ammo]\nUzi ($ 14k) [200ammo]\nShotgun ($ 10k) [200ammo]", "OK", "Izadji");
		}
		else
		{
		SendClientMessage(playerid, -1, "Niste autorizovani (VIP,Admin,MP,Gamemaster) !");
		}
		return 1;
	}
	return 1;
}



///////////////////////////////////////////////////////n
YCMD:aoruzije(playerid, params[], help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"PG | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
	if(PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid, -1, ""ZUTA"[MG] "BELA"Samo Admini (Admin Level 5+)!");
	new pplayerid,gun,ammo,string[128];
	if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[MG] "SIVA"Morate biti na Admin duznosti!");
	if(sscanf(params, "uii", pplayerid,gun,ammo)) return SCM(playerid,-1, ""ZUTA"MG:RPGPomoc | "BELA"/aoruzije [ID/Nick] [Weapon ID] [Municija]");
	if(pplayerid == IPI) return SCM(playerid, -1, "[MG] "CRVENA"Taj igrac nije na serveru!");
	GivePlayerWeapon(pplayerid, gun,ammo);
	format(string,sizeof(string),""ZUTA"[MG] "BELA"Admin "CRVENA"%s "BELA"vam je dao oruzije ID "SPLAVA"%d!",GetName(playerid),gun);
	SCM(pplayerid,-1,string);
	format(string,sizeof(string),""ZUTA"[MG] "BELA"Dali ste oruzije ID "CRVENA"%d "BELA"igracu "SPLAVA"%s!",gun,GetName(pplayerid));
	SCM(playerid,-1,string);
	return 1;
}

Evo komande koje kad kucam,banuje me

anticit najvjerovatnije pravi problem

Ovako,    GivePlayerWeapon(pplayerid, gun,ammo); ti je problem jer igrac dobije oruzje a nije preso preko anti cita i anti cit misli da je hack. Vjerovatno imas nesto uz pomoc cega se i preko anticita daje oruzje npr. GivePlayerWeaponEx


Ovako stavi ovo se i meni deslio
g_GivePlayerWeapon(pplayerid, gun,ammo);

credits: Xunder, Ino420, Muma

Citat: Pottus;3903994
SetPlayerPos("dreni1998", 666.666, 666.666, 666.666, 666.666);    ///// GO IN HELL MOTHERFUCKER

https://i.imgur.com/XHLx9oj.gif
https://i.ibb.co/ZJqQKWT/NXRX.gif




Citat: Belegija poslato Mart 21, 2018, 15:58:54 POSLE PODNE
Opet me banuje,iako sam promijenio
Izbaci taj anti cheat ubaci neki drugi...

credits: Xunder, Ino420, Muma

Citat: Pottus;3903994
SetPlayerPos("dreni1998", 666.666, 666.666, 666.666, 666.666);    ///// GO IN HELL MOTHERFUCKER

https://i.imgur.com/XHLx9oj.gif
https://i.ibb.co/ZJqQKWT/NXRX.gif