[SOLVED] Searching for some code

Posts 1–4 of 4 · Page 1 of 1
[SOLVED] Searching for some code
Hi,

I need a few things but i dont know how i can script it:
Onplayerspawn they got only one bullet, and every 5 seconds they get a new one. but if they got one already it doesn't give a new one.

i know this one:
getWeaponAmmoClip(level.currentgun);
setWeaponAmmoClip(level.currentgun, amount);

and on onplayerspawn:
self setWeaponAmmoClip(level.currentgun, 1);

But it doesn't work.

EDIT: is it possible to shoot semtexes? cuz semtex_mp just shoots bullets.
Code:
while(1)
{
    currentgun = self getCurrentWeapon();
    clipCount = self GetWeaponAmmoClip(currentgun);
    if(clipCount == 0)
    self setWeaponAmmoClip(currentgun, 1);
    wait 5;
}
/Marked as Solved
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?