Search found 144 matches

by cssbestrpg
Tue Aug 03, 2021 8:02 am
Forum: Plugin Releases
Topic: [Cs:s] Zombie Riot
Replies: 9
Views: 1576

Re: [Cs:s] Zombie Riot

Update: - Fixed not loading plugin - Added beacon for last zombie - Removed in hudhint showing zombies max health - Added automatic updater to download new version when is available - Added console messages during of updating plugin - Added french translations(Thanks to css player) - Shorten clan_ta...
by cssbestrpg
Tue Jul 27, 2021 7:13 pm
Forum: Plugin Development Support
Topic: [Cs:s] Effects showing certain user
Replies: 10
Views: 375

Re: [Cs:s] Effects showing certain user

It wasn't easy to get it working, i did spend few hours and searching some effect code from forum, one effect code i found one post that gave me idea to solve it. I don't think it makes perfomance issue for server, even if all players have enabled effects. One thing still i don't get it, if i would ...
by cssbestrpg
Mon Jul 26, 2021 7:11 pm
Forum: Plugin Development Support
Topic: [Cs:s] Effects showing certain user
Replies: 10
Views: 375

Re: [Cs:s] Effects showing certain user

Edit: Got it working with this: for es in rpg.getEffectUsers(): rpglib.beam(RecipientFilter(es and index_from_userid(es)), _start, _end, 0.2, 30, 1, 2, color[0], color[1], color[2], 255, 'sprites/laser.vmt') Didn't need to change def beam code and def getEffec...
by cssbestrpg
Mon Jul 26, 2021 5:35 pm
Forum: Plugin Development Support
Topic: [Cs:s] Effects showing certain user
Replies: 10
Views: 375

Re: [Cs:s] Effects showing certain user

