Raised This Month: $30 Target: $400
 7% 

Request plugin /spec , /ct , /t


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alexande
Member
Join Date: Feb 2020
Old 02-18-2020 , 10:01   Request plugin /spec , /ct , /t
Reply With Quote #1

Hi guys , I need the plugin /spec , /ct , /t , but the commands can be used just by the admins.
You can use that commands just if your at least helper , just if you have at least the flags bceij
Alexande is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 02-18-2020 , 10:35   Re: Request plugin /spec , /ct , /t
Reply With Quote #2

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

#define PLUGIN "Slash Command"
#define VERSION "1.0"
#define AUTHOR "AlferD"

#define ADMINLEVEL ADMIN_CVAR

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /spec","spec",ADMINLEVEL);
    
register_clcmd("say /ct""ct",ADMINLEVEL);
    
register_clcmd("say /t","t",ADMINLEVEL);
}

public 
spec(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    {    
         new 
players[32], pnumtempid
         get_players
(playerspnum)

         for( new 
ii<pnumi++ ) 
         {
         
tempid players[i]
         
user_kill(tempid)
         
cs_set_user_team(tempidCS_TEAM_SPECTATOR)
         }
       }
      }
}

public 
ct(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    {    
         new 
players[32], pnumtempid
         get_players
(playerspnum)

         for( new 
ii<pnumi++ ) 
         {
         
tempid players[i]
         
user_kill(tempid)
         
cs_set_user_team(tempidCS_TEAM_CT)
         }
       }
      }
}

public 
t(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    {    
         new 
players[32], pnumtempid
         get_players
(playerspnum)

         for( new 
ii<pnumi++ ) 
         {
         
tempid players[i]
         
user_kill(tempid)
         
cs_set_user_team(tempidCS_TEAM_T)
         }
       }
      }

alferd is offline
Alexande
Member
Join Date: Feb 2020
Old 02-18-2020 , 16:32   Re: Request plugin /spec , /ct , /t
Reply With Quote #3

When I use anu of that 3 command it transfers all the player , not just me , please fix it
Alexande is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 02-18-2020 , 17:46   Re: Request plugin /spec , /ct , /t
Reply With Quote #4

Untested

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

#include <amxmodx>
#include <cstrike>

#define PLUGIN "Transfer Team"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"

new const szCommands[][] =
{
    
"/spec",
    
"/ct",
    
"/t"
};

new 
CsTeams:iTeams[] =
{
    
CS_TEAM_SPECTATOR,
    
CS_TEAM_CT,
    
CS_TEAM_T
};

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_clcmd("say""HandleTeamChange");
}

public 
HandleTeamChange(id)
{
    if(
get_user_flags(id) & ADMIN_KICK)
    {
        new 
szArg[10];
        
read_argv(1szArgcharsmax(szArg));
        
        for(new 
isizeof(szCommands); i++)
        {
            if(
containi(szArgszCommands[i]))
            {
                
cs_set_user_team(idCsTeams:iTeams[i]);
            }
        }
    }

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-18-2020 , 18:02   Re: Request plugin /spec , /ct , /t
Reply With Quote #5

https://amxx-bg.info/viewtopic.php?f=21&t=1114
__________________

Last edited by OciXCrom; 02-18-2020 at 18:42.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Alexande
Member
Join Date: Feb 2020
Old 02-19-2020 , 03:31   Re: Request plugin /spec , /ct , /t
Reply With Quote #6

Thank you
Alexande is offline
brabus1120
New Member
Join Date: Jun 2012
Old 07-10-2022 , 04:39   Re: Request plugin /spec , /ct , /t
Reply With Quote #7

i neeed this plugin but with no acces admin ,
i need for my server to for all player can change team , with no admin acess

Last edited by brabus1120; 07-10-2022 at 04:40.
brabus1120 is offline
Old 07-10-2022, 06:50
crystal xtreme
This message has been deleted by crystal xtreme.
Old 07-10-2022, 06:55
crystal xtreme
This message has been deleted by crystal xtreme.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-10-2022 , 08:23   Re: Request plugin /spec , /ct , /t
Reply With Quote #8

Quote:
Originally Posted by brabus1120 View Post
i neeed this plugin but with no acces admin ,
i need for my server to for all player can change team , with no admin acess
Use my plugin and set gospec_spec_flag to "".
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

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 02:48.


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