Raised This Month: $ Target: $400
 0% 

[EDIT] Team Changer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-14-2012 , 15:56   Re: [EDIT] Team Changer
Reply With Quote #4

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#define PLUGIN "Invisible spectator"
#define VERSION "1.0"
#define AUTHOR "Bilal"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /spec""CmdSpec")
}

public 
CmdSpec(id)
{
    if (!(
is_user_alive(id)))
    {
        
client_print(idprint_chat"You have to be alive to use this command!")
        return 
PLUGIN_HANDLED
    
}
    if (
get_user_team(id) == 3)
    {
        
client_print(idprint_chat"You are already a spectator!")
        return 
PLUGIN_HANDLED
    
}
      
// switch team
    
cs_set_user_team(idCS_TEAM_SPECTATOR)

    
// respawn
    
ExecuteHam(Ham_CS_RoundRespawnid)

    
// rendering
    
set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha0)
    
    
// effetcs
    
strip_user_weapons(id)
    
set_user_footsteps(id1)
    
set_user_godmode(id1)
    
    
// message
    
client_print(idprint_chat"You are a spectator now!")
    
    return 
PLUGIN_HANDLED

This would do it?

EDIT: Next time post this at suggestions/requests
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 05-14-2012 at 15:59.
Bilal Pro 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 00:21.


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