AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help on a demo plugin (https://forums.alliedmods.net/showthread.php?t=61711)

Reaper2331 10-07-2007 17:48

Help on a demo plugin
 
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"

M249-M4A1 10-07-2007 18:57

Re: Help on a demo plugin
 
1 Attachment(s)
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:


All times are GMT -4. The time now is 16:17.

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