View Single Post
Author Message
343N
Member
Join Date: Jul 2015
Old 02-21-2017 , 18:03   Store menu selection in client?
Reply With Quote #1

So this is the my first plugin ever. I want a menu to let clients select a config for the models they'll use for their weapons, but the problem is I need to somehow keep track of each clients selection in the menu, since I'll have another plugin making callbacks depending on what option was picked in the menu. How would I go about storing a users selection/choice in a menu so that another plugin/part of my plugin can make sure to do the correct thing for each client?

Basically, how would I do this?

Code:
public bool AlwaysExecutingCallback(int client){

If (getSelectedOptionFromMyMenu(client)) { // <--- how do I get something like this
//do blah
}

}
I hope this is a good enough explanation of what I want to do.

Last edited by 343N; 02-21-2017 at 18:28.
343N is offline