Raised This Month: $ Target: $400
 0% 

Kinda New Here


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-26-2010 , 02:40   Re: Kinda New Here
Reply With Quote #1

Well, welcome to the jungle.

As for your questions on commands, I'd suggest checking out the funcwiki.

For your plugin, I'd recommend creating an array and sorting players in a for loop based on the array. For example:
Code:
new const CsTeams:Sorting[4] = {     CS_TEAM_T,     CS_TEAM_CT,     CS_TEAM_CT,     CS_TEAM_CT } new position new iPlayers[32] new iNum get_players( iPlayers, iNum ) new id for( new i = 0; i < iNum; i++ ) {    cs_set_user_team( iPlayers[i], Sorting[position++] ) }

If you don't understand anything from that example, let me know and I'll explain it. Also, you shouldn't use the exact above method, you'll want to add in something in the for loop to randomize the players instead of doing it in the same order every time.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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:18.


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