Search found 1256 matches

by L'In20Cible
Wed May 26, 2021 11:52 pm
Forum: Plugin Development Support
Topic: Hook Player Spray
Replies: 4
Views: 14482

Re: Hook Player Spray

Would implementing a "spray ban" feature be as simple as just blocking this event with a pre-event hook? from effects.hooks import TempEntityPreHook from messages import SayText2 denied_message = SayText2('Sorry, you cannot use spray on this server.') @TempEntityPreHook...
by L'In20Cible
Tue May 18, 2021 9:04 pm
Forum: Plugin Requests
Topic: Team Join Control
Replies: 9
Views: 6371

Re: Team Join Control

If my memory serves me right, I believe you could also add something like that to force them on a random team as soon as they accept the MOTD instead of sending them the team menu: @ClientCommand('joingame') def joingame_command(command, index): Player(index).client_c...
by L'In20Cible
Sat May 15, 2021 12:12 pm
Forum: General Discussion
Topic: Warmup + Dissolver
Replies: 4
Views: 3876

Re: Warmup + Dissolver

Nobody there can explane me why dissolver is active under warmup round ? I guess because players are being respawned and not removing their ragdoll means there would be corpses everywhere affecting both server and client performance. If you don't want them to be removed, you can do so by deleting o...
by L'In20Cible
Tue May 04, 2021 4:26 am
Forum: Plugin Development Support
Topic: [Cs:s] Zombie Riot admin
Replies: 4
Views: 3221

Re: [Cs:s] Zombie Riot admin

Once your ini file has been parsed, it evaluates to: {'U:1:182650578': {}} When you do the following: return admins.get(player.steamid.lstrip('[').rstrip(']')) It effectively returns an empty dictionary. Therefore, evaluates to False . You need to test...
by L'In20Cible
Sat Apr 17, 2021 3:30 pm
Forum: Plugin Development Support
Topic: Delete Player Weapons On Death.
Replies: 7
Views: 4496

Re: Delete Player Weapons On Death.

You could predict whether the player will die or not by comparing his health against the amount of damage taken into player_hurt and strip him of his weapons there.
by L'In20Cible
Thu Apr 08, 2021 3:01 pm
Forum: Plugin Development Support
Topic: virtual functions and skip_hooks
Replies: 5
Views: 3939

Re: virtual functions and skip_hooks

It seems that the reason for the crash is due to setting the `attacker` attribute of TakeDamageInfo; as adding it, instantly causes the server crash. Make sense, because the following condition is met: @Event('player_hurt') def _on_hurt_call_events(event_data): if event_data...
by L'In20Cible
Thu Apr 08, 2021 4:52 am
Forum: Plugin Development Support
Topic: virtual functions and skip_hooks
Replies: 5
Views: 3939

Re: virtual functions and skip_hooks

Alright, I will try to add some details. TLDR: Why is call_trampoline working in the SpikedCarapace skill, and the commented skip_hooks line causes a server crash? Both methods will forward the call to the trampoline when a hook is registered. The only difference, is that call_trampoline will raise ...
by L'In20Cible
Wed Apr 07, 2021 5:08 pm
Forum: Plugin Development Support
Topic: virtual functions and skip_hooks
Replies: 5
Views: 3939

Re: virtual functions and skip_hooks

I don't have the time to go into the technicalities as to how and why, etc. but what you are looking for is the hooks_disabled context to ensure your hook do not get recursively called through a polymorphic call.
by L'In20Cible
Sat Mar 27, 2021 1:16 pm
Forum: Plugin Releases
Topic: [CSGO] Curving Flash
Replies: 14
Views: 12618

Re: [CSGO] Curving Flash

https://i.imgur.com/iRG2v8v.png ⋅ Added the French translation - thank you very much L'In20Cible. :grin: ⋅ Fixed a bug that prevented the plugin from getting loaded with the autoexec/server.cfg file. Had a quick look at your recent changes and here are two points that caught my ...
by L'In20Cible
Tue Mar 16, 2021 2:48 am
Forum: Plugin Requests
Topic: Half-Life 2 Deathmatch - God mode
Replies: 44
Views: 45975

Re: Half-Life 2 Deathmatch - God mode

Hey daren, you can give this a try. from players.entity import Player from events import Event from players.dictionary import PlayerDictionary from messages import SayText2 class StreakPlayer(Player): def __init__(self, index): super().__init__(index) self.consecutiv...
by L'In20Cible
Thu Mar 11, 2021 5:19 am
Forum: Plugin Requests
Topic: [HL2:DM] Heartbeat
Replies: 23
Views: 27364

