Search found 148 matches

by 8guawong
Wed Oct 01, 2014 11:09 pm
Forum: Plugin Development Support
Topic: How to emit sound??
Replies: 22
Views: 19245

well the code i posted don't work :eek:
by 8guawong
Wed Oct 01, 2014 5:20 pm
Forum: General Discussion
Topic: SP logs locations
Replies: 10
Views: 8550

This warning is not from a script/plugin but from SP itself. It tells you the signature for that function is outdated since the pointer is NULL. ok yea i see other warning messaged now so how bout keep the most recent warning message on the TOP of the file instead of the bottom? so we don't have to...
by 8guawong
Wed Oct 01, 2014 5:05 pm
Forum: Plugin Development Support
Topic: How to emit sound??
Replies: 22
Views: 19245

Some time ago when engine_sound.emit_sound was crashing server in CS:S as temporary fix I used this (with manual sound precache in load and level init listener): EngineServer.client_command(edict, 'play some/cool/sound.wav') I'm not sure that it will work in CS:GO, but you should tr...
by 8guawong
Wed Oct 01, 2014 4:17 pm
Forum: General Discussion
Topic: SP logs locations
Replies: 10
Views: 8550

Sorry for not going into more detail in my previous post. I haven't been on a computer in a few days and didn't feel like typing it all out on my phone. The "script" one does not apply to the main SP Logger. That was left in there, for the time being, as an example for when a script wants to create...
by 8guawong
Wed Oct 01, 2014 4:16 pm
Forum: General Discussion
Topic: [CSGO] Order of CFG that is executed
Replies: 2
Views: 3550

