24.02.2015, 11:04
Quote:
/*if(PlayerInfo[playerid][pGunAmmo][2] > 45) { SetPlayerAmmo(playerid, PlayerInfo[playerid][pGuns][2], 45); PlayerInfo[playerid][pGunAmmo][2] = 45; } if(PlayerInfo[playerid][pGuns][3] == 25 && PlayerInfo[playerid][pGunAmmo][3] > 20) { SetPlayerAmmo(playerid, PlayerInfo[playerid][pGuns][3], 20); PlayerInfo[playerid][pGunAmmo][3] = 20; } if(PlayerInfo[playerid][pGuns][3] == 26 && PlayerInfo[playerid][pGunAmmo][3] > 30) { SetPlayerAmmo(playerid, PlayerInfo[playerid][pGuns][3], 30); PlayerInfo[playerid][pGunAmmo][3] = 30; } if(PlayerInfo[playerid][pGuns][3] == 27 && PlayerInfo[playerid][pGunAmmo][3] > 25) { SetPlayerAmmo(playerid, PlayerInfo[playerid][pGuns][3], 25); PlayerInfo[playerid][pGunAmmo][3] = 25; } if(PlayerInfo[playerid][pGunAmmo][4] > 80) { SetPlayerAmmo(playerid, PlayerInfo[playerid][pGuns][4], 80); PlayerInfo[playerid][pGunAmmo][4] = 80; } if(PlayerInfo[playerid][pGunAmmo][5] > 85) { SetPlayerAmmo(playerid, PlayerInfo[playerid][pGuns][5], 85); PlayerInfo[playerid][pGunAmmo][5] = 85; } if(PlayerInfo[playerid][pGuns][6] == 33 && PlayerInfo[playerid][pGunAmmo][6] > 30) { SetPlayerAmmo(playerid, PlayerInfo[playerid][pGuns][6], 30); PlayerInfo[playerid][pGunAmmo][6] = 30; } if(PlayerInfo[playerid][pGuns][6] == 34 && PlayerInfo[playerid][pGunAmmo][6] > 20) { SetPlayerAmmo(playerid, PlayerInfo[playerid][pGuns][6], 20); PlayerInfo[playerid][pGunAmmo][6] = 20; }*/ |
Because the AMMO was unlimited, how can I change it?