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

I need such a plugin is


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
controlsuz123
Member
Join Date: Nov 2009
Old 12-04-2009 , 15:25   I need such a plugin is
Reply With Quote #1

Hiii..Glad to help if you do

say .start = Sample; sv_restart 3,sv_restart 3,sv_restart 5
say .res1 = sv_restart 1
say .res3 = sv_restart 3
say .res5 = sv_restart 5
say .map = .map de_inferno
say .ffon = mp_friendlyfire 1
say .ffoff = mp_friendlyfire 0
say .bant = Ban terrorist team
say .banct = Ban C-terrorist team
say .demo = Sample; .demo allied = recording allied
say .stopdemo = Sample; .stopdemo allied = stopped allied
say .pass = .pass 123 ,Serverpassword : 123
say .nopass = .nopass , Serverpassword : none
say .duckon = .duckon antidoubleduck.amxx active
say .duckoff = .duckoff antidoubleduck.amxx passive,inactive
say .sxeon = .sxeon addons/sxei/dlls/sxei_mm_i386.so active
say .sxeoff = .sxeoff addons/sxei/dlls/sxei_mm_i386.so passive,inactive

Thank you very much..

Last edited by controlsuz123; 12-04-2009 at 17:31.
controlsuz123 is offline
Influenza
Junior Member
Join Date: Nov 2009
Old 12-04-2009 , 16:17   Re: I need such a plugin is
Reply With Quote #2

i want this

!res
!nuke
!pw "mypass" sv_password mypass
Influenza is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-04-2009 , 19:00   Re: I need such a plugin is
Reply With Quote #3

say .map <map> ? or say .map and the server changelevel inferno ?
Mxnn is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-04-2009 , 19:23   Re: I need such a plugin is
Reply With Quote #4

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

#define PLUGIN "SayCommands"
#define VERSION "1.0"
#define AUTHOR "Mxnn"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say .start""FuncStart"ADMIN_CVAR)
    
register_clcmd("say .res1""FuncRes1"ADMIN_CVAR)
    
register_clcmd("say .res3""FuncRes3"ADMIN_CVAR)
    
register_clcmd("say .res5""FuncRes5"ADMIN_CVAR)
    
register_clcmd("say .map""FuncChMap"ADMIN_CVAR)
    
register_clcmd("say .ffon""FuncFriendlyF"ADMIN_CVAR)
    
register_clcmd("say .ffoff""FuncFriendlyF"ADMIN_CVAR)
    
register_clcmd("say .bant""FuncBanT"ADMIN_CVAR)
    
register_clcmd("say .banct""FuncBanCT"ADMIN_CVAR)
    
register_clcmd("say .pass""FuncPass"ADMIN_CVAR)
    
register_clcmd("say .nopass""FuncPass"ADMIN_CVAR)
    
register_clcmd("say .sxeon""FuncsXe"ADMIN_CVAR)
    
register_clcmd("say .sxeoff""FuncsXe"ADMIN_CVAR)
}

public 
FuncBanCT(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    
new iPlayers[32], iNumi

    get_players
(iPlayersiNum)
    for(
i=0i<iNumi++)
    {
        if (
cs_get_user_team(iPlayers[i]) == CS_TEAM_CT)
            
server_cmd("banid #%d 0"i)
    }
 
    return 
PLUGIN_HANDLED
}
public 
FuncBanT(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    
new iPlayers[32], iNumi

    get_players
(iPlayersiNum)
    for(
i=0i<iNumi++)
    {
        if (
cs_get_user_team(iPlayers[i]) == CS_TEAM_T)
            
server_cmd("banid #%d 0"i)
    }

    return 
PLUGIN_HANDLED
}

public 
FuncStart(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    server_cmd
("sv_restart 3")
    
server_cmd("sv_restart 3")
    
server_cmd("sv_restart 5")
    
    return 
PLUGIN_HANDLED
}

public 
FuncRes1(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    server_cmd
("sv_restart 3")
    
    return 
PLUGIN_HANDLED
}

public 
FuncRes3(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    server_cmd
("sv_restart 3")
    
    return 
PLUGIN_HANDLED
}

public 
FuncRes5(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    server_cmd
("sv_restart 5")
    
    return 
PLUGIN_HANDLED
}

public 
FuncChMap(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    server_cmd
("changelevel de_inferno")
    
    return 
PLUGIN_HANDLED
}

public 
FuncFriendlyF(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    
if ( (get_cvar_num("mp_friendlyfire")) == 0)
    
server_cmd("mp_friendlyfire 1")
    else
    
server_cmd("mp_friendlyfire 0")
    
    return 
PLUGIN_HANDLED
}

public 
FuncPass(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    
new password[32]
    
get_cvar_string("sv_password"password31)
    
    if (
equal(password""))
    
server_cmd("sv_password ^"123^"")
    else
    
server_cmd("sv_password ^"^"")
    
    return 
PLUGIN_HANDLED
}