You could always use a delay to execute the config: from engines.server import engine_server from listeners import LevelInit from listeners.tick import TickDelays @LevelInit def my_level_init_function(mapname): TickDelays(0, engine_server.server_command, ('exec blahblah', &#...
by 8guawong
Tue Sep 30, 2014 11:05 pm
Forum: Plugin Development Support
Topic: "Team is full" message
Replies: 8
Views: 7906

Then I have no clue.. This showed up as a valid ConVar when I launched my test server earlier. Maybe some game-mode specific config? well its csgo and you provided the events yourself :cool: http://www.sourcepython.com/showthread.php?158-Info-list-of-CS-GO-events&p=947&viewfull=1#post947 The map ma...
by 8guawong
Tue Sep 30, 2014 5:11 pm
Forum: Plugin Development Support
Topic: "Team is full" message
Replies: 8
Views: 7906

L'In20Cible wrote:

Code: Select all

mp_limitteams 0


no that doesn't work ;)
by 8guawong
Tue Sep 30, 2014 4:54 pm
Forum: Plugin Development Support
Topic: "Team is full" message
Replies: 8
Views: 7906

"Team is full" message

Just found out today CSGO have a really stupid hard coded team limit "Team is full" message appears when a team has as many players as the half of the max players so... basically if you have 20 slot server once one team is filled with 10 players no more players can join terrorist.. but thi...
by 8guawong
Mon Sep 29, 2014 4:15 pm
Forum: General Discussion
Topic: SP logs locations
Replies: 10
Views: 8550

ah ok but why make it so complicated? isn't it simpler to log it all into one place.. like sourcemod? or we just like having choices :)

areas = 5 is probably what i want then :)
by 8guawong
Mon Sep 29, 2014 4:08 pm
Forum: Code examples / Cookbook
Topic: Stripping weapons
Replies: 45
Views: 116462

qazuar wrote:Very true, but in the post before mine he claims he can make it work, so i was just wondering.


are you refering to me??

drop weapon works for me
remove also works

csgo on linux
by 8guawong
Mon Sep 29, 2014 1:47 pm
Forum: General Discussion
Topic: SP logs locations
Replies: 10
Views: 8550

SP logs locations

in core_settings.ini # Set to the areas to log (console, main log, sp log, script log): # Console = 1 # Main log = 2 # SP log = 4 # Script log = 8 where is main log? SP log and Script log?? main log location logs/source-python? or SP log logs/source-python? Script log is where the plugins is? ie. ad...
by 8guawong
Mon Sep 29, 2014 1:22 am
Forum: Plugin Development Support
Topic: getting index from playeriter
Replies: 6
Views: 5410

getting index from playeriter

random.choice(playerlib.getUseridList('#bot')) here is what i use in ES to get a random userid here is what i tried in SP but don't work @@ doesn't print the index from events import Event from players.entity import PlayerEntity from filters.players import PlayerIter @Event ...
by 8guawong
Mon Sep 29, 2014 12:42 am
Forum: Plugin Development Support
Topic: how to forcing player to specific team
Replies: 10
Views: 7696

btw is there an equivalent of

Code: Select all

es.cexec(userid, 'jointeam 3')

for SP?

-------------------------- edit ----------------------

nvm got it

Syntax: Select all

engine_server.client_command(edict, 'jointeam 3')
by 8guawong
Mon Sep 29, 2014 12:13 am
Forum: Plugin Releases
Topic: FlashFun v1.0 re-release
Replies: 32
Views: 45241

crashes on CSGO most likely due to weapon dropping~ Thanks for reporting. As the first post says, I just tested it for CS:S lol. But I have both games so I'll upload an update later. EDIT: I'll upload an update without droppping the weapon, since that works fine for CS:S, too. You can test it for C...
by 8guawong
Mon Sep 29, 2014 12:10 am
Forum: Plugin Development Support
Topic: how to forcing player to specific team
Replies: 10
Views: 7696

I use something like that: from commands import CommandReturn from commands.client import ClientCommandFilter # 'team_manager' is a dictionary containing teamid values for "t" and "ct", identical to: team_manager = { "t": 2, "ct": 3 } @ClientCommandFi...
by 8guawong
Mon Sep 29, 2014 12:08 am
Forum: Plugin Development Support
Topic: how to forcing player to specific team
Replies: 10
Views: 7696

Yes, the result is the same, but if you use the decorator the code is shorter (50%) and less error prone as you don't need to unregister the filter when you unload the plugin. This will be done automatically. Just compare these two scripts and you will understand. from commands.client import client...
by 8guawong
Sun Sep 28, 2014 6:17 pm
Forum: General Discussion
Topic: [CSGO] Order of CFG that is executed
Replies: 2
Views: 3550

[CSGO] Order of CFG that is executed

Not sure if this should be posted...so i post it here.... after playing with CSGO dedicated server this past few days it seems like the cfg are executed in the following order server.cfg -> gamemode_mode_server.cfg however i have script that uses from listeners import LevelInit @LevelInit def my_lev...
by 8guawong
Sun Sep 28, 2014 5:56 pm
Forum: Plugin Development Support
Topic: how to forcing player to specific team
Replies: 10
Views: 7696

L'In20Cible wrote:You should use the ClientCommandFilter decorator.


whats the difference if i may ask

i tried both way and both works :p
by 8guawong
Sun Sep 28, 2014 5:47 pm
Forum: Plugin Development Support
Topic: how to forcing player to specific team
Replies: 10
Views: 7696

You are trying to compare the Command object with a string. This will always result in False. http://wiki.sourcepython.com/index.php/commands#Command http://wiki.sourcepython.com/index.php/commands.client def client_command_filter(player, command): if command[0] == 'jointeam': print...
by 8guawong
Sun Sep 28, 2014 4:13 pm
Forum: Plugin Development Support
Topic: how to forcing player to specific team
Replies: 10
Views: 7696

how to forcing player to specific team

i've found http://www.sourcepython.com/showthread.php?478-Help-with-Client-Command-Filter-to-force-players-to-join-specified-team&highlight=Client+Command+Filter but all the wiki posted are not available anymore here is what i have right now from commands.client import client_command_manager def...

Go to advanced search