Search found 287 matches

by cssbestrpg
Wed Jan 17, 2024 9:38 am
Forum: Plugin Requests
Topic: HL2DM: Strider resolver
Replies: 3
Views: 2888

Re: HL2DM: Strider resolver

Try this one instead: from listeners.tick import Repeat from filters.entities import EntityIter strider = EntityIter('npc_strider') delay = 1.0 def load(): check_dead_strider.start(delay) def unload(): check_dead_strider.stop() @Repeat def check_dead_s...
by cssbestrpg
Fri Jan 12, 2024 1:48 pm
Forum: Plugin Requests
Topic: HL2DM: Strider resolver
Replies: 3
Views: 2888

Re: HL2DM: Strider resolver

Try this one (Untested) from entities.entity import Entity from events import Event @Event('entity_killed') def entity_killed(args): try: entity = Entity(args['entindex_killed']) except ValueError: return classname = entity.classname if not classname == 'n...
by cssbestrpg
Mon Oct 30, 2023 6:58 pm
Forum: Plugin Releases
Topic: [Cs:s] Throwing Knives
Replies: 0
Views: 27640

[Cs:s] Throwing Knives

Hi, this plugin allows you trow knives the location you are looking at.

Download
by cssbestrpg
Tue Sep 12, 2023 12:40 pm
Forum: Plugin Development Support
Topic: [CS:S] Map Download
Replies: 5
Views: 26791

Re: [CS:S] Map Download

Well i got it working after installing other python package to deal rar files
by cssbestrpg
Mon Sep 11, 2023 6:36 pm
Forum: Plugin Development Support
Topic: [CS:S] Map Download
Replies: 5
Views: 26791

Re: [CS:S] Map Download

I tried with rarfile, but i am having now an other issue. Here is the code: import os import urllib import shutil from rarfile import RarFile from zipfile import ZipFile, is_zipfile from paths import GAME_PATH from urllib.request import urlopen from commands.say import SayCommand DOWNLOADED_FILE = G...
by cssbestrpg
Sat Sep 09, 2023 9:05 pm
Forum: Plugin Development Support
Topic: [CS:S] Map Download
Replies: 5
Views: 26791

[CS:S] Map Download

Hi, i have issues with my code, i tried make a code that downloads a map and extract it to maps folder when type the map url adress, the issue i can't get the extract part to work. Here is the code i tried: import os, urllib, shutil from paths import GAME_PATH from urllib import request from command...
by cssbestrpg
Mon Aug 21, 2023 5:36 pm
Forum: Plugin Development Support
Topic: [CS:S] Forcing players fire weapon when they are secondaries
Replies: 1
Views: 15932

[CS:S] Forcing players fire weapon when they are secondaries

Hi, i have got an issue with OnPlayerRunCommand, when i try to force player fire his weapon secondary, but it only fires it once and doesn't work anymore. Its suppose to keep firing the weapon, but if i change code to fire only primaries it works fine without any issues, so do you have any clue why ...
by cssbestrpg
Thu Aug 03, 2023 4:13 pm
Forum: Plugin Development Support
Topic: CSGO: Bot waypoints real time manipulation
Replies: 11
Views: 24658

Re: CSGO: Bot waypoints real time manipulation

Hey, guys, can someone help me out with this thing? I believe the game identifier have changed (at least for Linux). I used this code from Ayuto's example above. IDENTIFIER = b'\x55\x89\xE5\x8B\x55\x0C\x8B\x45\x08\x8B\x0A\x89\x88\x2A\x2A\x2A\x2A\x8B\x4A\x04\x89\x88\x2A\x2A\x2A\x2A\x8B\x52\x08\x...
by cssbestrpg
Sat May 06, 2023 6:09 pm
Forum: General Discussion
Topic: Cant load csgo server because unknown command "sp" and more
Replies: 6
Views: 11269

Re: Cant load csgo server because unknown command "sp" and more

Did you try fresh download from downloads?
If did pm me with steam profile here then, so i can help via steam to install Source.Python properly
by cssbestrpg
Sat May 06, 2023 6:12 am
Forum: General Discussion
Topic: Cant load csgo server because unknown command "sp" and more
Replies: 6
Views: 11269

Re: Cant load csgo server because unknown command "sp" and more

For example if want install source-python to css, you need extract the files at cstrike folder. For csgo you need extract the files at csgo folder.
by cssbestrpg
Fri May 05, 2023 7:13 pm
Forum: General Discussion
Topic: Cant load csgo server because unknown command "sp" and more
Replies: 6
Views: 11269