It uses this: def get_steamid(userid): pEnt = Player(index_from_userid(userid)) steamid = pEnt.steamid if steamid == 'BOT': steamid = 'BOT_%s' % pEnt.name return steamid def is_bot(userid): return get_steamid(userid).startswith('BOT'...
by cssbestrpg
Mon Jul 26, 2021 4:41 pm
Forum: Plugin Development Support
Topic: [Cs:s] Effects showing certain user
Replies: 10
Views: 375

Re: [Cs:s] Effects showing certain user

I guess you could just try and change yield i.userid to yield i.index Well i changed to that, now i get errors: [SP] Caught an Exception: Traceback (most recent call last): File "..\addons\source-python\packages\source-python\events\listener.py", line 92, in fire_game_event callback(game_...
by cssbestrpg
Mon Jul 26, 2021 6:15 am
Forum: Plugin Development Support
Topic: [Cs:s] Effects showing certain user
Replies: 10
Views: 375

Re: [Cs:s] Effects showing certain user

L'In20Cible wrote:Your problem is that you are passing their userid while it should be their index.

Which of my code line i need to passing their index and how to do it properly?
by cssbestrpg
Sun Jul 25, 2021 6:28 pm
Forum: Plugin Development Support
Topic: [Cs:s] Effects showing certain user
Replies: 10
Views: 375

[Cs:s] Effects showing certain user

Hi guys i have a issue of my code when i try make show effect for certain users. When in rpg set effects to off, it works fine that doesn't show effects when is alone, but when other player is and have effects on, i still see the effects even suppose not. Here is the effect code def beam(users, ...
by cssbestrpg
Mon Jul 19, 2021 8:27 am
Forum: Plugin Releases
Topic: Automatic round ender
Replies: 0
Views: 134

Automatic round ender

Hello, guys this a plugin that ends round when round time limit is ended
Only tested in css
https://github.com/srpg/round-end/tree/main
by cssbestrpg
Sat Jul 17, 2021 5:34 pm
Forum: Plugin Requests
Topic: HL2DM - killmessage script
Replies: 18
Views: 1826

Re: HL2DM - killmessage script

I gave it a try and still shows overlay, so i was thinking i had to do something, so changed this def create_overlay(index, overlay): if ENABLE_OVERLAY: player = Player(index) player.client_command('r_screenoverlay %s' % overlay) has_overlay[player.userid] = 0 I changed overlay[player.userid] = 1 t...
by cssbestrpg
Sat Jul 17, 2021 11:40 am
Forum: Plugin Requests
Topic: HL2DM - killmessage script
Replies: 18
Views: 1826

Re: HL2DM - killmessage script

If you mean config option enable overlay/ disable try this one then(Untested): import os from events import Event from colors import Color from players.entity import Player from messages import HudMsg from filters.players import PlayerIter from path import path as Path from configobj import ConfigOb...
by cssbestrpg
Wed Jun 30, 2021 10:08 am
Forum: Plugin Requests
Topic: HL2:DM deathoverlay
Replies: 16
Views: 1117

Re: HL2:DM deathoverlay

Try this one i have made the path so install it correctly when extract the location where addons folder is
https://drive.google.com/file/d/1Q9VQg7wdvjk-3XPNGVTmW9olNeSk5i14/view?usp=sharing

Once you have extracted the files, load command is sp plugin load deathoverlay
by cssbestrpg
Fri Jun 11, 2021 7:20 pm
Forum: Plugin Requests
Topic: [Cs:s] Fast Reload
Replies: 0
Views: 218

[Cs:s] Fast Reload

Hey, can some one make a plugin that would speed up reloading for weapons, with it works automatic reload.
by cssbestrpg
Sat Jun 05, 2021 3:03 pm
Forum: Plugin Development Support
Topic: [Cs:s] How to get buying weapon price
Replies: 4
Views: 281

Re: [Cs:s] How to get buying weapon price

I think the pre-hook for weapon purchasing price should work fine for my use.
Its going to be used my zombie riot plugin(In coming update i haven't release). It doesn't have any hooks that stops the purchasing of the weapon.
Thanks for your help
by cssbestrpg
Fri Jun 04, 2021 4:55 am
Forum: Plugin Development Support
Topic: [Cs:s] How to get buying weapon price
Replies: 4
Views: 281

Re: [Cs:s] How to get buying weapon price

Thanks i got it work with this code:

Syntax: Select all

@EntityPreHook(EntityCondition.is_player, 'buy_internal')
def pre_buy(args):
weapon = 'weapon_'+args[1]
price = (weapon_manager[weapon].cost)
by cssbestrpg
Thu Jun 03, 2021 6:19 pm
Forum: Plugin Development Support
Topic: [Cs:s] How to get buying weapon price
Replies: 4
Views: 281

[Cs:s] How to get buying weapon price

Hi,
how i can get price of current weapon price, when player purchases a weapon?
by cssbestrpg
Wed May 19, 2021 3:56 pm
Forum: Plugin Requests
Topic: Team Join Control
Replies: 9
Views: 734

Re: Team Join Control

Try load it as separate plugin instead of inside of gungame. Just created folder for the plugin and .py file for it.
by cssbestrpg
Thu May 13, 2021 9:11 pm
Forum: Plugin Requests
Topic: HL2:DM deathoverlay
Replies: 16
Views: 1117

Re: HL2:DM deathoverlay

Weird in my side work fine, tested earlier before did post the code, but it might have conflict of some of your plugins you have loaded
by cssbestrpg
Thu May 13, 2021 5:19 pm
Forum: Plugin Releases
Topic: [Cs:s] Zombie Riot
Replies: 9
Views: 1576

Re: [Cs:s] Zombie Riot

Update:
- Added overlays when all zombies are killed or all ct's are dead
by cssbestrpg
Thu May 13, 2021 4:52 pm
Forum: Plugin Requests
Topic: HL2:DM deathoverlay
Replies: 16
Views: 1117

Re: HL2:DM deathoverlay

Great news i manage to fix the code, i just tested it and it works fine from events import Event from players.entity import Player from stringtables.downloads import Downloadables remove_timer = 3 # How long delay will be def load(): dl = Downloadables() dl.add("materials/x/...
by cssbestrpg
Wed May 12, 2021 7:05 pm
Forum: Plugin Requests
Topic: HL2:DM deathoverlay
Replies: 16
Views: 1117

Re: HL2:DM deathoverlay

Well i have edited my post which have the code, updated the path for materials stuff. I hope it now works, if doesn't work, then i have no clue why its not working

Go to advanced search