Raised This Month: $ Target: $400
 0% 

[Req] /Spec switch for admins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Levels
Member
Join Date: Dec 2011
Old 12-27-2011 , 07:10   Re: [Req] /Spec switch for admins
Reply With Quote #1

He Should works fine.


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

new bool:userspec33 ]

public 
plugin_init( ) {
    
register_plugin"Spec Admin""0.2""Levels" // :D 
    
    
register_clcmd"/spec""ActionSpec" )
    
register_clcmd"/back""ActionBack" )
}

public 
client_putinserverid )
{
    
userspecid ] = false

public ActionSpecid ) {
    if( 
is_user_adminid ) )
    {
        
cs_set_user_teamidCS_TEAM_SPECTATOR )
        
userspecid ] = true
    
} else {
        
console_printid"You Already in the Spectator Team." )
    }
}

public 
ActionBackid ) {
    if( 
userspecid ] && is_user_adminid )
    {
        
set_task1.0"Respawn" )
        
userspecid ] = false
    
}
}

public 
Respawnid )
{
    
ExecuteHamB(Ham_CS_RoundRespawnid)
    if( 
cs_get_user_teamid ) == CS_TEAM_T )
    {
        
fm_strip_user_weaponsid )
        
fm_give_itemid"weapon_knife" )
        
fm_give_itemid"weapon_glock18" )
        
        
cs_set_user_bpammoidCSW_GLOCK1840 )
    }
    if( 
cs_get_user_teamid ) == CS_TEAM_CT )
    {
        
fm_strip_user_weaponsid )
        
fm_give_itemid"weapon_knife" )
        
fm_give_itemid"weapon_usp" )
        
        
cs_set_user_bpammoidCSW_USP24 )
    }


Last edited by Levels; 12-27-2011 at 07:21.
Levels is offline
yOou Know Me
BANNED
Join Date: Oct 2009
Old 12-28-2011 , 02:19   Re: [Req] /Spec switch for admins
Reply With Quote #2

I get error, when i try to compile.
Attached Thumbnails
Click image for larger version

Name:	sdasdsd.JPG
Views:	214
Size:	74.0 KB
ID:	97385  
yOou Know Me is offline
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 00:29.


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