public 
FuncsXe(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    
if ( (get_cvar_num("__sxei_required") == || (get_cvar_num("__sxei_required") == -1) ) )
    
server_cmd("__sxei_required 1")
    else 
    
server_cmd("__sxei_required 0")
    
    return 
PLUGIN_HANDLED

Sorry but i don't know how to do duckoff duckon and the demos

I have a question..
PHP Code:
callfunc_begin("FuncRes3""SayCommands.amxx")
callfunc_end()
callfunc_begin("FuncRes3""SayCommands.amxx")
callfunc_end()
callfunc_begin("FuncRes5""SayCommands.amxx")
callfunc_end()

/*If i put that in the FuncStart public.. The plugin restart the server first at 3 second (twice) and finally at 5 seconds
This is true?
/* 
EDIT: Soorry by double possting!

Last edited by Mxnn; 12-04-2009 at 19:30.
Mxnn is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 12-04-2009 , 23:33   Re: I need such a plugin is
Reply With Quote #5

For demo start and stop maybe this is what you want, or maybe this help you:

http://forums.alliedmods.net/showthread.php?t=110930

And for /map <mapname> you can use this, better:

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN  "New Plugin" #define AUTHOR  "Unknown" #define VERSION "1.0" const MapPrefixesMaxLen = 5 new MapPrefixes[][MapPrefixesMaxLen] = {"de","cs","as","fy","awp","surf"} const MapNameMaxLen = 50 new MapNamePrefixedFormat[] = "%s_%s"; public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say","say"); } changeMap(mapName[]) {     server_cmd("changelevel %s", mapName) } public say(id) {     if(!is_user_admin(id) )         return PLUGIN_CONTINUE         if(read_argc() == 2)     {         new mapName[MapNameMaxLen+1]         read_argv(1,mapName,MapNameMaxLen);                 if(mapName[0] == '/')         {             format(mapName,MapNameMaxLen-1,mapName[1]);                         if(is_map_valid(mapName))             {                 changeMap(mapName);             }             else             {                 const mapPrefixesSize = sizeof MapPrefixes;                 new mapPrefix[mapPrefixesSize]                                 const mapNamePrefixedSize = sizeof MapNamePrefixedFormat + MapPrefixesMaxLen + MapNameMaxLen;                 new mapNamePrefixed[mapNamePrefixedSize]                                 for(new i=0;i<mapPrefixesSize;i++)                 {                     mapPrefix = MapPrefixes[i];                                         formatex(mapNamePrefixed,mapNamePrefixedSize-1,MapNamePrefixedFormat,mapPrefix,mapName);                                         if(is_map_valid(mapNamePrefixed))                     {                         changeMap(mapNamePrefixed);                         break;                     }                 }             }         }     }         return PLUGIN_CONTINUE }

I didn't made this, i only added some little things... if i am not wrong, this code is made it by joaquim.

Command:
/<mapname>
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 12-05-2009 at 13:53.
Alucard^ is offline
Send a message via Skype™ to Alucard^
Stu-E
Senior Member
Join Date: Nov 2009
Location: Antalya/Turkey
Old 12-05-2009 , 07:20   Re: I need such a plugin is
Reply With Quote #6

controlsuz turksun sanırım?
Stu-E is offline
Send a message via MSN to Stu-E Send a message via Skype™ to Stu-E
Stu-E
Senior Member
Join Date: Nov 2009
Location: Antalya/Turkey
Old 12-05-2009 , 07:44   Re: I need such a plugin is
Reply With Quote #7

PHP Code:
#include <amxmodx>
#include <amxmisc>
 
#define PLUGIN "Duck-Noduck"
#define VERSION "1.0"
#define AUTHOR "Stu-E"
 
public plugin_init() {
 
      
register_plugin(PLUGINVERSIONAUTHOR)
      
register_clcmd("say !duck","duck"ADMIN_BAN)
      
register_clcmd("say /duck","duck"ADMIN_BAN)
      
register_clcmd("say .duck","duck"ADMIN_BAN)
      
register_clcmd("say !noduck","noduck"ADMIN_BAN)
      
register_clcmd("say /noduck","noduck"ADMIN_BAN)
      
register_clcmd("say .noduck","noduck"ADMIN_BAN)
}
 
public 
duck() {
       
server_cmd("amx_pausecfg pause antidoubleduck.amxx")
       
server_cmd("amx_pausecfg save")
       
client_print(0print_chat"Duck engelleme Kapatildi.")
       return 
PLUGIN_HANDLED
}
public 
noduck() {
       
server_cmd("amx_pausecfg enable antidoubleduck.amxx")
       
server_cmd("amx_pausecfg save")
       
client_print(0print_chat"Duck engelleme aktif edildi.")
       return 
PLUGIN_HANDLED

you must add antidoubleduck.amxx to your server;)

Last edited by Stu-E; 12-05-2009 at 08:08.
Stu-E is offline
Send a message via MSN to Stu-E Send a message via Skype™ to Stu-E
controlsuz123
Member
Join Date: Nov 2009
Old 12-05-2009 , 14:40   Re: I need such a plugin is
Reply With Quote #8

Evet kardeş türküm.cok saol bi deneyeyim.
controlsuz123 is offline
Influenza
Junior Member
Join Date: Nov 2009
Old 12-05-2009 , 15:29   Re: I need such a plugin is
Reply With Quote #9

i want to "all-in-one"
Influenza is offline
Old 01-03-2010, 04:51
HaqaN
This message has been deleted by HaqaN. Reason: bump :D
kushikuto
Junior Member
Join Date: Jul 2010
Old 08-02-2010 , 08:48   Re: I need such a plugin is
Reply With Quote #10

How to use "say .pause" pause server and "say .play" unpause server ?
kushikuto 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 16:28.


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