Voting system.
Hi,
Could someone show me how to do a voting system for lets say restarting the server? (server_cmd quit). Im trying to get a voting system to work last time I did it crashed the server. is there something I should know about outdated methods? or am I just doing it wrong? |
Re: Voting system.
Code:
|
Re: Voting system.
vampa, show us the code.
|
Re: Voting system.
Can someone give me a working sample which I can work with?
It is easier for me to learn that way. Heres the previous code. PHP Code:
|
Re: Voting system.
Quote:
wait, you said your initial code crashes the server are you aware that it's what it's intended to do? server_cmd("quit") this closes the HLDS process entirely, just like you would type quit in your console, it doesn't restart the server are you sure it's crashing and it's not a misunderstanding? |
Re: Voting system.
yeah infact initial code does something different im using shut down aka quit as an easy example.
Im just looking to get the voting system to work seeing im not familiar with it. Likely initial function was causing a crash yet the voting didnt work as suppose too neither, in another example the menu did not destroy itself after voting. found this going to see what I can do with it, am getting brain fucks. PHP Code:
|
Re: Voting system.
Ok got it working.
Is it possible to change the color of the menu? or use hud message instead? |
Re: Voting system.
also
PHP Code:
Is there an alternative way to close it? |
Re: Voting system.
menu_destroy is not meant to close the menu, just invalidate the handle. If you want to forcibly close the menu (ie, make it disappear from their screen), display another blank menu over it
|
Re: Voting system.
Ok sweet thanks.
How about changing its color is that possible? Another question if im going to make lets say 3 different votes, would I have to duplicate PHP Code:
|
| All times are GMT -4. The time now is 09:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.