Menu and spawn stuff
So I got this menu where are 4 weapons and 1 of them is default(you spawn with it if you haven't taken another one), so I need some help with the spawn thing, so it would save the settings. I've made a menu based on the tutorial what Emp' had made. I think the spawn thing has something to do with the function, so that the WeaponName would change if the user chooses the other weapon.
PHP Code:
|
Re: Menu and spawn stuff
Use a global array to keep track of everybody's chosen weapon (new g_iWeaponChoice[33], index it like: g_iWeaponChoice[id]). But, when the plugin starts, set everybody's 'choice' to which ever is default.
|
Re: Menu and spawn stuff
Could you please make an example or the thing? Because I'm rather new to this stuff and don't really know how to use the g_iWeaponChoice thing.
|
Re: Menu and spawn stuff
PHP Code:
|
Re: Menu and spawn stuff
It doesn't work like I need it to work, like when I die I do not spawn with the weapon I choose the last round.
|
Re: Menu and spawn stuff
Quote:
|
Re: Menu and spawn stuff
Ok here's the full code without the modifications you told me to make.
PHP Code:
|
Re: Menu and spawn stuff
No, show the code that doesn't work. Show what you tried. I'm not going to do it all for you.
|
Re: Menu and spawn stuff
Okay, here it is.
PHP Code:
|
Re: Menu and spawn stuff
Fysik any luck?
|
| All times are GMT -4. The time now is 05:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.