Updated.
Removed the ConVar listener.
Search found 88 matches
- Fri Nov 04, 2016 6:54 pm
- Forum: Plugin Releases
- Topic: Auto Respawn
- Replies: 22
- Views: 20582
- Fri Nov 04, 2016 4:07 pm
- Forum: Plugin Development Support
- Topic: Admin Chat
- Replies: 4
- Views: 4470
Re: Admin Chat
You can also add a callback that gets called when an unauthorized player tries to execute the command. from commands.typed import TypedClientCommand ... def on_test_failed(command_info, args): NO_PERMISSION_ERROR.send(command_info.index) @TypedSayCommand(TSAY_COMMANDS, ADMIN_CHA...
- Fri Nov 04, 2016 3:44 pm
- Forum: Plugin Development Support
- Topic: Admin Chat
- Replies: 4
- Views: 4470
Re: Admin Chat
I would recommend using TypedSayCommand instead of regular one. It supports permissions out-of-the-box, handles the case with invalid permissions, and has a really convenient way of providing you the arguments. http://wiki.sourcepython.com/developing/module_tutorials/commands.html#using-permissions...
- Fri Nov 04, 2016 3:26 pm
- Forum: Plugin Development Support
- Topic: Admin Chat
- Replies: 4
- Views: 4470
Admin Chat
I started working on this, but since I'm quite new to Python, and Source.Python, I'd love to hear from You guys, and make this better. The plugin will support @, @@(from a player to admins), csay, hsay... Plugin: # ----- Imports --------- # ----- Source.Python --- from config.manager import ConfigMa...
- Thu Nov 03, 2016 6:54 pm
- Forum: Plugin Development Support
- Topic: Removal of print?
- Replies: 25
- Views: 15911
Re: Removal of print?
What is the output you get using the following? import sys from core import console_message console_message(str(sys.stdout)) for x in dir(sys.stdout): console_message(x + ' = ' + str(getattr(sys.stdout, x)) + '\n') It never worked for ...
- Fri Oct 28, 2016 1:09 pm
- Forum: Plugin Releases
- Topic: [CS:GO] AdPurge
- Replies: 3
- Views: 5981
Re: [CS:GO] AdPurge
Nice!
- Sun Oct 23, 2016 11:20 am
- Forum: Plugin Releases
- Topic: Auto Respawn
- Replies: 22
- Views: 20582
Re: Auto Respawn
Ayuto wrote:I guess you got me wrong. You don't need the convar listener. Just remove the convar listener part.
Can You please show me some code to help me understand? Thanks!
- Sat Oct 22, 2016 3:56 pm
- Forum: Plugin Development Support
- Topic: Check if Entity exists
- Replies: 14
- Views: 9043
Re: Check if Entity exists
Maybe try to retrieve the entity Index, If it exists then continue?
- Wed Oct 19, 2016 2:10 pm
- Forum: Plugin Releases
- Topic: Auto Respawn
- Replies: 22
- Views: 20582
Re: Auto Respawn
Ayuto wrote:Kill wrote:L'In20Cible wrote:...
Thanks :)
Updated the plugin, added player check, translation, changed SayText2 and added a ConVar listener.
- Tue Oct 18, 2016 3:38 pm
- Forum: Plugin Releases
- Topic: Auto Respawn
- Replies: 22
- Views: 20582
Re: Auto Respawn
Thanks for the info guys! Cool plugin! Here are few points: ⋅ Instead of having a function that call the spawn method on the passed player, you could simply delay that method to be called: Delay(cvars['autorespawn_delay'].get_int(), player.spawn) However, I would no...
- Tue Oct 18, 2016 1:53 pm
- Forum: Plugin Releases
- Topic: Auto Respawn
- Replies: 22
- Views: 20582
Auto Respawn
About Automatically respawn players after their death. Translation The plugin supports translation( autorespawn at ../resource/source-python/translations) Cvars The plugin will automatically generate a config file (can be found inside the folder ../cfg/source-python) autorespawn_enable 1 // Enable ...
- Sun Oct 09, 2016 2:32 pm
- Forum: General Discussion
- Topic: Source-Python for CS:S
- Replies: 12
- Views: 9587
Re: Source-Python for CS:S
You're doing something wrong my friend, add -debug to your startup cmdline, I've it running just fine.
- Sat Oct 08, 2016 11:29 pm
- Forum: Whatever
- Topic: Happy Birthday La Muerte and NightHawk!
- Replies: 2
- Views: 5915
Happy Birthday La Muerte and NightHawk!
Happy birthday to You lads, wish long and prosper life!
- Sat Oct 08, 2016 7:58 pm
- Forum: Plugin Development Support
- Topic: List all players except menu selector
- Replies: 2
- Views: 2765
Re: List all players except menu selector
iPlayer wrote:Given you have the index of the player who perfomed menu selection, you can do thisSyntax: Select all
for player in PlayerIter("all"):
if player.index != index:
my_menu.append(player.name)
Hmmm, I tried that, but was using the wrong arg... Thanks!
- Sat Oct 08, 2016 7:22 pm
- Forum: Plugin Development Support
- Topic: List all players except menu selector
- Replies: 2
- Views: 2765
List all players except menu selector
Hello, I've been trying to do so without success, how is it possible to show all the players in a menu except the player who made the menu selection? for player in PlayerIter("all"): my_menu.append(player.name) # Show all the player except the player who made the selection
- Sat Sep 24, 2016 11:18 pm
- Forum: Custom Packages
- Topic: Custom Communication Port (CCP)
- Replies: 1
- Views: 22548
Re: Custom Communication Port (CCP)
This is amazing, well done iPlayer!
- Sat Sep 24, 2016 7:23 pm
- Forum: Plugin Releases
- Topic: Bomb Money
- Replies: 8
- Views: 9293
Re: Bomb Money
Since you don't have a repo for this, I'll post Russian translations here [bomb_plant_reward] en = "{cp} You have been given {color}{money}$\x01 for planting the bomb." es = "{cp} Has ganado {color}{money}$\x01 por plantar la bomba." ru = "{cp} Вам были начислены {color}${m...
- Fri Sep 23, 2016 8:28 pm
- Forum: General Discussion
- Topic: Builds > Download
- Replies: 2
- Views: 3196
Builds > Download
Hello,
I believe it's pretty confusing to find a download link, why not make the main domain(sourcepython.com) a download page, with builds... etc, and put the forum, wiki... links there?
I believe it's pretty confusing to find a download link, why not make the main domain(sourcepython.com) a download page, with builds... etc, and put the forum, wiki... links there?
Re: Sphinx
Yes, it is! Checkout the "Contributing" page: http://wiki.sourcepython.com/contributing/contributing.html#contributing-to-the-wiki Awesome, thanks! There is some warnings when the build process is complete: [SP] Encountered a Warning: File '..addons\source-python\packages\site-packages\sp...
- Wed Sep 21, 2016 9:51 am
- Forum: General Discussion
- Topic: ArcRPG: Proof of concept
- Replies: 23
- Views: 17260
Re: ArcRPG: Proof of concept
omg bots wrecking You.
Well done on ArcRPG!
Well done on ArcRPG!