Raised This Month: $ Target: $400
 0% 

1 CT random


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RuleBreaker
Senior Member
Join Date: May 2011
Old 07-25-2011 , 16:31   Re: 1 CT random
Reply With Quote #1

I could use random(32) to get random id and set his team to CT, but how "lock" CT so others player can`t change team?
RuleBreaker is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-25-2011 , 16:38   Re: 1 CT random
Reply With Quote #2

Quote:
Originally Posted by RuleBreaker View Post
I could use random(32) to get random id
No. That is completely wrong.

You need to get a list of all the player id's that are on the one team then choose one of those randomly.

It sounds like you need to take one step at a time and not try to do so many things all at once.
__________________
fysiks 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 00:46.


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