Search found 287 matches

by cssbestrpg
Tue Nov 29, 2022 12:59 pm
Forum: Plugin Development Support
Topic: CSS: Moderator, connect/disconnect show
Replies: 5
Views: 9876

Re: CSS: Moderator, connect/disconnect show

Good afternoon! I wrote a plugin but it doesn't work, what's my mistake? I'm just learning, please don't swear Your code is incorrect of the part where you have moderator, the code suppose to like something like this: from events import Event from messages import SayText2 moderator = '[U:1:8193...
by cssbestrpg
Sun Nov 06, 2022 12:56 pm
Forum: Plugin Development Support
Topic: [Cs:s] How to hook weapon reload
Replies: 2
Views: 2186

Re: [Cs:s] How to hook weapon reload

That seem to work fully, when i tried to hook it myself i honestly had no idea what i was doing, i am not really experienced of hooking stuff
by cssbestrpg
Sat Nov 05, 2022 4:25 pm
Forum: Plugin Development Support
Topic: [Cs:s] How to hook weapon reload
Replies: 2
Views: 2186

[Cs:s] How to hook weapon reload

Hi, how i can hook when player have finished weapon reload? I can't use weapon_reload event since it doesn't get called when weapon starts reloading when automatically starts reloading Edit: i tried to hook CBaseCombatWeapon::Reload from core import PLATFORM from memory import Convention, DataType f...
by cssbestrpg
Sat Oct 22, 2022 11:30 am
Forum: Plugin Development Support
Topic: [Cs:s] How to block kill command in console
Replies: 3
Views: 3398

Re: [Cs:s] How to block kill command in console

Just wanted to let you now that a new build is now available that includes get_command_index(). Thanks for let me know of new build, but i already did compile myself the build few days ago that includes get_command_index() Btw does the get_command_index() get index of ther user who executed the ser...
by cssbestrpg
Sat Oct 15, 2022 11:04 am
Forum: Plugin Development Support
Topic: [Cs:s] How to block kill command in console
Replies: 3
Views: 3398

[Cs:s] How to block kill command in console

Hi, i have issues to block kill command, whem you type it in console, it suppose to block, but it allows still kill yourself in console, it doesn't send the message in chat. Here is the code i tried: from commands.client import ClientCommand from commands import CommandReturn from colors import GREE...
by cssbestrpg
Thu Sep 22, 2022 1:04 pm
Forum: Plugin Requests
Topic: a Addon to remove the Ip
Replies: 2
Views: 6991

Re: a Addon to remove the Ip

Hi try this one(Only tested in css): from events import Event from listeners import OnServerOutput from core import OutputReturn, echo_console @OnServerOutput def on_server_output(severity, msg): if msg.startswith('Client'): return OutputReturn.BLOCK return OutputReturn.CONTI...
by cssbestrpg
Sat Sep 10, 2022 10:29 am
Forum: Plugin Development Support
Topic: OnPlayerRunCommand not fired in TF2
Replies: 7
Views: 6014

Re: OnPlayerRunCommand not fired in TF2

Hi, it sounds to me the game data is outdated
by cssbestrpg
Sat Sep 03, 2022 12:00 pm
Forum: Plugin Development Support
Topic: TF2 Conditions
Replies: 5
Views: 4499

Re: TF2 Conditions

I don't think it can call via sourcemod, since Source.Python and sourcemod are different plugin.
Unfortunaly i don't have any clue about those 2 functions how to call them
by cssbestrpg
Wed Aug 31, 2022 12:03 pm
Forum: Plugin Development Support
Topic: Error with bots and PlayerDictionary
Replies: 8
Views: 2619

Re: Error with bots and PlayerDictionary

If you don't have the build that fixes the issue, here is the tf2 build for it and follow the update guide to update it properly.
by cssbestrpg
Tue Aug 30, 2022 12:23 pm
Forum: Plugin Development Support
Topic: Error with bots and PlayerDictionary
Replies: 8
Views: 2619

Re: Error with bots and PlayerDictionary

Hi. I want to use PlayerDictionary to store player data (for the game mod). You try do something like this? from events import Event from players.entity import Player from players.helpers import index_from_userid from players.dictionary import PlayerDictionary from filters.players import PlayerIter...
by cssbestrpg
Tue Aug 30, 2022 10:55 am
Forum: Plugin Development Support
Topic: Error with bots and PlayerDictionary
Replies: 8
Views: 2619

Re: Error with bots and PlayerDictionary

Hi, these coding questions should be asked in Plugin Developement Support.
Also when you paste a code please use [python] syntax tags when pasting a code to be more readable.

Anyway what are you trying to do in code?
by cssbestrpg
Sun Aug 28, 2022 10:21 am
Forum: General Discussion
Topic: Is client in game
Replies: 4
Views: 1951

Re: Is client in game

For example select a random player and spawn him. If the player is not yet in the game - there will be an error. In that case try something like this: from events import Event from players.entity import Player @Event('player_say') def player_say(args): userid = args.get_int&...
by cssbestrpg
Fri Aug 12, 2022 7:20 pm
Forum: Plugin Releases
Topic: [Cs:s & Cs:go] Bomb Drop
Replies: 0
Views: 20018

[Cs:s & Cs:go] Bomb Drop

Hi guys, this plugin gives to terrorist team the bomb back to random player, when its dropped(by player)
The bomb giving have 20 seconds delay before it gives back the bomb
Here is the Download
by cssbestrpg
Tue Jun 14, 2022 4:27 pm
Forum: Plugin Development Support
Topic: [Cs:s] Insta Bomb Defuse
Replies: 2
Views: 2801

Re: [Cs:s] Insta Bomb Defuse

You might have to delay it 1 tick instead of doing it directly in the event: from events import Event from entities.entity import Entity from listeners.tick import Delay @Event('bomb_begindefuse') def bomb_begindefuse(game_event): Delay(0, defuse_bomb) def defuse_bom...
by cssbestrpg
Tue Jun 14, 2022 8:26 am
Forum: Plugin Development Support
Topic: [Cs:s] Insta Bomb Defuse
Replies: 2
Views: 2801

[Cs:s] Insta Bomb Defuse

Hi guys, i have issue with my code. I have been trying to make a code when you start defusing the bomb, it immeadily would defuse the bomb, but some reason it doesn't work at all. Here is the code: from events import Event from entities.entity import Entity @Event('bomb_begindefuse')...
by cssbestrpg
Wed May 11, 2022 1:44 pm
Forum: Plugin Development Support
Topic: [HL2:DM] Jetpack use in [BMS]
Replies: 5
Views: 3214

Re: [HL2:DM] Jetpack use in [BMS]

That error is caused, because the game doesn't have that property, when it tries get the property that doesn't exists, it causes that value error It's may be caused due to entity change. Your function can be called for another entity. Check for that. Also, send code or explain [BMS] to me. Personal...
by cssbestrpg
Mon May 09, 2022 6:29 pm
Forum: Plugin Requests
Topic: HL2:NPC HEADSHOT
Replies: 6
Views: 9742

Re: HL2:NPC HEADSHOT

daren adler wrote:lets try these 2 npc_zombie, npc_vortigaunt and npc_combine_s

Ok, tomorrow i start working on that code.
Should it uses same overlay/sounds that have in the plugin you linked?
by cssbestrpg
Mon May 09, 2022 6:28 pm
Forum: Plugin Development Support
Topic: [HL2:DM] Jetpack use in [BMS]
Replies: 5
Views: 3214

Re: [HL2:DM] Jetpack use in [BMS]

That error is caused, because the game doesn't have that property, when it tries get the property that doesn't exists, it causes that value error
by cssbestrpg
Mon May 02, 2022 9:33 am
Forum: Plugin Requests
Topic: HL2:NPC HEADSHOT
Replies: 6
Views: 9742

Re: HL2:NPC HEADSHOT

Does the overlay/sound need to happen when headshot the npc?
Can you give me list of the npc to work on?
by cssbestrpg
Sat Apr 30, 2022 2:55 pm
Forum: Plugin Requests
Topic: HL2:NPC HEADSHOT
Replies: 6
Views: 9742

Re: HL2:NPC HEADSHOT

Is there a way to be able to use the headshot sound and overlay from https://forums.sourcepython.com/viewtopic.php?f=37&t=1372&start=60 for the hl2 npc's ?. Like the npc_combine_s, combine_soldier, combine_soldier_prisonguard, combine_super_soldier, police. These are not bots, they are from...

Go to advanced search