Re: Cant load csgo server because unknown command "sp" and more

It appears you have installed incorrectly source-python, since its missinng LangStrings which it is included by default. Eventscripts doesn't work in csgo. Only Ayutos eventscripts-emulator works in csgo
by cssbestrpg
Thu Apr 27, 2023 12:25 pm
Forum: Plugin Requests
Topic: HL2DM: Bots on and off
Replies: 11
Views: 23433

Re: HL2DM: Bots on and off

Well, if nothing works, try delaying queue_command_string command. May be plugin switches bots after our command command. Also, debug this switch and look, if it at least runs Ok can you show me what to do on here please, i am just trying to have my hrcbots (hurricane bots ) able to turn on and off...
by cssbestrpg
Tue Apr 25, 2023 4:16 pm
Forum: Plugin Requests
Topic: HL2DM: Bots on and off
Replies: 11
Views: 23433

Re: HL2DM: Bots on and off

Weird, that code should execute the command turn on bots when map isn't gg one when new map starts.
by cssbestrpg
Tue Apr 25, 2023 9:30 am
Forum: Plugin Development Support
Topic: [CS:S/CS:GO] FTPLIB
Replies: 2
Views: 9688

Re: [CS:S/CS:GO] FTPLIB

It gave different error: [2023-04-25 12:29:25]: ftp.storbinary(f'STOR {maps}', maps) [2023-04-25 12:29:25]: File "../addons/source-python/Python3/ftplib.py", line 504, in storbinary [2023-04-25 12:29:25]: buf = fp.read(blocksize) [2023-04-25 12:29:25]: AttributeError: 'str' object has no a...
by cssbestrpg
Mon Apr 24, 2023 6:44 pm
Forum: Plugin Development Support
Topic: [CS:S/CS:GO] FTPLIB
Replies: 2
Views: 9688

[CS:S/CS:GO] FTPLIB

Hi, i have issue with my code, i tried make code that suppose check each map start is there missing nav file from the fastdownload, if there is missing nav file, it keeps giving me these errors: [SP] Caught an Exception: Traceback (most recent call last): File "../addons/source-python/plugins/f...
by cssbestrpg
Sun Apr 23, 2023 1:55 pm
Forum: Plugin Requests
Topic: HL2DM: Bots on and off
Replies: 11
Views: 23433

Re: HL2DM: Bots on and off

Hi try this code(Untested)

Syntax: Select all

from listeners import OnLevelInit
from engines.server import queue_command_string

@OnLevelInit
def map_start(current_map):
if not current_map.startswith('gg'):
queue_command_string('hrcbot_enabled 1')
by cssbestrpg
Thu Apr 20, 2023 6:01 pm
Forum: Plugin Requests
Topic: HL2DM custom bot weapons
Replies: 7
Views: 8925

Re: HL2DM custom bot weapons

I guess i need to use different method like the other tread where Kami made a code for random weapons for bots Edit : Here is code for other method to give the weapons: import random from events import Event from engines.server import queue_command_string custom_weapons = ['ak47', 'alyxg...
by cssbestrpg
Thu Apr 20, 2023 5:26 pm
Forum: Plugin Requests
Topic: HL2DM custom bot weapons
Replies: 7
Views: 8925

Re: HL2DM custom bot weapons

try this code(Untested) then: import random from events import Event from players.entity import Player custom_weapons = ['weapon_ak47', 'weapon_alyxgun', 'weapon_mp5', 'weapon_oicw', 'weapon_sniper'] @Event('player_spawn') def player_spawn(...
by cssbestrpg
Thu Apr 20, 2023 5:21 pm
Forum: Plugin Requests
Topic: HL2DM custom bot weapons
Replies: 7
Views: 8925

Re: HL2DM custom bot weapons

Hi, do you mean that bots would spawn with the random custom weapons?
by cssbestrpg
Thu Apr 20, 2023 8:55 am
Forum: General Discussion
Topic: Force player to duck
Replies: 4
Views: 10032

Re: Force player to duck

Hi, just tested this code in css it seem to the trick: from listeners import OnPlayerRunCommand from players.constants import PlayerButtons @OnPlayerRunCommand def on_player_run_command(player, user_cmd): if player.dead: return user_cmd.buttons |= PlayerButtons.DUCK player.set_property_bool&...

Go to advanced search