ccw111
|
分享:
▲
▼
#include < amxmodx > #include < cstrike >
public plugin_init( ) { register_logevent( "Event_RoundEnd" , 2 , "1=Round_End" ); }
public Event_RoundEnd( ) { new iPlayer[ 32 ] , iCount; get_players( iPlayer , iCount ); new iSelected , iRanNum; new TempID; while( !iSelected ) { iRanNum = random( iCount ); TempID = iPlayer[ iRanNum ]; if( cs_get_user_team( TempID ) != CS_TEAM_T ) { cs_set_user_team( TempID , CS_TEAM_T ) iSelected ++; return PLUGIN_HANDLED_MAIN; } } return PLUGIN_HANDLED_MAIN; } 类似这样就是了,但我未测试过 不过要加在不同插件的话,应该要作一些修改
[ 此文章被ccw111在2012-07-01 09:37重新编辑 ]
|