Search found 16 matches
- Tue Apr 30, 2019 5:01 pm
- Forum: Plugin Development Support
- Topic: [CS:GO] how to get the number of real people in the team
- Replies: 3
- Views: 6178
Re: [CS:GO] how to get the number of real people in the team
Thank you all very much!
- Tue Apr 30, 2019 9:48 am
- Forum: Plugin Development Support
- Topic: [CS:GO] how to get the number of real people in the team
- Replies: 3
- Views: 6178
[CS:GO] how to get the number of real people in the team
Hello!
How to get the number of real people in the team? (without bots)
How to get the number of real people in the team? (without bots)
- Sat Mar 16, 2019 9:17 pm
- Forum: Plugin Development Support
- Topic: [CS:GO] Strange behavior of custom commands
- Replies: 2
- Views: 4310
Re: [CS:GO] Strange behavior of custom commands
The print() function directly writes to sys.stdout. It doesn't include any more logic. However, you can use this to have the same behaviour like standard commands. from core import console_message console_message('blablabla') Alternatively, you can replace sys.stdout like described ...
- Thu Mar 07, 2019 9:20 am
- Forum: Plugin Development Support
- Topic: [CS:GO] Strange behavior of custom commands
- Replies: 2
- Views: 4310
[CS:GO] Strange behavior of custom commands
Hello! I use python-valve for connect to csgo server via RCON. If I use naitive commands, the response always comes, a message that returns to the server console. For example, I send the status command via RCON RCON response: hostname: myserver ... os : Linux type : community dedicated map : de_mira...
- Thu Mar 07, 2019 8:14 am
- Forum: Plugin Development Support
- Topic: [CS:GO] How to get userid by SteamID ?
- Replies: 4
- Views: 5618
Re: [CS:GO] How to get userid by SteamID ?
Ayuto wrote:Though, if it's a performance critical part, you might want to use PlayerGenerator. It returns Edict instances.Syntax: Select all
from filters.players import PlayerIter
for player in PlayerIter():
print(player.name)
Thank you very much!
- Thu Mar 07, 2019 7:52 am
- Forum: Plugin Development Support
- Topic: [CS:GO] How to get userid by SteamID ?
- Replies: 4
- Views: 5618
Re: [CS:GO] How to get userid by SteamID ?
L'In20Cible wrote:Syntax: Select all
from players.helpers import index_from_steamid, userid_from_index
userid = userid_from_index(index_from_steamid('STEAM_1:2:3456789'))
It works! Thank you very much!
Can I ask you one more question? How to get all the players on the server?
- Thu Mar 07, 2019 7:12 am
- Forum: Plugin Development Support
- Topic: [CS:GO] How to get userid by SteamID ?
- Replies: 4
- Views: 5618
[CS:GO] How to get userid by SteamID ?
Could you tell me the way how to get userid by steamid?
- Mon Mar 04, 2019 6:03 am
- Forum: General Discussion
- Topic: [CS:GO] How to add API in gameserver
- Replies: 5
- Views: 8197
Re: [CS:GO] How to add API in gameserver
You need to run it in a new thread. Otherwise you block the main thread and the server cannot run its actual logic (the game). I tried running in a separate thread. But it looks like I'm doing something wrong. Even when I tried to run an infinite loop without time.sleep, only the 1st iteration of t...
- Sun Mar 03, 2019 2:51 am
- Forum: General Discussion
- Topic: [CS:GO] How to add API in gameserver
- Replies: 5
- Views: 8197
Re: [CS:GO] How to add API in gameserver
You can, for example, make your server run sockets and requests as to your wish. (Use the unendless world of python packages) Only downside is, that your server has to be running for this. In case its down, and you kind of want to restart it via an API, it wont work. Please tell me how I can run a ...
- Sat Mar 02, 2019 8:00 am
- Forum: General Discussion
- Topic: [CS:GO] How to add API in gameserver
- Replies: 5
- Views: 8197
[CS:GO] How to add API in gameserver
Can I make an api to the game server? To transmit data and request data in server console or plugin. Are there any ways? Ideally http json post get.
- Mon Jan 28, 2019 10:36 am
- Forum: Plugin Development Support
- Topic: [CS:GO] json in the server start string
- Replies: 2
- Views: 4106
- Sat Jan 26, 2019 9:01 am
- Forum: Plugin Development Support
- Topic: [CS:GO] json in the server start string
- Replies: 2
- Views: 4106
[CS:GO] json in the server start string
Tell me, is there a way to pass json as a variable in the server startup string on linux?
for example:
for example:
Code: Select all
./srcds_run -game csgo -console -usercon -myvar {"key": "value",...}
- Sat Jan 26, 2019 8:53 am
- Forum: General Discussion
- Topic: Cannot install package zmq
- Replies: 6
- Views: 8590
Re: Cannot install package zmq
Ayuto wrote:Is your Python installation a 64 bit version? If so, pip installed the 64 bit version of zmq, but Source.Python requires it in 32 bit.
Thank you very much, you were right! I reinstalled Python x32 and the zmq module was able to be imported, with a few errors, but it works!
(apt install python3:i386)
- Wed Jan 23, 2019 8:38 pm
- Forum: General Discussion
- Topic: Cannot install package zmq
- Replies: 6
- Views: 8590
Re: Cannot install package zmq
L'In20Cible wrote:First result on SO propose to upgrade it:I encountered a similar problem. pip install --upgrade pyzmq did the trick for me
Tried that?
Yes of course.
- Wed Jan 23, 2019 6:24 pm
- Forum: General Discussion
- Topic: Cannot install package zmq
- Replies: 6
- Views: 8590
Re: Cannot install package zmq
What's the output of pip install -t . zmq ? Maybe it failed to build some of the cpython libraries. installed well Collecting zmq Using cached https://files.pythonhosted.org/packages/6e/78/833b2808793c1619835edb1a4e17a023d5d625f4f97ff25ffff986d1f472/zmq-0.0.0.tar.gz Collecting pyzmq (from zmq) Usin...
- Wed Jan 23, 2019 11:08 am
- Forum: General Discussion
- Topic: Cannot install package zmq
- Replies: 6
- Views: 8590
Cannot install package zmq
source-python 3.6.1 (default, Jun 16 2017, 09:50:37) $ pip3 -V pip 18.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6) $ python3 Python 3.6.1 (default, Jan 23 2019, 10:20:59) $ pwd /home/steam/csgo/csgo/addons/source-python/packages/custom $ pip install -t . zmq $ cat /home/steam/csgo/...