kinda. you need et.gentity_set(cno, “ps.ammoclip”, 4, (et.gentity_get(clientNum, “ps.ammoclip”, 4) +1)
while clientNum is the clientnumber,
4 is axis grenade (WP_GRENADE_LAUNCHER)
and 1 the amount and the …_get part is to recieve the actual amount of grenades right now and add +x.
The number 9 is allies grenade (WP_GRENADE_PINEAPPLE).
Something like this:
if valXP >= lvl1xp and valXP < lvl2xp then
et.gentity_set(clientNum, “ps.ammoclip”, 4, (et.gentity_get(clientNum, “ps.ammoclip”, 4) +1)
et.gentity_set(clientNum, “ps.ammoclip”, 9, (et.gentity_get(clientNum, “ps.ammoclip”, 9) +1)
elseif valXP >= lvl2xp and valXP < lvl3xp then
You could add a check for the team and add if (team == 1) then
bla bla 4 bla
else
bla bla 9
end