Raised This Month: $32 Target: $400
 8% 

Triggers


Post New Thread Reply   
 
Thread Tools Display Modes
yam90
Member
Join Date: Jan 2007
Old 04-17-2008 , 09:27   Re: Triggers
Reply With Quote #21

Is it possible to add a flag that makes you able to exec an rcon command without the need of rcon access? i think its called ADMFLAG_GENERIC
yam90 is offline
theY4Kman
Join Date: Jun 2007
Location: Yak
Old 04-17-2008 , 16:42   Re: Triggers
Reply With Quote #22

Yeah, that's what I wanted to include in this release, but since I hadn't showed any work in a long time, I figured I'd release this. I also meant to tell you that before I released it...Sorry =/

What I can do easily is have a convar that holds the flags you want to be checked when someone runs an Rcon command. For example, you might set triggers_rcon to "abz", and anyone with the 'a', 'b', or 'z' flag will be able to run the command. I think I'll do that now.
__________________
http://y4kstudios.com
Is that loud enough? Oh, while I have you, check out Viper.
theY4Kman is offline
Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
yam90
Member
Join Date: Jan 2007
Old 04-18-2008 , 01:51   Re: Triggers
Reply With Quote #23

Thanks!

Last edited by yam90; 04-18-2008 at 02:53.
yam90 is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 04-21-2008 , 08:39   Re: Triggers
Reply With Quote #24

The %n variable isn't working for me. Everything else works.

Is there a specific minimum Sourcemod version required?
__________________
Extreme_One is offline
theY4Kman
Join Date: Jun 2007
Location: Yak
Old 04-21-2008 , 17:13   Re: Triggers
Reply With Quote #25

Ah, thanks, Extreme_One. The problem was in reading the configuration file. The plug-in would automatically shave off a character at the end of the replacement command so that there would be no newline char. However, there isn't always a newline char there...So I patched that up.

New file's there!
__________________
http://y4kstudios.com
Is that loud enough? Oh, while I have you, check out Viper.
theY4Kman is offline
Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 04-23-2008 , 18:55   Re: Triggers
Reply With Quote #26

Hmm I still get nothing with %n in my config :/
__________________
Extreme_One is offline
theY4Kman
Join Date: Jun 2007
Location: Yak
Old 04-23-2008 , 18:58   Re: Triggers
Reply With Quote #27

Hm...I don't know what could possibly causing that now. Would you mind posting your config file?
__________________
http://y4kstudios.com
Is that loud enough? Oh, while I have you, check out Viper.
theY4Kman is offline
Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 04-24-2008 , 15:47   Re: Triggers
Reply With Quote #28

Quote:
Originally Posted by theY4Kman View Post
Hm...I don't know what could possibly causing that now. Would you mind posting your config file?
commandlist.cfg
Code:
!url S /? url
!evil S /? evil
!english S /? english
!teamspeak S /? ts
!capgravel S /? capgravel
!teleport S /? teleport
!slot S /? slot
!spam S /? spam
!twin S /? twin
!name S /? name
!me S /? me
!list S /kbase_list
!F10 S /? F10
!f10 S /? F10
!recruit S /? recruit
!add S /? add
!resident S /? resident
!fps S /? fps
!setup S /? setup
maplist S /maplist
listmaps S /maplist
!song S /irc !!!song
!dj S /irc !!!dj
!!radio S /irc !!!radio
?radio S /irc !!!radio
!listeners S /irc !!!listeners
gay S I'm %n and I'm gay!
g4y S I'm %n and I'm gay!
ghey S I'm %n and I'm gay!
ghay S I'm %n and I'm gay!
gh4y S I'm %n and I'm gay!
g-a-y S I'm %n and I'm gay!
g-4-y S I'm %n and I'm gay!
!spray S /tracespray
/spray S /tracespray
f10 S I'm a tool and I think an admin should kick me!
F10 S I'm a tool and I think an admin should kick me!
f-10 S I'm a tool and I think an admin should kick me!
F-10 S I'm a tool and I think an admin should kick me!
f_10 S I'm a tool and I think an admin should kick me!
F_10 S I'm a tool and I think an admin should kick me!
!auth S /irc !!auth
!choon S /irc !!!choon
!poon S /irc !!!poon
!djrocks S /irc !!!djrocks
!djsucks S /irc !!!djsucks
!rate5 S /irc !!rate 5
!rate4 S /irc !!rate 4
!rate3 S /irc !!rate 3
!rate2 S /irc !!rate 2
!rate1 S /irc !!rate 1
!killer C sm_ki_toggle
!RADIO S !radio
!ADMIN S !admin
/me S *%n
hi S Hi, I'm %n!
All the commands work perfectly apart from those which attempt to make use of the %n variable
__________________
Extreme_One is offline
flubber
Senior Member
Join Date: Oct 2007
Old 07-11-2008 , 11:54   Re: Triggers
Reply With Quote #29

Seems making someone saying something doesn't work?

aide S !helpmenu work
gay S I'm %n and I'm gay! doesn't work
flubber is offline
theY4Kman
Join Date: Jun 2007
Location: Yak
Old 07-11-2008 , 16:07   Re: Triggers
Reply With Quote #30

The problems you're having are not with the Triggers plugin, they're with the server. Automatic flood protection is on. When the player says "gay", and then 1 frame later says something else, the server discards the second message. To stop that, use the disable player message flag ("d"):
Code:
gay Sd I'm %n and I'm gay!
Instead of the server just displaying the message "gay", it will only display the message "I'm <player> and I'm gay!"
__________________
http://y4kstudios.com
Is that loud enough? Oh, while I have you, check out Viper.

Last edited by theY4Kman; 07-11-2008 at 16:10.
theY4Kman is offline
Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
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 20:24.


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