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

Simple Chat Me


Post New Thread Reply   
 
Thread Tools Display Modes
Paparazziv2
Senior Member
Join Date: Feb 2011
Location: Chile, La Serena
Old 09-21-2011 , 15:58   Re: Simple Chat Me
Reply With Quote #11

when i change map the plugin crash (load the plugin).
__________________
Sorry for the bad english please.

Paparazziv2 is offline
Send a message via MSN to Paparazziv2
Antithasys
Moderator
Join Date: Apr 2008
Old 09-21-2011 , 16:02   Re: Simple Chat Me
Reply With Quote #12

Then I highly doubt this had anything to do with it. It doesn't even do anything unless someone types a chat message, and then only if they type /me in the start of the message. I would look elsewhere for your issue.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
mycologist
SourceMod Donor
Join Date: Sep 2008
Location: Sep 2008
Old 09-28-2011 , 01:59   Re: Simple Chat Me
Reply With Quote #13

Works great! Is there any possibility to limit the command to just admins?
__________________

mycologist is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 12-11-2011 , 15:27   Re: Simple Chat Me
Reply With Quote #14

Quote:
Originally Posted by mycologist View Post
Works great! Is there any possibility to limit the command to just admins?

This ^^
Horsedick is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 12-13-2011 , 20:59   Re: Simple Chat Me
Reply With Quote #15

Anyone have any idea how to restrict the use of this to just Admins? I've looked at tryin to add it to over rides however I don't see a "sm" command just a /me in the script?
Horsedick is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 12-20-2011 , 23:30   Re: Simple Chat Me
Reply With Quote #16

Well I've tried several diff things with no luck.. can't get it to restrict to only admins unless any ideas here?
Horsedick is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-19-2012 , 22:38   Re: Simple Chat Me
Reply With Quote #17

Maybe, on the following line:

if (StrEqual(sWords[0], "/me"))

make it something like:


if (StrEqual(sWords[0], "/me") && CheckCommandAccess("allow_cmd_me", ADMFLAG_GENERIC))


Or add to the first part of Action:OnChatMessage:
display code


with the above, it should only allow those admins with generic admin flag or whatever flag you override the "allow_cmd_me" flag to.

All of the above suggestions are untested

Last edited by TnTSCS; 01-20-2012 at 12:23.
TnTSCS is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 01-19-2012 , 23:41   Re: Simple Chat Me
Reply With Quote #18

Yeah TnTCSS I'm having issues compiling that into the existing script.. seem to be getting errors involving <smlib> when I compile locally...
Horsedick is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-20-2012 , 12:19   Re: Simple Chat Me
Reply With Quote #19

you need the SMLib includes

download from here. Once you have those includes in your local directory tree, you should be able to compile

plus I messed up forgot about the parameter for client in the CheckCommandAccess

attached code. Only change was:
change


again - untested
Attached Files
File Type: sp Get Plugin or Get Source (simple-chatme.sp - 83 views - 4.5 KB)
File Type: smx simple-chatme.smx (13.4 KB, 84 views)

Last edited by TnTSCS; 01-20-2012 at 12:29.
TnTSCS is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 01-20-2012 , 12:41   Re: Simple Chat Me
Reply With Quote #20

Ok got it TnTSCS I had a derp late night moment without thinking about that needed SMLib and I just used the inserted line from the other thread asking about this one. Thanks again though!
Horsedick 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 12:33.


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