This is prototype / blueprint/ idea that plug-in developers or server owner can develop for a system that give "VIP's" The option to have different types of vip kit. You could make it that it will spawn in different buildings if a user enter a command for that building (eg. User enters /vip vault he will get a copy of a saved vault if he/she enter /vip kit, they will get metal frags or what ever you want in their inv)
it needs work, but this is a just an idea for people to use
FYI, Im from C++ and C# is new to me so this is kinda written in my c++ thinking, but its self explanatory
Code:bool used = false;void function_For_Kit() { bla bla bla Code that:: Gives player metal frags stones etc; has_user_used_kit = true; saves data for that player inside text DOC or somewhere, so it doen't reset vip after restart. used= true; }void function_For_Vault() { bla bla bla Code that:: Spawns a vault infront of player has_user_used_kit = true; saves data for that player inside text DOC or somewhere, so it doen't reset vip after restart. used= true; }while(vip == true) { Get input from user and to see what he wants to call in; while(has_user_used_kit == false) { if (user_input == vault) { function_For_Vault() } else if (user_input == kit) { function_For_Kit(); } else { sends error to chat if value is unkwown if(used == false) // trying to avoid loophole for infinite kits (optinal) { has_user_used_kit = true; } } } }
Little Idea for VIP system for server owners :)
Discussion in 'Rust Development' started by sililia, Jul 14, 2015.

