How to add commands ? :D
Hello ! Im newbie in scripting :(
So i need pros help :D I made this (somehove its works) :D Code:
public OnPluginStart()So i whant to add commands but i dont know how. When i write !mix in chat the menu shows up and there is 2 choises "Yes" and "No" How to add commands like "Restart" "Live" and more ? :( (Sorry for bad english) :D |
Re: How to add commands ? :D
In this case it is done by this two lines:
PHP Code:
But depending on what you are trying to do it would probably be better to use Custom Admon Menus: http://wiki.alliedmods.net/Dynamic_A...28SourceMod%29 |
Re: How to add commands ? :D
Yes i know about that :) But if someone can make what im asking it will be perfect :) And i will +rep him every day :D Becose i need this plugin for mixes, and i want disable Admin menu in my server :)
|
Re: How to add commands ? :D
I was tryng do it by my self, but after 2 hours i give up :(
|
Re: How to add commands ? :D
Are you talking about this?
PHP Code:
|
Re: How to add commands ? :D
i think no :D i need when i write !mix then shows up menu, there you can select 1. Restart 2. Start live and more commands :) If you cant understand what i want, i can make a photo in photoshop :D
|
Re: How to add commands ? :D
Quote:
When you type !mix it will show a menu like this? Mix Menu 1. Restart 2. Live 3. Ect is that what you mean? and also what do u mean by Restart and live? |
Re: How to add commands ? :D
Yes ! You can understand what im saying :D But i need more then
1. Restart and 2. Live i think my menu has to look like that: Mix Menu 1. Restart 2. Spectate all 3. Live 4. Reset Mix |
Re: How to add commands ? :D
-removed
|
Re: How to add commands ? :D
Something like this maybe?
PHP Code:
|
| All times are GMT -4. The time now is 11:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.