[FilterScript] Weapon anti cheat + ammo anticheat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Weapon anti cheat + ammo anticheat (
/showthread.php?tid=586530)
Weapon anti cheat + ammo anticheat -
UltraScripter - 22.08.2015
Hi everyone i created weapon anti cheat my first weapon anti cheat if you find bugs pls tell
and yes i tested it with friends
link:
http://pastebin.com/eWcy4Gh3
new usage
pawn Код:
GivePlayerWeaponEx(playerid, weaponid, ammo);
ResetPlayerWeaponsEx(playerid);
Pastebin:
http://pastebin.com/ud0CekGk <=== fixed 1 litle bug (not the satchel, grenade and rocket!)
Re: Weapon anti cheat + ammo anticheat -
DarkLight - 22.08.2015
Not Bad -_^
Re: Weapon anti cheat + ammo anticheat -
CrazyChoco - 22.08.2015
Instead of this:
pawn Код:
6.new pKnuckles[MAX_PLAYERS];
7.new pGolf[MAX_PLAYERS];
8.new pStick[MAX_PLAYERS];
9.new pKnife[MAX_PLAYERS];
10.new pBaseball[MAX_PLAYERS];
11.new pShovel[MAX_PLAYERS];
12.new pPool[MAX_PLAYERS];
13.new pKatana[MAX_PLAYERS];
14.new pChainsaw[MAX_PLAYERS];
15.new pPurpleDildo[MAX_PLAYERS];
16.new pDildo[MAX_PLAYERS];
17.new pVibrator[MAX_PLAYERS];
18.new pSilverVibrator[MAX_PLAYERS];
19.new pFlowers[MAX_PLAYERS];
20.new pCane[MAX_PLAYERS];
21.new pGrenade[MAX_PLAYERS];
22.new pTearGas[MAX_PLAYERS];
23.new pMolotov[MAX_PLAYERS];
24.new p9mm[MAX_PLAYERS];
25.new pSlienced9mm[MAX_PLAYERS];
26.new pEagle[MAX_PLAYERS];
27.new pShotgun[MAX_PLAYERS];
28.new pSawnoff[MAX_PLAYERS];
29.new pCombatShotgun[MAX_PLAYERS];
30.new pUzi[MAX_PLAYERS];
31.new pMp5[MAX_PLAYERS];
32.new pAk[MAX_PLAYERS];
33.new pM4[MAX_PLAYERS];
34.new pTec9[MAX_PLAYERS];
35.new pRifle[MAX_PLAYERS];
36.new pSniper[MAX_PLAYERS];
37.new pRpg[MAX_PLAYERS];
38.new pRocket[MAX_PLAYERS];
39.new pFlame[MAX_PLAYERS];
40.new pMinigun[MAX_PLAYERS];
41.new pSatchel[MAX_PLAYERS];
42.new pDetonator[MAX_PLAYERS];
43.new pSpray[MAX_PLAYERS];
44.new pExtinguisher[MAX_PLAYERS];
45.new pCamera[MAX_PLAYERS];
46.new pNightVis[MAX_PLAYERS];
47.new pThermalGoggles[MAX_PLAYERS];
48.new pParachute[MAX_PLAYERS];
It's more efficient to do:
pawn Код:
new Weapons[42][MAX_PLAYERS]; //I don't know if it was the correct way to enter that. ]
Re: Weapon anti cheat + ammo anticheat -
NullBot - 22.08.2015
hey man OnPlayerWeaponShoot not work with rocket launcher, grenades and satchels!