Search found 279 matches

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

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

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

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

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

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

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

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

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

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

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

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

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&...
by cssbestrpg
Thu Apr 13, 2023 6:26 pm
Forum: Plugin Requests
Topic: stirni_chat_bot evescriscrip
Replies: 24
Views: 3893

Re: stirni_chat_bot evescriscrip

I didn't fully managed make it bug free. Lastest version, but i don't remember what remaining issues i have on that code. Since i did manage to get it respond messages when typed in chat.
by cssbestrpg
Tue Mar 21, 2023 6:46 pm
Forum: Plugin Development Support
Topic: [Cs:s] SpawnPoints
Replies: 7
Views: 539

Re: [Cs:s] SpawnPoints

What about ConfigFile instead? from core import ConfigFile from engines.server import global_vars from mathlib import Vector from path import Path for spawnpoint in ConfigFile( Path(__file__).parent / 'spawnpoints' / f'{global_vars.map_name}.txt' ): print(Vector&...
by cssbestrpg
Tue Mar 21, 2023 11:37 am
Forum: Plugin Development Support
Topic: [Cs:s] SpawnPoints
Replies: 7
Views: 539

Re: [Cs:s] SpawnPoints

I have updated the code, but i got an other issue. It keep giving me this error: [SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\packages\source-python\listeners\tick.py", line 79, in _tick self.pop(0).execute() File "..\addons\source-python\...
by cssbestrpg
Mon Mar 20, 2023 4:52 pm
Forum: Plugin Development Support
Topic: [Cs:s] SpawnPoints
Replies: 7
Views: 539

[Cs:s] SpawnPoints

hi, i have issue with my code, i have been trying make spawnpoints plugin that it get spawn point cordinates from ini file. Here is the code: import path from configobj import ConfigObj from mathlib import Vector from entities.entity import Entity from listeners import OnLevelInit from listeners.tic...
by cssbestrpg
Wed Mar 15, 2023 8:21 pm
Forum: Plugin Development Support
Topic: [Cs:s] Players Chat
Replies: 3
Views: 435

Re: [Cs:s] Players Chat

The core.Tokenize class did the trick.

Is there anything else that can improve of the SayFilter code?
by cssbestrpg
Tue Mar 14, 2023 3:29 pm
Forum: Plugin Development Support
Topic: [Cs:s] Players Chat
Replies: 3
Views: 435

[Cs:s] Players Chat

Hi, i have plugin that modifies players chat, but i noticed small issue with it. Sometimes when use non english letters like: ö ä å, sometimes the chat changes like: [New] playername: miss ä sä sit oot töissä but it suppose to show: [New] playername: missä sä sit oot töissä, only appers happens when...
by cssbestrpg
Thu Feb 02, 2023 7:38 pm
Forum: Plugin Requests
Topic: stirni_chat_bot evescriscrip
Replies: 24
Views: 3893

Re: stirni_chat_bot evescriscrip

The platform shouldn't make any difference, i am currently testing the plugin in windows server, so far only 1 bot joined with 4 bots

Edit:
13 minutes tested and still extra bots didn't join
by cssbestrpg
Thu Feb 02, 2023 7:24 pm
Forum: Plugin Requests
Topic: stirni_chat_bot evescriscrip
Replies: 24
Views: 3893

Re: stirni_chat_bot evescriscrip

cut-magic wrote:I just saw that the bot connect several times now I have more than 15 bot in spectator

Just tested in css, it works fine for me, only one bot joined.
Here is fixed version of the code.

Go to advanced search