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;
if(weaponid >= 1 && weaponid <= 15)
{
if(weaponid == Weapons)
{
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)
{
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)
{
return 1;
}
else
{
if(PlayerInfo == 1 || PlayerInfo == 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)
{
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)
{
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)
{
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)
{
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)
{
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): ////
Banuje me
1,237
pregleda
18
postova
19. Mar. 2018.
Made Man
Novi Član
90 / 100 XP
🌱Početnik(0)
419
Postovi:
49
Teme:
Pridružio se:Sep. 2017
19. Mar. 2018.
Yannick wrote on March 19, 2018, 7:24 pm:
staviÅ¡ provjeru ako je igraÄ admin da ga ne banuje
To znam,ali ako VIP kuca /vipmenu odmah ga banuje
20. Mar. 2018.
Bašovski wrote on March 19, 2018, 8:48 pm:
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
Made Man
Novi Član
90 / 100 XP
🌱Početnik(0)
419
Postovi:
49
Teme:
Pridružio se:Sep. 2017
20. Mar. 2018.
🙄
pošalji komandu nam
Belegija wrote on March 19, 2018, 7:26 pm:
To znam,ali ako VIP kuca /vipmenu odmah ga banuje
pošalji komandu nam
20. Mar. 2018.
Nobody wrote on March 20, 2018, 7:31 pm:
Yannic ne prosipaj se, posalji nam cmd 🙂
YCMD:vipmenu(playerid, params[], help)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo >= 4)
{
if(PlayerInfo >= 1) return SCM(playerid,-1,"MG:RPG| "SPLAVA"Ne mozete koristiti ovu komandu jer ste u waru!");
if(PlayerInfo != 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) \nM4 ($ 12k) \nTec9 ($ 13k) \nUzi ($ 14k) \nShotgun ($ 10k) ", "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 == 0) return SCM(playerid,-1,"PG | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo < 5) return SCM(playerid, -1, ""ZUTA" "BELA"Samo Admini (Admin Level 5+)!");
new pplayerid,gun,ammo,string;
if(AdminDuty == 0) return SCM(playerid,-1,""CRVENA" "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] ");
if(pplayerid == IPI) return SCM(playerid, -1, " "CRVENA"Taj igrac nije na serveru!");
GivePlayerWeapon(pplayerid, gun,ammo);
format(string,sizeof(string),""ZUTA" "BELA"Admin "CRVENA"%s "BELA"vam je dao oruzije ID "SPLAVA"%d!",GetName(playerid),gun);
SCM(pplayerid,-1,string);
format(string,sizeof(string),""ZUTA" "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
20. Mar. 2018.
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
21. Mar. 2018.
á—ªå‚乂 wrote on March 21, 2018, 12:31 pm:
Ovako stavi ovo se i meni deslio
g_GivePlayerWeapon(pplayerid, gun,ammo);Daj mi definiciju g_GivePlayerWeapon
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava