Search found 288 matches
- Fri Apr 26, 2024 8:30 pm
- Forum: Plugin Development Support
- Topic: [CS:S] Scope Detecting
- Replies: 0
- Views: 6279
[CS:S] Scope Detecting
hi, i am trying to detect if player scoped weapon, but it gives an error from filters.players import PlayerIter from listeners.tick import Repeat def load(): laser_aiming.start(1) def unload(): laser_aiming.stop() alive_players = PlayerIter(['alive', '...
- Wed Jan 17, 2024 9:38 am
- Forum: Plugin Requests
- Topic: HL2DM: Strider resolver
- Replies: 3
- Views: 9508
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...
- Fri Jan 12, 2024 1:48 pm
- Forum: Plugin Requests
- Topic: HL2DM: Strider resolver
- Replies: 3
- Views: 9508
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...
- Mon Oct 30, 2023 6:58 pm
- Forum: Plugin Releases
- Topic: [Cs:s] Throwing Knives
- Replies: 0
- Views: 38794
- Tue Sep 12, 2023 12:40 pm
- Forum: Plugin Development Support
- Topic: [CS:S] Map Download
- Replies: 5
- Views: 33422
Re: [CS:S] Map Download
Well i got it working after installing other python package to deal rar files
- Mon Sep 11, 2023 6:36 pm
- Forum: Plugin Development Support
- Topic: [CS:S] Map Download
- Replies: 5
- Views: 33422
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...
- Sat Sep 09, 2023 9:05 pm
- Forum: Plugin Development Support
- Topic: [CS:S] Map Download
- Replies: 5
- Views: 33422
[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...
- 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: 22474
[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 ...
- Thu Aug 03, 2023 4:13 pm
- Forum: Plugin Development Support
- Topic: CSGO: Bot waypoints real time manipulation
- Replies: 11
- Views: 31780
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...
- Sat May 06, 2023 6:09 pm
- Forum: General Discussion
- Topic: Cant load csgo server because unknown command "sp" and more
- Replies: 6
- Views: 18412
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
If did pm me with steam profile here then, so i can help via steam to install Source.Python properly
- Sat May 06, 2023 6:12 am
- Forum: General Discussion
- Topic: Cant load csgo server because unknown command "sp" and more
- Replies: 6
- Views: 18412
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.
- Fri May 05, 2023 7:13 pm
- Forum: General Discussion
- Topic: Cant load csgo server because unknown command "sp" and more
- Replies: 6
- Views: 18412
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
- Thu Apr 27, 2023 12:25 pm
- Forum: Plugin Requests
- Topic: HL2DM: Bots on and off
- Replies: 11
- Views: 27853
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...
- Tue Apr 25, 2023 4:16 pm
- Forum: Plugin Requests
- Topic: HL2DM: Bots on and off
- Replies: 11
- Views: 27853
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.
- Tue Apr 25, 2023 9:30 am
- Forum: Plugin Development Support
- Topic: [CS:S/CS:GO] FTPLIB
- Replies: 2
- Views: 13360
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...
- Mon Apr 24, 2023 6:44 pm
- Forum: Plugin Development Support
- Topic: [CS:S/CS:GO] FTPLIB
- Replies: 2
- Views: 13360
[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...
- Sun Apr 23, 2023 1:55 pm
- Forum: Plugin Requests
- Topic: HL2DM: Bots on and off
- Replies: 11
- Views: 27853
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')
- Thu Apr 20, 2023 6:01 pm
- Forum: Plugin Requests
- Topic: HL2DM custom bot weapons
- Replies: 7
- Views: 12847
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...
- Thu Apr 20, 2023 5:26 pm
- Forum: Plugin Requests
- Topic: HL2DM custom bot weapons
- Replies: 7
- Views: 12847
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(...
- Thu Apr 20, 2023 5:21 pm
- Forum: Plugin Requests
- Topic: HL2DM custom bot weapons
- Replies: 7
- Views: 12847
Re: HL2DM custom bot weapons
Hi, do you mean that bots would spawn with the random custom weapons?