Raised This Month: $ Target: $400
 0% 

Help on a demo plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 10-07-2007 , 17:48   Help on a demo plugin
Reply With Quote #1

i want to make it so people can type /record "Demo name"

i have this so far
PHP Code:
public startRecord(id)
{
client_cmd(id"stop;record %s.dem" ,demoname)

i dont know how to make it so people can type /record "Demo name"
__________________


Last edited by Reaper2331; 10-07-2007 at 18:19.
Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-07-2007 , 18:57   Re: Help on a demo plugin
Reply With Quote #2

This isn't 100% bug-free, but it works. The bug is if you enter an invalid name to record, it says you are recording, but the client console gives an error message. Basically, to fix that, search for all possible invalid characters.

This should get you started, though:
Attached Files
File Type: sma Get Plugin or Get Source (m2_say_record.sma - 644 views - 1.0 KB)
__________________

Last edited by M249-M4A1; 10-07-2007 at 18:59.
M249-M4A1 is offline
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 16:17.


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