Set User Ammo - The Specialists
Alright, I found this function in the tsxaddon include called ts_giveuserammo. But it wants a weaponid. Of course ts_getuserwpn has no weaponid return on it. I even tried to do weaponid = ts_getuserwpn(id,clip,ammo,mode,extra) and then use that weaponid. No luck. Is there any method on how to bypass this or make it at least work?
|
Re: Set User Ammo - The Specialists
http://forums.alliedmods.net/showthread.php?t=46939 that should help
+karma me XD |
Re: Set User Ammo - The Specialists
[offtopic]
You know longer desire the dark powers of -karma? [/offtopic] |
Re: Set User Ammo - The Specialists
Thanks, but it still won't set the ammo or clip to full. Here is all of the code in the plugin. And don't mind the commented out arg and dual client_prints. They're for when I make so you can set people to have inf ammo. That will be after I am sure the main part is done and flawless.
<Removed Due To Friend's Request> |
Re: Set User Ammo - The Specialists
ts_get_user_tsgun doesn't get their current weapon, it gets the entity index of their special entity created to hold all of their weapon information. Use this instead:
Code:
|
Re: Set User Ammo - The Specialists
Works like a charm, thanks.
|
Re: Set User Ammo - The Specialists
Minimum which server are you working on? I remember reading in these forums that you belong to one of the zombie servers on TS.
|
Re: Set User Ammo - The Specialists
Gabion Studios Undead Zone. Currently working on my own zombie rpg plugin which is at 0.1.3 RC 1. Ip is 68.5.27.233:27016.
|
| All times are GMT -4. The time now is 06:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.