ammo hack
#1

How can
If ammo more than 9999 player kick
Reply
#2

PHP код:
new ammo GetPlayerAmmo(playerid);
if(
ammo 9999Kick(playerid); 
Reply
#3

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
PHP код:
new ammo GetPlayerAmmo(playerid);
if(
ammo 9999Kick(playerid); 
You can do that in 1 line:

Код:
if(GetPlayerAmmo(playerid) >= 9999)
Reply
#4

Quote:

new ammo = GetPlayerAmmo(playerid);
if(ammo > 9999) Kick(playerid);

Which public
Reply
#5

Probably better off doing this using a timer. Just run the timer once the server starts.
Reply
#6

Quote:
Originally Posted by br155
Посмотреть сообщение
Which public
OnPlayerUpdate is useful
Reply
#7

No need for Timer or OnPlayerUpdate.

Just simply

PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ) {
    if(
GetPlayerAmmo(playerid) > 9999) {
        
Kick(playerid);
    }
    return 
1;

Reply
#8

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?
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)