Raised This Month: $51 Target: $400
 12% 

!rr !ct !t commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MyEyesGreen
Senior Member
Join Date: Apr 2010
Old 04-09-2010 , 13:23   !rr !ct !t commands
Reply With Quote #1

i need a plugin that you write !rr its do restart and if you write !ct NAME its move him to counter terrorist team

i SEARCH it and i dont find can some 1 give me it or make it to me plz
MyEyesGreen is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 04-09-2010 , 18:03   Re: !rr !ct !t commands
Reply With Quote #2

try this one,

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

#define AUTHOR "Drekes"
#define VERSION "1.0"
#define PLUGIN "something"

#define LEVEL ADMIN_KICK


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say !rr""Restart")
    
register_clcmd("say !ct""SetCT")
    
register_clcmd("say !t""SetT")
}

public 
Restart(id)
{
    if(!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED
        
    
else
    {
        
server_cmd("restart")
    }
    return 
PLUGIN_HANDLED
}
    
public 
SetCT(id)
{
    if(!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED
        
    
else
    {
        
cs_set_user_team(idCS_TEAM_CT)
    }
    return 
PLUGIN_HANDLED
}
    
public 
SetT(id)
{
    if(!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED
        
    
else
    {
        
cs_set_user_team(idCS_TEAM_T)
    }
    return 
PLUGIN_HANDLED

i made it admin only, to avoid abuse.
The admin level can be changed by changing the

#define LEVEL

Hope this helps you out
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
MyEyesGreen
Senior Member
Join Date: Apr 2010
Old 04-09-2010 , 18:35   Re: !rr !ct !t commands
Reply With Quote #3

Quote:
Originally Posted by drekes View Post
try this one,

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

#define AUTHOR "Drekes"
#define VERSION "1.0"
#define PLUGIN "something"

#define LEVEL ADMIN_KICK


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say !rr""Restart")
    
register_clcmd("say !ct""SetCT")
    
register_clcmd("say !t""SetT")
}

public 
Restart(id)
{
    if(!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED
        
    
else
    {
        
server_cmd("restart")
    }
    return 
PLUGIN_HANDLED
}
    
public 
SetCT(id)
{
    if(!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED
        
    
else
    {
        
cs_set_user_team(idCS_TEAM_CT)
    }
    return 
PLUGIN_HANDLED
}
    
public 
SetT(id)
{
    if(!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED
        
    
else
    {
        
cs_set_user_team(idCS_TEAM_T)
    }
    return 
PLUGIN_HANDLED

i made it admin only, to avoid abuse.
The admin level can be changed by changing the

#define LEVEL

Hope this helps you out
yes THX you

but you can add to it
!slay
!ban
!slap
!kick
!ff 1
!ff 0
!uberslap
and agian thx you!!!
MyEyesGreen is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 04-09-2010 , 18:38   Re: !rr !ct !t commands
Reply With Quote #4

Why don't you just.... argh..

And i think you asked exact same thing in another topic...
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 04-09-2010 , 19:05   Re: !rr !ct !t commands
Reply With Quote #5

Quote:
Originally Posted by kanatzu View Post
Why don't you just.... argh..
? was it bad to help him?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 04-09-2010 , 19:20   Re: !rr !ct !t commands
Reply With Quote #6

Quote:
Originally Posted by drekes View Post
? was it bad to help him?
No not that part! ^^'
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 04-09-2010 , 20:26   Re: !rr !ct !t commands
Reply With Quote #7

here, only uberslap is missing because i don't know what it does.
It is not tested either so tell me if it doesn't work, and i'll check it again

PHP Code:

/*Tnx to amxx team for slap function*/

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define AUTHOR "Drekes"
#define VERSION "1.0"
#define PLUGIN "something"

#define LEVEL ADMIN_KICK


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say !rr""Restart")
    
register_clcmd("say !ct""SetCT")
    
register_clcmd("say !t""SetT")
    
register_clcmd("say !slay""cmd_slay")
    
register_clcmd("say !ban""cmd_ban")
    
register_clcmd("say !slap""cmd_slap")
    
register_clcmd("say !kick""cmd_kick")
    
register_clcmd("say !ff 1""ff_on")
    
register_clcmd("say !ff 0""ff_off")
}

public 
Restart(id)
{
    if(!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED
        
    
else
    {
        
server_cmd("restart")
    }
    return 
PLUGIN_HANDLED
}
    
public 
SetCT(id)
{
    if(!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED
        
    
else
    {
        
cs_set_user_team(idCS_TEAM_CT)
    }
    return 
PLUGIN_HANDLED
}
    
public 
SetT(id)
{
    if(!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED
        
    
else
    {
        
cs_set_user_team(idCS_TEAM_T)
    }
    return 
PLUGIN_HANDLED
}

public 
cmd_slay(id)
{
    if (!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED

    
new szArg[35];
    
read_argv(1szArgcharsmax(szArg))
    new 
iPlayer cmd_target(idszArgCMDTARGET_ALLOW_SELF CMDTARGET_NO_BOTS)

    if (
iPlayer)
    {
        
server_cmd("amx_slay %s"iPlayer)
    }
    return 
PLUGIN_HANDLED
}

public 
cmd_ban(id)
{
    if (!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED

    
new szArg[35];
    
read_argv(1szArgcharsmax(szArg))
    new 
iPlayer cmd_target(idszArgCMDTARGET_ALLOW_SELF CMDTARGET_NO_BOTS)

    if (
iPlayer)
    {
        
server_cmd("amx_ban %s"iPlayer)
    }
    return 
PLUGIN_HANDLED
}

public 
cmd_slap(id)
{
    if (!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED

    
new arg[32]
    
    
read_argv(1arg31)
    new 
iPlayer cmd_target(idargCMDTARGET_ALLOW_SELF CMDTARGET_ONLY_ALIVE)
    
    if (!
iPlayer)
        return 
PLUGIN_HANDLED

    
new power[32]
    
    
read_argv(2power31)
    
    new 
damage str_to_num(power)
    
    
user_slap(iPlayerdamage)
    
    return 
PLUGIN_HANDLED
}

public 
cmd_kick(id)
{
    if (!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED

    
new szArg[35];
    
read_argv(1szArgcharsmax(szArg))
    new 
iPlayer cmd_target(idszArgCMDTARGET_ALLOW_SELF CMDTARGET_NO_BOTS)

    if (
iPlayer)
    {
        
server_cmd("amx_kick %s"iPlayer)
    }
    return 
PLUGIN_HANDLED
}

public 
ff_on(id)
{
    if(!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED
    
    
else
    {
        
server_cmd("mp_friendlyfire 1")
    }
    return 
PLUGIN_HANDLED
}

public 
ff_off(id)
{
    if(!
get_user_flags(id) && LEVEL)
        return 
PLUGIN_HANDLED
    
    
else
    {
        
server_cmd("mp_friendlyfire 0")
    }
    return 
PLUGIN_HANDLED

Tnx to amxmod dev team, for the slap function
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
HaqaN
Member
Join Date: Jan 2010
Location: Koca3l! / Turkey
Old 04-10-2010 , 15:09   Re: !rr !ct !t commands
Reply With Quote #8

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

new const g_cmds[][]= {
    
"!kick",
    
".kick",
    
"/kick",
    
"!map",
    
".map",
    
"/map",
    
"!ban",
    
"/ban",
    
".ban",
    
"!slay",
    
"/slay",
    
".slay",
    
"!slap",
    
"/slap",
    
".slap"        
}

public 
plugin_init(){
    
register_plugin("Chatting","1.0","Stu-E");
    
    
register_concmd("say !ff","cmdFf"ADMIN_CVAR)      
    
register_concmd("say /ff","cmdFf"ADMIN_CVAR)  
    
register_concmd("say .ff","cmdFf"ADMIN_CVAR)      
    
register_concmd("say !noff","cmdNoff"ADMIN_CVAR
    
register_concmd("say /noff","cmdNoff"ADMIN_CVAR)   
    
register_concmd("say .noff","cmdNoff"ADMIN_CVAR)    
    
register_clcmd("say""chatFilter");
}

public 
chatFilter(id) {
    new 
message[128];
    
read_argv(1message127);

    for(new 
i=0;i<sizeof(g_cmds);i++) {

        new 
cmd[33];
        
formatex(cmd,32,"%s",g_cmds[i])
        if(
containi(message,cmd) == 0) {

            
//admin level required
            
switch(i) {
                case 
0,1,2,3,4,5,6,7,8: {
                    if(!(
get_user_flags(id) & ADMIN_CVAR))
                        return 
PLUGIN_CONTINUE;
                }
            }
            
callBack(idi);
            return 
PLUGIN_HANDLED;
        }
    }
    return 
PLUGIN_CONTINUE;
}

public 
callBack(idcID) {
    new 
message[128], cmd[33], arg[65], arg2[65];
    
read_argv (1message128);
    
parse(message,cmd,32,arg,64,arg2,64);
    
replace(cmd,32,"ghsfg","");

    switch(
cID) {
        case 
0: { // kick
            
console_cmd(id,"amx_kick %s"arg);
        }
        case 
1: { // kick
            
console_cmd(id,"amx_kick %s"arg);
        }
        case 
2: { // kick
            
console_cmd(id,"amx_kick %s"arg);
        }
        case 
3: { // map
            
console_cmd(id,"amx_map %s"arg);
        }
        case 
4: { // map
            
console_cmd(id,"amx_map %s"arg);
        }
        case 
5: { // map
            
console_cmd(id,"amx_map %s"arg);
        }
        case 
6: { // banip
            
new bantime=str_to_num(arg2);

            if(
bantime==0)
                
bantime=1;
            
console_cmd(id,"amx_banip %s %d"argbantime);
        }
        case 
7: { // banip
            
new bantime=str_to_num(arg2);
            
            if(
bantime==0)
                
bantime=1;
            
console_cmd(id,"amx_banip %s %d"argbantime);
        }
        case 
8: { // banip
            
new bantime=str_to_num(arg2);
            
            if(
bantime==0)
                
bantime=1;
            
console_cmd(id,"amx_banip %s %d"argbantime);
        }
        case 
9: { // slay
            
console_cmd(id,"amx_slay %s"arg);
        }
        case 
10: { // slay
            
console_cmd(id,"amx_slay %s"arg);
        }
        case 
11: { // slay
            
console_cmd(id,"amx_slay %s"arg);
        }
        case 
12: { // slap
            
console_cmd(id,"amx_slap %s 0"arg);
        }
        case 
13: { // slap
            
console_cmd(id,"amx_slap %s 0"arg);
        }
        case 
14: { // slap
            
console_cmd(id,"amx_slap %s 0"arg);
        }        
    }
    return 
PLUGIN_HANDLED;
}

public 
cmdFf (idlevelcid){
    
    if( !
cmd_accessidlevelcid) )  
        return 
PLUGIN_HANDLED;
        
    
server_cmd("mp_friendlyfire 1")     
            
    
    
    return 
PLUGIN_HANDLED;
}
    
public 
cmdNoff (idlevelcid){
    
    if( !
cmd_accessidlevelcid) )  
        return 
PLUGIN_HANDLED;
        
    
server_cmd("mp_friendlyfire 0")     
        
    
    
    return 
PLUGIN_HANDLED;

!map <mapname>
!ban <playername> <bantime>
!kick <playername>
!slay <playername>
!slap <playername>
!ff = mp_friendlyfire 1
!noff = mp_friendlyfire 0

??
HaqaN is offline
Stu-E
Senior Member
Join Date: Nov 2009
Location: Antalya/Turkey
Old 04-10-2010 , 15:11   Re: !rr !ct !t commands
Reply With Quote #9

yes I've already made it ...
__________________
[email protected]
Match-Bot
+ KaRMa

Türksen katıl gruba "Türk" ;)
Stu-E is offline
Send a message via MSN to Stu-E Send a message via Skype™ to Stu-E
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 15:41.


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