Search found 261 matches
- Mon Dec 21, 2020 6:40 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] Zombie Plugin
- Replies: 6
- Views: 3211
Re: [Cs:s] Zombie Plugin
Sorry, I totally forgot to check infecting new players :D Try this: import os import random import path from events import Event from listeners.tick import Delay from players.entity import Player from players.helpers import index_from_userid from filters.players import PlayerIter from entities.entit...
- Mon Dec 21, 2020 4:59 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] Zombie Plugin
- Replies: 6
- Views: 3211
Re: [Cs:s] Zombie Plugin
I tried to clean the code up a bit, it should work as you intended now. import os import random import path from events import Event from listeners.tick import Delay from players.entity import Player from players.helpers import index_from_userid from filters.players import PlayerIter from entities.e...
- Mon Dec 21, 2020 4:21 pm
- Forum: Plugin Requests
- Topic: HL2DM-scoreboard and stats
- Replies: 39
- Views: 61001
Re: HL2DM-scoreboard and stats
Oh okay, yeah then delete the stats/player.db
- Mon Dec 21, 2020 4:04 pm
- Forum: Plugin Requests
- Topic: HL2DM-scoreboard and stats
- Replies: 39
- Views: 61001
Re: HL2DM-scoreboard and stats
Oh sorry, I forgot to mention, you need to remove the old database, as I added a new table (npc_kills) to it.
You can find it under "addons/sourcepython/data/plugins/scoreboard/players.db"
You can find it under "addons/sourcepython/data/plugins/scoreboard/players.db"
- Mon Dec 21, 2020 3:27 pm
- Forum: Plugin Requests
- Topic: HL2DM-scoreboard and stats
- Replies: 39
- Views: 61001
Re: HL2DM-scoreboard and stats
Added NPC Kills to the stats.
I also tried to fix the KeyError, let me know if it works.
I also tried to fix the KeyError, let me know if it works.
- Mon Dec 21, 2020 2:52 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] Zombie Plugin
- Replies: 6
- Views: 3211
Re: [Cs:s] Zombie Plugin
Hey, I added some lines in your infect() function to change everyone but the Zombie to the CT team :) Edit: I also moved the restriction to the actual infection function. Otherwise a person could spawn as a T, have his weapons restricted and then be switched to CT. import os import random import pat...
- Mon Dec 21, 2020 10:10 am
- Forum: Plugin Requests
- Topic: HL2DM-scoreboard and stats
- Replies: 39
- Views: 61001
Re: HL2DM-scoreboard and stats
Error should be fixed now. Kami, Good to see you I remember you bank when you helped me fix some issues in WCS . Is it allot of trouble to add "Killed NPC's" or that Postal part , just askenI know im asking allot of your time ... Thanks for you good work /Peace The problem with this is, th...
- Mon Dec 21, 2020 12:25 am
- Forum: Plugin Requests
- Topic: HL2DM-scoreboard and stats
- Replies: 39
- Views: 61001
Re: HL2DM-scoreboard and stats
Updated the plugin to fix the error.
- Sun Dec 20, 2020 10:47 pm
- Forum: Plugin Requests
- Topic: HL2DM-scoreboard and stats
- Replies: 39
- Views: 61001
Re: HL2DM-scoreboard and stats
That happens when you damage yourself I think. I updated the plugin to fix that error.
- Sun Dec 20, 2020 9:35 pm
- Forum: Plugin Requests
- Topic: HL2DM-scoreboard and stats
- Replies: 39
- Views: 61001
Re: HL2DM-scoreboard and stats
Hey guys, I tried my best to recreate the screenshot. Painkiller uses a bigger mod which adds things like "postal" and "sensei" which I did not include. This plugin is focused on functionality and the code is quite messy/unorganized. If anyone is willing to clean it up he/she is ...
- Sun Dec 20, 2020 12:40 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] How to block weapon pick up
- Replies: 4
- Views: 2670
Re: [Cs:s] How to block weapon pick up
Hey, I think SourcePython has exactly the functionality you are looking for.
http://wiki.sourcepython.com/developing ... strictions
http://wiki.sourcepython.com/developing ... strictions
- Sat Dec 19, 2020 9:01 am
- Forum: Plugin Requests
- Topic: [HL2:DM] Deathmsg Help
- Replies: 47
- Views: 48159
Re: [HL2:DM] Deathmsg Help
Hi guys , For some reason when i make and change to channel or color and re precasche restarting the server and join it , it crashes me out of game to the desktop unless i restart the server again , there is something in this script doing this /Peace I don't think that the deathmsg plugin is respon...
- Fri Dec 18, 2020 9:51 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Deathmsg Help
- Replies: 47
- Views: 48159
Re: [HL2:DM] Deathmsg Help
To show the message to everyone you just do .send()
But in that case you should not use the same channel for the two messages, as the top message will overwrite the deathmsg for the victim if you use the same channel.
But in that case you should not use the same channel for the two messages, as the top message will overwrite the deathmsg for the victim if you use the same channel.
- Fri Dec 18, 2020 9:19 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Deathmsg Help
- Replies: 47
- Views: 48159
Re: [HL2:DM] Deathmsg Help
I updated the plugin so it uses a dictionary now. If you want to add weapons you just add them to the dictionary and if it exists it will show the name you gave it in the dictionary. I'm not sure how the custom weapons work, so I don't know if they are recognized by the player_death event. # =======...
- Fri Dec 18, 2020 6:49 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Deathmsg Help
- Replies: 47
- Views: 48159
Re: [HL2:DM] Deathmsg Help
If you let me know what the weapon is called I can add it for you.
The entity name (weapon_?) and the actual name you give the weapon.
The entity name (weapon_?) and the actual name you give the weapon.
- Fri Dec 18, 2020 5:47 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Deathmsg Help
- Replies: 47
- Views: 48159
Re: [HL2:DM] Deathmsg Help
The plugin uses a very cheap way to create the messages. Instead of having an automated system to check for the weapon every weapon name is hardcoded into the plugin. If you want to add a weapon name you'll need to know the weapon entity name and then add it to the big "elif" block in the ...
- Fri Dec 18, 2020 5:27 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Deathmsg Help
- Replies: 47
- Views: 48159
Re: [HL2:DM] Deathmsg Help
Who should see the "who killed who" message? Right now it's set so only the killer sees it. Or do you want the whole message removed for everybody? This should fix your error: # ============================================================================= # >> IMPORTS # ===================...
- Fri Dec 18, 2020 5:45 am
- Forum: Plugin Requests
- Topic: [HL2:DM] Deathmsg Help
- Replies: 47
- Views: 48159
Re: [HL2:DM] Deathmsg Help
Sorry, I think I misunderstood what the kill message in the corner ment. Try this # ============================================================================= # >> IMPORTS # ============================================================================= from colors import RED, YELLOW from cvars.pub...
- Thu Dec 17, 2020 6:13 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Deathmsg Help
- Replies: 47
- Views: 48159
Re: [HL2:DM] Deathmsg Help
This should enable the messages shown in the top left corner. I tried to have it show more than one message at once which kinda works. I think VinciT's way of doing it in his Npc points plugin looks better, so maybe he can help. # =====================================================================...
- Sat Oct 31, 2020 9:15 am
- Forum: Plugin Requests
- Topic: [Cs:s] chat command to change map
- Replies: 13
- Views: 7694
Re: [Cs:s] chat command to change map
Hey VinciT, nice work! Since this is for CS:S you could handle the "be more specific" part with a popup menu. This way the user could quickly decide which map to choose without having to retype the map name. If the user searches for a very broad term like de_ or for example bhop_ on a Bunn...