Search found 305 matches

by cssbestrpg
Fri Jul 12, 2024 9:41 am
Forum: Plugin Requests
Topic: HL2/HL2DM weapon laser
Replies: 4
Views: 249

Re: HL2/HL2DM weapon laser

Try this(Untested): from effects import TempEntity from engines.precache import Model from entities.entity import Entity from filters.players import PlayerIter from listeners.tick import Repeat def load(): laser_aiming.start(repeat_timer) def unload(): laser_aiming.stop(&...
by cssbestrpg
Thu Jul 11, 2024 8:54 pm
Forum: Plugin Requests
Topic: HL2/HL2DM weapon laser
Replies: 4
Views: 249

Re: HL2/HL2DM weapon laser

Tomorrow(after work) or saturday i will make it.
Should the user who is wearing weapon: weapon_pistol only see the laser or everyone?
Also should it also make damage to victim(where the laser aims at)?
If makes damage, how much it would make damage then?
by cssbestrpg
Fri Jun 28, 2024 11:32 am
Forum: Plugin Requests
Topic: advertisment - remake
Replies: 16
Views: 1601

Re: advertisment - remake

Try this one, it might fix the issue(non tested) # Time import time # Color from colors import GREEN # Commands from commands.say import SayCommand from commands.client import ClientCommand # Contexlib from contextlib import contextmanager # Cvar from cvars import ConVar # Entity from entities.entit...
by cssbestrpg
Thu Jun 27, 2024 9:21 am
Forum: Plugin Requests
Topic: advertisment - remake
Replies: 16
Views: 1601

Re: advertisment - remake

I'll take a look at it when i have time, maybe today at evening or tomorrow
by cssbestrpg
Sun Jun 23, 2024 6:22 pm
Forum: Plugin Requests
Topic: advertisment - remake
Replies: 16
Views: 1601

Re: advertisment - remake

This fixes timeleft, i was hoping use gamerules for getting timeleft automatically, but it doesn't appear work or i am doing something wrong with gamerules. # Time import time # Color from colors import GREEN # Commands from commands.say import SayCommand from commands.client import ClientCommand # ...
by cssbestrpg
Sun Jun 23, 2024 8:02 am
Forum: Plugin Requests
Topic: advertisment - remake
Replies: 16
Views: 1601

Re: advertisment - remake

I think this should fix it # Time import time # Color from colors import GREEN # Commands from commands.say import SayCommand from commands.client import ClientCommand # Contexlib from contextlib import contextmanager # Cvar from cvars import ConVar # Engine from engines.gamerules import find_game_r...
by cssbestrpg
Sat Jun 22, 2024 8:46 pm
Forum: Plugin Requests
Topic: advertisment - remake
Replies: 16
Views: 1601

Re: advertisment - remake

Fixed the error in here # Time import time # Color from colors import GREEN # Commands from commands.say import SayCommand from commands.client import ClientCommand # Contexlib from contextlib import contextmanager # Cvar from cvars import ConVar # Engine from engines.gamerules import find_game_rule...
by cssbestrpg
Sat Jun 22, 2024 7:34 pm
Forum: Plugin Requests
Topic: advertisment - remake
Replies: 16
Views: 1601

Re: advertisment - remake

This should display player rank when joins(untested), but it doesn't show location since it requires a custom package # Time import time # Color from colors import GREEN # Commands from commands.say import SayCommand from commands.client import ClientCommand # Contexlib from contextlib import contex...
by cssbestrpg
Sat Jun 22, 2024 3:37 pm
Forum: Plugin Requests
Topic: advertisment - remake
Replies: 16
Views: 1601

Re: advertisment - remake

This should colorize type word to blue and the cmd itself to green for the country showing and showing rank position it would need to integrated to the rank plugin, for that would need the rank plugin code from itertools import cycle from colors import GREEN, BLUE from listeners.tick import Repeat f...
by cssbestrpg
Tue Jun 18, 2024 8:09 pm
Forum: Plugin Requests
Topic: [HL2:DM] Deathmsg Help
Replies: 53
Views: 56340

Re: [HL2:DM] Deathmsg Help

Fixed here the error # ============================================================================= # >> IMPORTS # ============================================================================= from colors import RED, YELLOW from events import Event from messages import HudMsg, SayText2 from players...
by cssbestrpg
Tue Jun 18, 2024 5:16 pm
Forum: Plugin Requests
Topic: [HL2:DM] Deathmsg Help
Replies: 53
Views: 56340

Re: [HL2:DM] Deathmsg Help

You mean show it in chat like: killer.name has killed victim.name with slam for example? Edit: Added show chat message same time when kills player # ============================================================================= # >> IMPORTS # ==========================================================...
by cssbestrpg
Tue Jun 18, 2024 5:15 pm
Forum: General Discussion
Topic: Can't install required libraries for SP on Ubuntu 22.
Replies: 5
Views: 1361

Re: Can't install required libraries for SP on Ubuntu 22.

I guess you could download this one i use.
It goes to server root folder(where is cstrike folder located for example) /bin
by cssbestrpg
Wed Jun 05, 2024 6:02 am
Forum: Plugin Development Support
Topic: [CS:S] Scope Detecting
Replies: 7
Views: 17857

Re: [CS:S] Scope Detecting

from enum import IntEnum from players.entity import Player from filters.weapons import WeaponClassIter snipers = {weapon.name for weapon in WeaponClassIter('sniper')} class WeaponMode(IntEnum): PRIMARY = 0 SECONDARY = 1 MAX = 2 class MyPlayer(Player): caching = True ...
by cssbestrpg
Wed Jun 05, 2024 6:01 am
Forum: General Discussion
Topic: Source.Python cannot be installed (CSS)
Replies: 2
Views: 807

Re: Source.Python cannot be installed (CSS)

I tried to install Source.Python on the CSS server, but when I enter the command "sp", an error appears: Unknown command "sp". I did everything according to the instructions and I don't understand what the problem is. :frown: What is the error? Can you paste the error using: [co...
by cssbestrpg
Sun Jun 02, 2024 6:21 pm
Forum: Plugin Development Support
Topic: [CS:S] Scope Detecting
Replies: 7
Views: 17857

Re: [CS:S] Scope Detecting

I was actually thinking using weapon_zoom event for it, using a custom player class to check pressed scope status and use weapon_switch hook for reset scope status, i haven't touch this code a while due to being busy on working other stuff, but thanks for replies:)
by cssbestrpg
Thu May 30, 2024 11:27 am
Forum: Plugin Development Support
Topic: [CS:S] Scope Detecting
Replies: 7
Views: 17857

Re: [CS:S] Scope Detecting

Hello, that alive_players i defined always loop alive human players, it always loop there alive human players only
by cssbestrpg
Fri Apr 26, 2024 8:30 pm
Forum: Plugin Development Support
Topic: [CS:S] Scope Detecting
Replies: 7
Views: 17857

[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', '...
by cssbestrpg
Wed Jan 17, 2024 9:38 am
Forum: Plugin Requests
Topic: HL2DM: Strider resolver
Replies: 3
Views: 13524

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

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...

Go to advanced search