[CS] Which team won? (get at end of round) *SOVED*
This is my second question, now I created a bet-script, so it works as it should when you place the bets.
But then I went into a problem. When the round ends, I'd like to know which team won, CT or T. I haven't found a function for this. This is the last thing I need to know before finishing the script :D EDIT: I got the round change using this: PHP Code:
|
Re: [CS] Which team won? (get at end of round)
One way :
Code:
or Code:
|
Re: [CS] Which team won? (get at end of round)
I'll use that for now, but on certain mods the audio is disabled, and the "Counter-Terrorist wins" (nor the "Terrorist wins") sound is not played. (I'd like this to be compatible with as many mods as possible :P)
|
Re: [CS] Which team won? (get at end of round)
You can do that with messages (messages are called before the events) and put plugin's name above the custom plugin names in plugins.ini.
Code:
|
Re: [CS] Which team won? (get at end of round)
Ok, thanks you two, But I ran into a problem... What about "round draw"? Whats the sound thingi for that?
|
Re: [CS] Which team won? (get at end of round)
He edited
|
Re: [CS] Which team won? (get at end of round)
Oh I see, Thanks all. Now I think the script is working perfectly! (Gonna test it along with a zombie-mod to see if it works)
The only thing left to do is commenting, (I haven't got the habit of doing that when scripting, I do it after :P) |
Re: [CS] Which team won? (get at end of round)
kk, are you going to release it?
|
Re: [CS] Which team won? (get at end of round)
Log event ( I would not use register_message )
Code:
|
Re: [CS] Which team won? (get at end of round)
Quote:
Quote:
|
| All times are GMT -4. The time now is 18:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.