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重新編輯 ]
|