Raised This Month: $32 Target: $400
 8% 

req 3 round and than swap


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarkT1
Member
Join Date: Oct 2011
Old 04-07-2012 , 15:02   req 3 round and than swap
Reply With Quote #1

i want code

when i do the cvar amx_swap 1

so after 3 round that wiil be swap team t->go ct and ct->t

thnk u
DarkT1 is offline
DarkT1
Member
Join Date: Oct 2011
Old 04-08-2012 , 14:07   Re: req 3 round and than swap
Reply With Quote #2

??
DarkT1 is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 04-08-2012 , 14:23   Re: req 3 round and than swap
Reply With Quote #3

Quote:
Originally Posted by DarkT1 View Post
??
Don't bump your thread until 2 weeks have passed.

Untested:

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> new RoundCount; new pCvarSwap; public plugin_init() {     register_event("HLTV", "Round_Start", "a", "1=0", "2=0");         pCvarSwap = register_cvar("amx_swap", "0"); } public Round_Start() {     if(get_pcvar_num(pCvarSwap)) {         RoundCount++;                 if(RoundCount > 2) {             new iPlayers[32], iNum;             get_players(iPlayers, iNum, "ch")             for(--iNum; iNum>=0; iNum--)             {                 switch(cs_get_user_team(iPlayers[iNum]))                 {                     case CS_TEAM_CT: {                         cs_set_user_team(iPlayers[iNum], CS_TEAM_T);                     }                     case CS_TEAM_T: {                         cs_set_user_team(iPlayers[iNum], CS_TEAM_CT);                     }                 }             }                     }         RoundCount = 0;     } }
__________________

Last edited by kramesa; 04-08-2012 at 14:45.
kramesa is offline
Reply


Thread Tools
Display Modes

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 19:00.


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