ammo hack - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ammo hack (
/showthread.php?tid=609991)
ammo hack -
br155 - 18.06.2016
How can
If ammo more than 9999 player kick
Re: ammo hack -
TwinkiDaBoss - 18.06.2016
PHP код:
new ammo = GetPlayerAmmo(playerid);
if(ammo > 9999) Kick(playerid);
Re: ammo hack -
K0P - 18.06.2016
Quote:
Originally Posted by TwinkiDaBoss
PHP код:
new ammo = GetPlayerAmmo(playerid);
if(ammo > 9999) Kick(playerid);
|
You can do that in 1 line:
Код:
if(GetPlayerAmmo(playerid) >= 9999)
Re: ammo hack -
br155 - 18.06.2016
Quote:
new ammo = GetPlayerAmmo(playerid);
if(ammo > 9999) Kick(playerid);
|
Which public
Re: ammo hack -
Luis- - 18.06.2016
Probably better off doing this using a timer. Just run the timer once the server starts.
Re: ammo hack -
Backups - 18.06.2016
Quote:
Originally Posted by br155
|
OnPlayerUpdate is useful
Re: ammo hack -
TwinkiDaBoss - 18.06.2016
No need for Timer or OnPlayerUpdate.
Just simply
PHP код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) {
if(GetPlayerAmmo(playerid) > 9999) {
Kick(playerid);
}
return 1;
}
Re: ammo hack - WhiteGhost - 18.06.2016
Quote:
Originally Posted by K0P
You can do that in 1 line:
Код:
if(GetPlayerAmmo(playerid) >= 9999)
|
Yeah Thats true.
PHP код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerAmmo(playerid) >= 9999) ResetPlayerWeapons(playerid);
return 1;
}
I Advice this code instead of kicking them but its yourchoice what do u want it for though?
Re: ammo hack -
br155 - 18.06.2016
Quote:
public OnPlayerUpdate(playerid)
{
if(GetPlayerAmmo(playerid) >= 9999) ResetPlayerWeapons(playerid);
return 1;
}
|
not wpork
new is cheat cleo
prime type /warm
Then /setwep idgun Example /setwep 38
When we right click The spowan gun