Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_SWITCH_TEAM:
- {
- if ( !response )
- return false;
- new switch_str[ 128 ];
- switch ( listitem )
- {
- case 0..2:
- {
- playerData[ playerid ][ P_TEAM ] = listitem;
- playerData[ playerid ][ P_SUB ] = false;
- SetPlayerColor( playerid, teamColor( listitem, 0 ) );
- syncPlayer( playerid );
- #if GM_LANGUAGE == 0
- format( switch_str, sizeof( switch_str ), " *** \"%s\" trocou para a equipe \"%s\".", playerName( playerid ), teamName( listitem ) );
- #else
- format( switch_str, sizeof( switch_str ), "» %s has switched to team %s.", playerName( playerid ), teamName( listitem ) );
- #endif
- SendClientMessageToAll( teamColor( listitem, 1 ), switch_str );
- }
- case 3..4:
- {
- playerData[ playerid ][ P_TEAM ] = listitem - 3;
- playerData[ playerid ][ P_SUB ] = true;
- SetPlayerColor( playerid, SUB_COLOR );
- syncPlayer( playerid );
- #if GM_LANGUAGE == 0
- format( switch_str, sizeof( switch_str ), " *** \"%s\" trocou para a equipe \"%s\" (SUB).", playerName( playerid ), teamName( listitem - 3 ) );
- #else
- format( switch_str, sizeof( switch_str ), "» %s has switched to team sub (%s)", playerName( playerid ), teamName( listitem - 3 ) );
- #endif
- SendClientMessageToAll( teamColor( listitem - 3, 0 ), switch_str );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment