Raised This Month: $ Target: $400
 0% 

[HELP] Creating fake team..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-29-2017 , 20:55   [HELP] Creating fake team..
Reply With Quote #1

Hey, have any way to spawn the spectators or create a fake team to play with 3 types of teams in a game match? Example: TR vs CT vs FAKETEAM.
__________________








CrazY. is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-30-2017 , 07:15   Re: [HELP] Creating fake team..
Reply With Quote #2

Set user's team as SPECTATOR and respawn him?
__________________
edon1337 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-30-2017 , 07:38   Re: [HELP] Creating fake team..
Reply With Quote #3

Ok.. I will try do some tests.
__________________








CrazY. is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-30-2017 , 08:26   Re: [HELP] Creating fake team..
Reply With Quote #4

Why do you need a third team?

Spectators wont show score or kills or deaths in scorebar
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-30-2017 at 08:27.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-30-2017 , 09:43   Re: [HELP] Creating fake team..
Reply With Quote #5

Its because I want make a mod for my plugin between aliens, humans and predators.

Yes, you are is correct.
__________________









Last edited by CrazY.; 03-30-2017 at 09:44.
CrazY. is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-30-2017 , 09:46   Re: [HELP] Creating fake team..
Reply With Quote #6

Code:
#include < amxmodx > #include < cstrike > #include < hamsandwich > new g_iMaxPlayers ; public plugin_init( ) {     register_plugin( "Extra Team", "1.0", "DoNii" ) ;     register_event("HLTV", "RoundStart", "a", "1=0", "2=0")           RegisterHam( Ham_Killed, "player", "fw_HamKilledPost", 1 ) ;         g_iMaxPlayers = get_maxplayers( ) ; } public RoundStart( ) {     for ( new i = 1 ; i <= g_iMaxPlayers ; i++ ) {         new CsTeams:iPlayerTeam = cs_get_user_team( i ) ;         if( iPlayerTeam != CS_TEAM_SPECTATOR )         continue ;         cs_set_user_team( i, CS_TEAM_SPECTATOR ) ;         ExecuteHamB( Ham_CS_RoundRespawn, i ) ;     } } public fw_HamKilledPost( victim, attacker, shouldgib ) {     new CsTeams:iVictimTeam = cs_get_user_team( victim ) ;     new CsTeams:iAttackerTeam = cs_get_user_team( attacker ) ;     if( iVictimTeam == CS_TEAM_SPECTATOR )     ExecuteHamB( Ham_AddPoints, victim, -1, true ) ;     if( iAttackerTeam == CS_TEAM_SPECTATOR )     ExecuteHamB( Ham_AddPoints, attacker, 1 ) ;     return HAM_IGNORED ; }
__________________

Last edited by edon1337; 03-30-2017 at 15:45.
edon1337 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-30-2017 , 10:20   Re: [HELP] Creating fake team..
Reply With Quote #7

You could split the terrorists or the opposite team into two teams

Btw eddon doing this in ham spawn event is certainly a bad choice

fw_HamSpawnPost( id )
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-30-2017 at 10:49.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-30-2017 , 10:59   Re: [HELP] Creating fake team..
Reply With Quote #8

Hmm. I think this dont is valid because ExecuteHamB dont work with bots, but I will test anyway.
__________________









Last edited by CrazY.; 03-30-2017 at 11:00.
CrazY. is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-30-2017 , 11:03   Re: [HELP] Creating fake team..
Reply With Quote #9

Quote:
Originally Posted by CrazY. View Post
Hmm. I think this dont is valid because ExecuteHamB dont work with bots, but I will test anyway.
What bots are you talking about? You can use ExecuteHamB( Ham_Spawn, index ) for bots..

Quote:
Originally Posted by Natsheh View Post
You could split the terrorists or the opposite team into two teams
He's wanting spectators to have their own team not split them, basically he wants spectators to play while being in Spectator team.

Quote:
Originally Posted by Natsheh View Post
Btw eddon doing this in ham spawn event is certainly a bad choice
What to use then? They won't respawn if we call another event.
__________________
edon1337 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-30-2017 , 11:56   Re: [HELP] Creating fake team..
Reply With Quote #10

UPDATED CODE v1.1
Attached Files
File Type: sma Get Plugin or Get Source (external_teams.sma - 716 views - 7.4 KB)
File Type: inc external_teams.inc (629 Bytes, 120 views)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 04-03-2017 at 10:48.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode