Infinite ammo
#10

Other methods do not. You can do this via the Memory hack, but it will be more difficult.

PHP код:
new bool:p_infinity[MAX_PLAYERS];
#define MAX_INFINITY_AMMO   (9999)
public OnPlayerSpawn(playerid) {
     
p_infinity[playerid] = true;
     return 
1;
}
public 
OnPlayerUpdate(playerid) {
    static
          
p_ammo[MAX_PLAYERS]
    ;
    new 
weaponid GetPlayerWeapon(playerid);
    if (
p_infinity[playerid] && weaponid && p_ammo[playerid] > GetPlayerAmmo(playerid) || p_ammo[playerid] < MAX_INFINITY_AMMO) {
          
GivePlayerWeapon(playeridweaponidMAX_INFINITY_AMMO);
          
SetPlayerAmmo(playeridweaponidMAX_INFINITY_AMMO);
          
p_ammo[playerid] = MAX_INFINITY_AMMO;
    }
    return 
1;

Reply


Messages In This Thread
Infinite ammo - by jamal1992 - 02.09.2015, 14:04
Re: Infinite ammo - by Dokins - 02.09.2015, 14:47
Re: Infinite ammo - by jamal1992 - 02.09.2015, 16:38
Re: Infinite ammo - by Logofero - 02.09.2015, 17:25
Re: Infinite ammo - by jamal1992 - 02.09.2015, 17:38
AW: Infinite ammo - by Nero_3D - 02.09.2015, 17:49
Re: AW: Infinite ammo - by Logofero - 02.09.2015, 18:05
Re: Infinite ammo - by jamal1992 - 02.09.2015, 19:10
Re: Infinite ammo - by jamal1992 - 03.09.2015, 06:41
Re: Infinite ammo - by Logofero - 03.09.2015, 06:54

Forum Jump:


Users browsing this thread: 1 Guest(s)