Raised This Month: $ Target: $400
 0% 

[HELP] Creating fake team..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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