Search found 416 matches

by decompile
Thu Mar 31, 2016 11:00 pm
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 84
Views: 58101

Can someone post a snippet and comment it? Hard to understand for me
by decompile
Tue Mar 29, 2016 4:15 pm
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 84
Views: 58101

The cleanest way would be to hook SayText2, get the msg_name, and override it if the message is a normal chat message. That would also help to keep the same RecipientFilter on say_team as well as dead/spec player chat. Im not realy understanding the way how to override it, the example in the link s...
by decompile
Tue Mar 29, 2016 11:44 am
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 84
Views: 58101

That will work, but Isnt there another way so I can modify the chat with colors even when the player writes a command?
by decompile
Tue Mar 29, 2016 11:39 am
Forum: Plugin Development Support
Topic: Register Tick on a Function
Replies: 2
Views: 2468

Thank you, first one is what I was looking for.
by decompile
Tue Mar 29, 2016 12:49 am
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 84
Views: 58101

Modifying chat with sayfilter but SayCommand doesnt "register"

Hey, I talked already to Ayuto about my problem but maybe you can help me out there. So I'm modifying my chat currently with the SayFilter & coloring it and sending it modified out with SayText2, but my problem is when you CommandReturn.BLOCK the sayfilter (so the old message wont get shown) the Say...
by decompile
Tue Mar 29, 2016 12:46 am
Forum: Plugin Development Support
Topic: Register Tick on a Function
Replies: 2
Views: 2468

Register Tick on a Function

Hey, is it actually possible to set up a Tick listener on a function?

like

registerTickListener(functionname)
unregisterTickListener(functionname)
by decompile
Fri Mar 25, 2016 8:40 pm
Forum: Plugin Development Support
Topic: choice_index == 0
Replies: 1
Views: 1986

choice_index == 0

Hey,

Is there a way to return the menu when the player trys to close it via "0"?

I tried it with choice_index == 0 but it didnt worked or more nothing happens
by decompile
Wed Mar 23, 2016 12:56 pm
Forum: General Discussion
Topic: Logging
Replies: 2
Views: 2659

Yes thank you, should mybe use the search function more often but most of the old threads are outdated and have been changed due the days haha :p
by decompile
Tue Mar 22, 2016 12:52 am
Forum: General Discussion
Topic: Logging
Replies: 2
Views: 2659

Logging

How does logging work?

Is it the same like excepthook where the error from afile gets printed and saved into a text file?

I was wondering if I run my plugins on a vserver and wondering when something fails to check it
by decompile
Tue Mar 15, 2016 11:07 pm
Forum: Plugin Development Support
Topic: Spectator List
Replies: 2
Views: 2466

Spectator List

Hello,

How can I make a list of the players spectators with their playernames?

Lets say Player1 is alive and Player 2 and Player 3 are spectating him, so how can you return ["Player 2", "Player 3"]?

Sorry Mobilecorrector
by decompile
Sat Mar 12, 2016 10:32 pm
Forum: Plugin Development Support
Topic: Prevent Double Jump
Replies: 10
Views: 8321

Thanks, perfect replace for the ticklistener onGround check
by decompile
Sat Mar 12, 2016 9:22 pm
Forum: Plugin Development Support
Topic: Prevent Double Jump
Replies: 10
Views: 8321

that would be awesome if that exists
that would probably be the best solution for this
by decompile
Sat Mar 12, 2016 12:23 pm
Forum: Plugin Development Support
Topic: Prevent Double Jump
Replies: 10
Views: 8321

Sounds good, gonna try it with 2.0 seconds
by decompile
Fri Mar 11, 2016 7:41 pm
Forum: Plugin Development Support
Topic: Prevent Double Jump
Replies: 10
Views: 8321

Prevent Double Jump

by decompile
Fri Mar 04, 2016 11:56 pm
Forum: Plugin Development Support
Topic: Menu - more options on one page
Replies: 1
Views: 1959

Menu - more options on one page

Hey,

Is there something like popuplib2.pagedList where you could list many items on one page with multipage support? Like for example I have a list with 100 steamids, and I want to show 10 of them in one page but they should not be selectable.
by decompile
Wed Feb 24, 2016 10:38 pm
Forum: Plugin Development Support
Topic: Menu questions
Replies: 1
Views: 1733

Menu questions

Hey, Im currently working with the menus and i have a question about it. In the select_callback def sometestcallback(menu, player_index, choice): I dont understand how i can get the integer, seems like choice is a object. 2nd: When i return menu, will the menu be re-created or is the menu sa...
by decompile
Wed Feb 24, 2016 12:07 pm
Forum: Plugin Development Support
Topic: clientside sv_cheats commands and immune to triggers
Replies: 25
Views: 16523

So can we just use the 2 versions for CS:S http://forums.sourcepython.com/showthread.php?1066-clientside-sv_cheats-commands-and-immune-to-triggers&p=6882&viewfull=1#post6882 and CS:GO http://forums.sourcepython.com/showthread.php?1066-clientside-sv_cheats-commands-and-immune-to-triggers&p=7112&viewf...
by decompile
Tue Feb 09, 2016 12:08 pm
Forum: Plugin Development Support
Topic: <player>.set_name doesnt work
Replies: 10
Views: 6233

So one last thing, How can I block the message "XX changed his name to YY" with SP? EDIT: Found it out, you can do it with: "return EventAction.STOP_BROADCAST" @Event('player_changename') def player_changename(GameEvent): return EventAction.STOP_BROADCAST ...
by decompile
Tue Feb 09, 2016 12:06 pm
Forum: Plugin Development Support
Topic: <player>.set_name doesnt work
Replies: 10
Views: 6233

So it seems to work now by using <Player>.name = <insert name> after I updated to the latest build.. Weird, anyway thank you.

And to @Kami,

Thank you! I already added that since im using "chatranks" for players. I just had the problem that the scoreboard name didnt changed.
by decompile
Tue Feb 09, 2016 11:14 am
Forum: Plugin Development Support
Topic: Give nightvision
Replies: 4
Views: 3415

Actually, had a bit of time to test CS:GO. It seems that the functionality still exists for this, but the item isn't included in the buy menu. If I use the following script: from commands.say import SayCommand from players.entity import Player @SayCommand('nvg') def give_nvg(com...

Go to advanced search