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

!demo !stopdemo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stu-E
Senior Member
Join Date: Nov 2009
Location: Antalya/Turkey
Old 12-04-2009 , 19:55   !demo !stopdemo
Reply With Quote #1

Firstly,Sorry for my english...

I want to take demo with
say !demo
say !stopdemo

who can help me?
Stu-E is offline
Send a message via MSN to Stu-E Send a message via Skype™ to Stu-E
Toastt
BANNED
Join Date: Nov 2009
Old 12-04-2009 , 20:42   Re: !demo !stopdemo
Reply With Quote #2

why not
/demo
/stopdemo
who ever makes this should make this a command also just an idea
Toastt is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 12-04-2009 , 23:05   Re: !demo !stopdemo
Reply With Quote #3

Better if you use only one command for the 2 functions... here:

Code:
#include <amxmodx> #define PLUGIN  "Start & Stop demo recording" #define AUTHOR  "Alucard" #define VERSION "1.1" new bool:Start_Stop_Demo[33] public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_clcmd("say /demo", "HookCmdDemo")     register_clcmd("say !demo", "HookCmdDemo")     register_clcmd("say .demo", "HookCmdDemo") } public client_disconnect(id)     Start_Stop_Demo[id] = false public HookCmdDemo(id) {     new arg[32]     read_argv(id, arg, charsmax(arg) )     remove_quotes(arg)         if(!Start_Stop_Demo[id])     {         client_cmd(id, "record %s.dem", arg)         Start_Stop_Demo[id] = true     }     else     {         client_cmd(id, "stop")         Start_Stop_Demo[id] = false     }         client_print(id, print_chat, "%s demo recording...", Start_Stop_Demo[id] ? "Stop" : "Start") }

Untested, but compile.
__________________
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 14:05.
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 , 05:42   Re: !demo !stopdemo
Reply With Quote #4

I will Test it, Thx
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:23   Re: !demo !stopdemo
Reply With Quote #5

Yes It Works
but can you edit it
!demo <demoname> ?
Stu-E is offline
Send a message via MSN to Stu-E Send a message via Skype™ to Stu-E
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 12-05-2009 , 14:06   Re: !demo !stopdemo
Reply With Quote #6

Yes, edited.
__________________
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...
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 , 14:19   Re: !demo !stopdemo
Reply With Quote #7

thnk you very much
__________________
[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
Stu-E
Senior Member
Join Date: Nov 2009
Location: Antalya/Turkey
Old 12-05-2009 , 14:23   Re: !demo !stopdemo
Reply With Quote #8

oh! we got a problem

!demo <demoname> doesn't work
when we write !demo;
record to !demo.dem
__________________
[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
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 12-05-2009 , 17:30   Re: !demo !stopdemo
Reply With Quote #9

Oh ye, my mistake... but now i have to go... cya

When i come back i will do it... or maybe another user can do it.

Sry for my english.
__________________
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...
Alucard^ is offline
Send a message via Skype™ to Alucard^
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-05-2009 , 17:34   Re: !demo !stopdemo
Reply With Quote #10

PHP Code:
#include <amxmodx>
 
public plugin_init()
        
register_clcmd("say""Say");
 
public 
Say(Client)
{
        new 
Arguments[64];
        
read_args(Arguments63);
        
remove_quotes(Arguments);
 
        if (!
strlen(Arguments))
                return;
 
        new 
Command[7], Demo[32];
        
parse(ArgumentsCommand6Demo31);
 
        if (
Command[0] != '!' && Command[0] != '/')
                return;
 
        if (
equali(Command[1], "demo "))
        {
                
client_cmd(Client"record %s"Demo);
                
client_print(Clientprint_chat"Recording to %s.dem..."Demo);
        }
        else if (
equali(Command[1], "stop"))
        {
                
client_cmd(Client"stop");
                
client_print(Clientprint_chat"Demo recording stopped.");
        }

__________________

Last edited by hleV; 12-05-2009 at 17:43.
hleV 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 10:03.


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