AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get user ammo? (https://forums.alliedmods.net/showthread.php?t=88542)

One 03-26-2009 07:14

get user ammo?
 
searched, but found nothing.

BOYSplayCS 03-26-2009 07:15

Re: get user ammo?
 
PHP Code:

get_user_ammo indexweapon, &clip, &ammo 


One 03-26-2009 07:21

Re: get user ammo?
 
Quote:

Originally Posted by BOYSplayCS (Post 789374)
PHP Code:

get_user_ammo indexweapon, &clip, &ammo 


lol. its to high 4 me.

i want to check if player has <5 ammo. its bullshit which weapon.

if player has only 5 ammo or less, do code....
somthing like this

if get_user_ammo(id, xxx?, xxx) <= 5
?? right ????

ot_207 03-26-2009 07:44

Re: get user ammo?
 
No this is how to use the function:

PHP Code:

new clip,ammo
get_user_ammo
(id,CSW_AK47,clip,ammo)
if (
ammo <= 5)
{
// do stuff



One 03-26-2009 07:52

Re: get user ammo?
 
TY, compiles perfect, must just test if this works.


All times are GMT -4. The time now is 08:53.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.