Search found 287 matches

by cssbestrpg
Sun Aug 08, 2021 2:30 pm
Forum: Plugin Development Support
Topic: [Cs:s] Drug Command
Replies: 4
Views: 3470

Re: [Cs:s] Drug Command

Thanks for the hints, i have updated the code include them.
by cssbestrpg
Sat Aug 07, 2021 9:35 pm
Forum: Plugin Releases
Topic: [CS:S/CSGO] Zombie
Replies: 21
Views: 26689

Re: [CS:S/CSGO] Zombie

Update:
- Cleaned a lot code
- Changed more code reuse Player class
- Fixed some bugs
- Added in hudhint message a better get target system show info
- Changed credits way for zprops(Removed about 300lines of code)
by cssbestrpg
Sat Aug 07, 2021 9:08 am
Forum: Plugin Development Support
Topic: [Cs:s] Drug Command
Replies: 4
Views: 3470

Re: [Cs:s] Drug Command

Thanks for your help, i made small code changes to get it work properly Got it work with this: def drug(user, times=8, count=0): if rpglib.isAlive(user): count += 1 r = random.randint(0, 255) g = random.randint(0, 255) b = random.randint(0, 255) a = random.ran...
by cssbestrpg
Fri Aug 06, 2021 10:32 pm
Forum: Plugin Development Support
Topic: [Cs:s] Drug Command
Replies: 4
Views: 3470

[Cs:s] Drug Command

Hi guys, i have a issue with drug i can't get it work properly. I tried make old eventscripts code in Source.Python. Eventscripts part def drug(user, times=8, count=0): if isAlive(user): count += 1 r = random.randint(0, 255) g = random.randint(0, 255) b = random.randi...
by cssbestrpg
Tue Aug 03, 2021 8:02 am
Forum: Plugin Releases
Topic: [Cs:s] Zombie Riot
Replies: 16
Views: 19395

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

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

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

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

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

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

[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: 6
Views: 9646

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: 17
Views: 8274

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: 17
Views: 8274

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

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
Sat Jun 05, 2021 3:03 pm
Forum: Plugin Development Support
Topic: [Cs:s] How to get buying weapon price
Replies: 4
Views: 2958

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

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

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

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

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

Go to advanced search