[L4D2] How to detect winner teams ?
Hello guys,
When trying to detect winners team for l4d2 while hooking round_end event, winners team will be equal to 0 ??? If this method doesnt work, is there any other way to do so? Thanks PHP Code:
|
Re: [L4D2] How to detect winner teams ?
PHP Code:
|
Re: [L4D2] How to detect winner teams ?
Quote:
- Loop should be to "<= MaxClients" not "< MaxClients" - delete IsValidEntity line - delete IsClientConnected line and why even do this when you're using "PrintToChatAll", just use that without a loop, or you want to print the message as many times as clients in game? |
Re: [L4D2] How to detect winner teams ?
Quote:
hello silvers xD im just giving example i dont what he want exactly IsValidEntity just in case if he use edict |
Re: [L4D2] How to detect winner teams ?
You can look server events with:
sm_cvar net_showevents 2 To log those: Code:
sm_cvar con_logtimestamp 1 Use plugin for that. Here is one of those plugins, it will print in server console events with parameters. -Snip- Hook Events From Files But use above things only for testing debug/purpose, these will lag server a lot (because lot of printing in console) Quote:
|
All times are GMT -4. The time now is 16:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.