Raised This Month: $ Target: $400
 0% 

[L4D] Getting random client from event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kai_87
Junior Member
Join Date: Dec 2009
Old 01-02-2010 , 05:28   [L4D] Getting random client from event
Reply With Quote #1

Hi, how do I get an random client from Tank Spawn event so I can able to change some property of that client?

Thanks.
kai_87 is offline
Lord Canistra
Senior Member
Join Date: Mar 2009
Location: Tallinn, Estonia
Old 01-02-2010 , 07:30   Re: [L4D] Getting random client from event
Reply With Quote #2

GetClientOfUserId(GetEventInt("userid"))

I'm not certain if there's "userid" parameter in Tank event, but if so, it should give you id of client controlling the Tank.

For more information about hooking events look here.
__________________
Lord Canistra is offline
kai_87
Junior Member
Join Date: Dec 2009
Old 01-02-2010 , 10:10   Re: [L4D] Getting random client from event
Reply With Quote #3

Anyone knows how to create a simple voting menu for all user to vote change gravity?
kai_87 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode