Global Message + Ammo
I have tried for over 4 hours to get this to work. What I'm trying to do is that when the person is randomly selected to be given a weapon, they get a certain ammount of ammo and a message is shown to all players. The person recieves the weapon, but no message is shown and they have a full clip. Help please!
PHP Code:
|
Re: Global Message + Ammo
Your problem is that you're trying to look for those weapon indexes before you've actually given the gun to the user.
As it stands, the glbprint() function is completely pointless. Not only are the local variables in that function never used, but the client_print() calls in it can replace the glbprint() calls without problem. Code:
In future please indent your code. ;) |
Re: Global Message + Ammo
Ah! Thanks for the help with the announcements! But for the ammo, I've used bpammo and realized it only changed the clips not being used. I wish to give the person a weapon, with ONLY 2 or 3 ammo, and not any reserved ammo. Thanks again!
|
Re: Global Message + Ammo
I noticed that and rewrote my post. :)
|
| All times are GMT -4. The time now is 21:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.