Raised This Month: $ Target: $400
 0% 

Specall


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Artizy
Member
Join Date: Jun 2011
Location: Milan, Italy.
Old 12-19-2013 , 17:07   Re: Specall
Reply With Quote #3

Quote:
Originally Posted by joshknifer View Post
Untested.

PHP Code:
#include < amxmodx > 
#include < amxmisc > 
#include < cstrike > 

public plugin_init( ) { 
    
register_plugin"All to Spec""1.0""joshknifer" ); 
     
    
register_concmd"amx_allspec""CmdAllSpec"ADMIN_KICK ); 


public 
CmdAllSpecidiLeveliCid ) { 
    if( !
cmd_accessidiLeveliCid) ) 
        return 
PLUGIN_HANDLED
     
    new 
iPlayers32 ], iNum
    
get_playersiPlayersiNum ); 
     
    for( new 
iiNumi++ ) { 
        
id iPlayers]; 
        
cs_set_user_team(idCS_TEAM_SPECTATOR);    //Set team
        
user_kill(id1); // Kill user
        
cs_set_user_deaths(idget_user_deaths(id) - 1)    // user_kill adds 1 to deaths, recalc it if you want.  
}  
        return 
PLUGIN_HANDLED;

Ty man, work.
Artizy 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 20:44.


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