Re: [HL2:DM] Heartbeat

I am sorry but that is not true, i only said that about 2 of them make me crash, and they give no errors for me to tell you/write what is says. and i cant send you my whole server. I am not trying to make you guys waste yours or their time. I really like the work that you all do, I do not want to u...
by L'In20Cible
Thu Mar 11, 2021 4:21 am
Forum: Plugin Requests
Topic: [HL2:DM] Heartbeat
Replies: 23
Views: 27364

Re: [HL2:DM] Heartbeat

Thank you but it crashed again with no error, idk y, friend also same deal, and no errors on his side. Its acting just like the lights script that i also am trying to get to work here, https://forums.sourcepython.com/viewtopic.php?f=37&t=2231 and they helped alot, but i still crash. I // it and...
by L'In20Cible
Tue Mar 09, 2021 11:56 am
Forum: Plugin Development Support
Topic: [Cs:s] Server Command to download new version of plugin
Replies: 6
Views: 3831

Re: [Cs:s] Server Command to download new version of plugin

How i can move the files inside of the folder? In python code There's multiple ways you can move file, though I would probably personally prefer something like that overall: from io import BytesIO from paths import GAME_PATH from urllib.request import urlopen from zipfile import ZipFile # Request t...
by L'In20Cible
Tue Mar 09, 2021 10:48 am
Forum: Plugin Development Support
Topic: [Cs:s] Server Command to download new version of plugin
Replies: 6
Views: 3831

Re: [Cs:s] Server Command to download new version of plugin

I got the download part now work. But i have other issue, when downloads from github the files, and i want to make extract them, but when it extract it always first extract Zombie-Riot-main folder. So it won't properly extract files. I want to make it extract inside of that folder. That's how the a...
by L'In20Cible
Tue Mar 09, 2021 8:10 am
Forum: Plugin Development Support
Topic: [Cs:s] Server Command to download new version of plugin
Replies: 6
Views: 3831

Re: [Cs:s] Server Command to download new version of plugin

There is quite a few issues in that code. First, the exception you referenced is caused by the following line: with urlopen(download_url, GAME_PATH, timeout=timeout) as url: The second parameter, is the additional data that should be included with your request, not a local path. Then, there ...
by L'In20Cible
Tue Mar 09, 2021 4:21 am
Forum: Plugin Requests
Topic: [HL2:DM] Crossbow
Replies: 96
Views: 85334

Re: [HL2:DM] Crossbow

OK, i guess its a no go for this script then, is a great script tho, to bad. Thanks for all your help. .PS. Me and a friend ( trying same thing) removed the lights script and left the hook you gave me, and it wont let my postal or effects work at all. If i remove it, it works fine, if you guys add ...
by L'In20Cible
Tue Mar 09, 2021 12:39 am
Forum: Plugin Requests
Topic: [HL2:DM] Crossbow
Replies: 96
Views: 85334

Re: [HL2:DM] Crossbow

Just to clarify, the error I fixed wasn't the cause of any crash. It was simply a run-time error caused by temp entity hooks for effects created by SM. If your server crash using this, or any other plugin, then it is caused by an entirely different issue and I cannot help with that.
by L'In20Cible
Mon Mar 08, 2021 8:51 am
Forum: Plugin Requests
Topic: [HL2:DM] Crossbow
Replies: 96
Views: 85334

Re: [HL2:DM] Crossbow

2021-03-07 22:42:28 - sp - EXCEPTION [SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\packages\source-python\plugins\command.py", line 164, in load_plugin plugin = self.manager.load(plugin_name) File "..\addons\source-python\packages\source-p...
by L'In20Cible
Mon Mar 08, 2021 4:02 am
Forum: Plugin Requests
Topic: [HL2:DM] Crossbow
Replies: 96
Views: 85334

Re: [HL2:DM] Crossbow

i did what you said, and it crashes it and still gives that error 2021-03-05 19:58:22 - sp - EXCEPTION [SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\packages\source-python\effects\hooks.py", line 99, in pre_playback_temp_entity make_object(Reci...
by L'In20Cible
Mon Mar 08, 2021 12:57 am
Forum: General Discussion
Topic: Unknown Command "SP"
Replies: 6
Views: 4419

Re: Unknown Command "SP"

DakotaUwe wrote:with 64 bit i get a message that the package was not found. With 32 bit it tells me i allready have the newest version.


Tried to add that architecture as mentioned into #378?

Go to advanced search