converting CSW_ to weapon_
hey how can i convert a CSW_ weapon name into a weapon_ weapon name?
i'd like to set unlimited ammo for a weapon but then I first need to find what weapon the player is carrying, so id have to use the native get_user_weapon first and then cs_set_weapon_ammo. but the result of get_user_weapon is in CSW_ format and the set_user_ammo is in weapon_ format. |
Re: converting CSW_ to weapon_
PHP Code:
|
Re: converting CSW_ to weapon_
PHP Code:
|
Re: converting CSW_ to weapon_
something like this then?
PHP Code:
|
Re: converting CSW_ to weapon_
SetUserActiveWeaponAmmo(id, 999)
|
Re: converting CSW_ to weapon_
lol connor :p,
I'm afraid your way is a bit to complicated/hard for me to understand. the way I wanna use it is just for an amount of time so after the time is up im gonna set the clip ammo back to the standard clip ammo depending on the weapon he has, but thats probably not gonna be so efficient i guess edit: from what i know that is a stock so how can i set the ammo on an efficient way (without checking what weapon he is holding) back to the standart clip depending on what weapon the player is currently holding? SetUserActiveWeaponAmmo(id, _) ? |
Re: converting CSW_ to weapon_
@ConnorMcLeod
PHP Code:
|
| All times are GMT -4. The time now is 00:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.