Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new g_MsgTeamInfo // team change detection
- public plugin_init()
- {
- g_MsgTeamInfo = get_user_msgid("TeamInfo")
- register_message(g_MsgTeamInfo, "message_teaminfo")
- }
- public message_teaminfo(msg_id, msg_dest)
- {
- // Only hook global messages
- if (msg_dest != MSG_ALL && msg_dest != MSG_BROADCAST)
- return;
- // Get player id and his new team
- static id, team[2]
- id = get_msg_arg_int(1)
- get_msg_arg_string(2, team, sizeof team - 1)
- switch (team[0])
- {
- // CT
- case 'C':
- {
- }
- // TERO
- case 'T':
- {
- }
- // SPEC
- case 'S':
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement