Search found 317 matches

by cssbestrpg
Tue Aug 30, 2022 10:55 am
Forum: Plugin Development Support
Topic: Error with bots and PlayerDictionary
Replies: 8
Views: 19272

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: 12725

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: 69082

[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: 16339

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: 16339

[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: 18973

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: 72499

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: 18973

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: 72499

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: 72499

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...
by cssbestrpg
Mon Apr 18, 2022 6:06 pm
Forum: Plugin Development Support
Topic: [Cs:s] Hook remaining time of the map
Replies: 7
Views: 26135

Re: [Cs:s] Hook remaining time of the map

You don't necessarily need a signature for that: from cvars import ConVar from engines.gamerules import find_game_rules from engines.server import global_vars mp_timelimit = ConVar('mp_timelimit') def get_map_remaining_time(): """Returns the remaining time for...
by cssbestrpg
Thu Apr 14, 2022 2:38 pm
Forum: Plugin Development Support
Topic: [Cs:s] Hook remaining time of the map
Replies: 7
Views: 26135

Re: [Cs:s] Hook remaining time of the map

Ah, in that case you don't want to hook the function, but you want to call it instead. Usually, you only hook functions if you want to modify their behaviour. Try this: import memory from memory import Convention, DataType from engines.gamerules import find_gamerules from commands.typed import Type...
by cssbestrpg
Thu Apr 14, 2022 11:39 am
Forum: Plugin Development Support
Topic: [Cs:s] Hook remaining time of the map
Replies: 7
Views: 26135

Re: [Cs:s] Hook remaining time of the map

I would want it show remaining time of the map, when type in chat timeleft
by cssbestrpg
Wed Apr 13, 2022 6:59 pm
Forum: Plugin Releases
Topic: [Cs:s] Warm Up
Replies: 1
Views: 56464

Re: [Cs:s] Warm Up

Update:
- Fixed bots were able to purchase weapons
by cssbestrpg
Tue Apr 12, 2022 5:12 pm
Forum: Plugin Requests
Topic: HL2:DM Activate sounds
Replies: 4
Views: 54453

Re: HL2:DM Activate sounds

Hi, try this one(Untested) import random from events import Event from engines.sound import Sound from players.helpers import index_from_userid sounds = { "music/HL1_song3.mp3", "music/HL1_song5.mp3", "music/HL1_song6.mp3", "music/HL1_song9.mp3", "music/...
by cssbestrpg
Tue Apr 12, 2022 11:17 am
Forum: Plugin Requests
Topic: HL2:DM Activate sounds
Replies: 4
Views: 54453

Re: HL2:DM Activate sounds

Hi, try this one(Untested) import random from events import Event from engines.sound import Sound from players.helpers import index_from_userid sounds = { "music/HL1_song3.mp3", "music/HL1_song5.mp3", "music/HL1_song6.mp3", "music/HL1_song9.mp3", "music/H...
by cssbestrpg
Mon Apr 11, 2022 6:10 pm
Forum: Plugin Releases
Topic: [Cs:s] Warm Up
Replies: 1
Views: 56464

[Cs:s] Warm Up

Hi guys, this plugin adds warm up at begininng of map.

The warmup have 3 different one:
1. Knife Only
2. Deagle Only
3. Hegrenade Only
by cssbestrpg
Mon Apr 11, 2022 2:12 pm
Forum: Plugin Development Support
Topic: [Cs:s] Hook remaining time of the map
Replies: 7
Views: 26135

[Cs:s] Hook remaining time of the map

Hi guys, i have issue to hook properly remaining time for my linux server. I have tried to hook: [CCSGameRules::GetMapRemainingTime] shortname = "GetMapRemainingTime" sig = " 55 8B EC 51 8B 15 2A 2A 2A 2A 56 8B F1 8B 0D 2A 2A 2A 2A 81" symbol = "_ZN12CCSGameRules19GetMapRema...
by cssbestrpg
Sat Apr 09, 2022 6:59 pm
Forum: Plugin Requests
Topic: HL2:DM - HRCBOT CONTROL
Replies: 2
Views: 25424

Re: HL2:DM - HRCBOT CONTROL

Does the bots have server command to set the bots amount(I don't have hl2dm server, so i don't know how to set bots amount in hl2dm)
If have, type the command then i might be able to make the code for it
by cssbestrpg
Fri Apr 08, 2022 3:29 pm
Forum: Plugin Releases
Topic: Automatic round ender
Replies: 6
Views: 73881

Re: Automatic round ender

Update:
- Added checker for bombsite & hostage rescue zone
- If doesn't find bombsite & hostage rescue zone, automatic round ender triggers(when round time ends)

Go to advanced search