Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public TeamCmd(id)
- {
- static teams[64]
- formatex(teams, charsmax(teams),"\r[\y BeatTheB-Jail\r ]\w Choose Your Teams")
- new iMenu = menu_create(teams, "sub_teamcmd")
- new players[32], pnum, tempid
- new szName[32], szTempid[10]
- get_players(players, pnum, "a")
- for( new i; i<pnum; i++ )
- {
- tempid = players[i]
- if(cs_get_user_team(tempid) != CS_TEAM_T)
- continue
- get_user_name(tempid, szName, 31)
- num_to_str(tempid, szTempid, 9)
- menu_additem(iMenu, szName, szTempid, 0)
- menu_additem(iMenu, "Auto Split", "1")
- formatex(teams, charsmax(teams),"Team Color [ %s ]", TeamColor)
- menu_additem(iMenu, teams, "2")
- }
- menu_display(id, iMenu)
- return PLUGIN_HANDLED
- }
- }
- public sub_teamcmd(id, menu, item)
- {
- new Data[6], Name[64]
- new Access, Callback
- menu_item_getinfo(menu, item, Access, Data,5, Name, 63, Callback)
- new tempid = str_to_num(Data)
- get_user_name(tempid, challenged, 31)
- new key = str_to_num(item)
- switch(key)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement