How to save menu choice?
Hey, so I want to make a simple class plugin, and I want to show this menu to everyone on Player Spawn, but once they choose, they can't choose again.
So even if they log out, or server restarts, they still have that class they choose that one time. I know that I can use nVault, but I saw like iValue in a lot of plugins, and they do that using enum's, can anyone like make me an example, or try to explain it. Thanks in advance :) |
Re: How to save menu choice?
Just use nvault for that, it's so simple that it could be done in only a few lines. Search, there are lots of questions already asked about it and bugsy actualy made a tutorial about it.
https://forums.alliedmods.net/showthread.php?t=91503 But as i said, do some more research, the thread is over 11 years old and things have slightly changed. |
Re: How to save menu choice?
Use nVault Array. When they disconnect, store their array slot data to the vault using steam id as the key. When they reconnect, load the data into their array slot.
|
| All times are GMT -4. The time now is 17:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.