Search found 140 matches

by nullable
Thu Dec 01, 2016 10:32 pm
Forum: General Discussion
Topic: OnClientConnect getting Player problem
Replies: 4
Views: 275

OnClientConnect getting Player problem

Hi, After update new version of sourcepython, we have a problem with getting player. @OnClientConnect def on_client_connect(allow_connect_ptr, player_edict, player_name, ip_port, reject_msg_ptr, max_reject_length): player = Player(index_from_edict(player_edict)) Traceback: Tr...
by nullable
Fri Oct 30, 2015 4:59 pm
Forum: Plugin Development Support
Topic: Side selection
Replies: 1
Views: 126

Side selection

Is it possible to choose the side of the winning team? I mean choose CT or T after win first round.
by nullable
Sun Sep 27, 2015 10:56 am
Forum: Plugin Development Support
Topic: CSGO: after up csgo client knife round is not working
Replies: 7
Views: 594

The problem has been resolved after fix this https://github.com/Source-Python-Dev-Team/Source.Python/issues/72
Thanks
by nullable
Sun Sep 27, 2015 10:54 am
Forum: Plugin Development Support
Topic: CSGO: default weapon
Replies: 19
Views: 1150

Now all is working. Thanks guys.
by nullable
Sat Sep 26, 2015 8:14 pm
Forum: Plugin Development Support
Topic: CSGO: default weapon
Replies: 19
Views: 1150

Thanks, but new code is not working too. The same result.
by nullable
Sat Sep 26, 2015 1:24 pm
Forum: Plugin Development Support
Topic: CSGO: default weapon
Replies: 19
Views: 1150

I have tested your code. Screen bellow:
Image

After round I have only knife which is not active.
by nullable
Sat Sep 26, 2015 7:59 am
Forum: Plugin Development Support
Topic: CSGO: default weapon
Replies: 19
Views: 1150

It's not working. I understood that give_named_item not working in csgo now. Code for reproduce. @Event('player_activate') def player_activate(game_event): player = PlayerEntity(index_from_userid(game_event.get_int('userid'))) player.give_named...
by nullable
Fri Sep 25, 2015 3:36 pm
Forum: Plugin Development Support
Topic: CSGO: default weapon
Replies: 19
Views: 1150

It's working but not correct. Gived weapon is not active in hand.
by nullable
Thu Sep 24, 2015 2:36 pm
Forum: Plugin Development Support
Topic: CSGO: after up csgo client knife round is not working
Replies: 7
Views: 594

I found solution: def weapon_check(): for player in PlayerIter(return_types='player'): player.cash = 0 for weapon in WeaponEdictIter(return_types='weapon'): if weapon.class_name != 'weapon_knife': weapon.remove() But now problem is the player d...
by nullable
Thu Sep 24, 2015 1:29 pm
Forum: Plugin Development Support
Topic: CSGO: default weapon
Replies: 19
Views: 1150

The idea is after round end winner team should be start with default weapons like after map start.
by nullable
Thu Sep 24, 2015 11:17 am
Forum: Plugin Development Support
Topic: CSGO: after up csgo client knife round is not working
Replies: 7
Views: 594

You can try next code: def weapon_check(): for player in PlayerIter(return_types='player'): player.cash = 0 # Remove from map for weapon in WeaponEdictIter(return_types='weapon'): if weapon.current_owner is None: weapon.remove() # Remove from player fo...
by nullable
Thu Sep 24, 2015 10:11 am
Forum: Plugin Development Support
Topic: CSGO: default weapon
Replies: 19
Views: 1150

satoon101 wrote:I am not 100% sure what you are looking for. I will say that we already have the ability to drop/remove weapons and give new ones, if that will suffice.


Can you show me example? How I can do it?
by nullable
Sun Sep 20, 2015 7:05 pm
Forum: Plugin Development Support
Topic: CSGO: after up csgo client knife round is not working
Replies: 7
Views: 594

Ok. For reproduce use the code bellow: @Event('player_activate') def player_activate(game_event): player = PlayerEntity(index_from_userid(game_event.get_int('userid'))) player.cash = 0 for weapon in WeaponEdictIter(return_types='weapon&...
by nullable
Sun Sep 20, 2015 9:22 am
Forum: Plugin Development Support
Topic: CSGO: Disable the server to stop
Replies: 2
Views: 281

Yes, thank you. I am shuting down server by myself
by nullable
Sun Sep 20, 2015 9:19 am
Forum: Plugin Development Support
Topic: CSGO: after up csgo client knife round is not working
Replies: 7
Views: 594

Is it possible to fix? Or maybe good idea is to rewrite code from sourcepython to sourcemod for example?
by nullable
Sat Sep 19, 2015 8:05 pm
Forum: Plugin Development Support
Topic: CSGO: after up csgo client knife round is not working
Replies: 7
Views: 594

The code bellow: def weapon_check(): for player in PlayerIter(return_types='player'): player.cash = 0 for weapon in WeaponEdictIter(return_types='weapon'): if weapon.current_owner is None: weapon.remove() for weapon_index in player.weapon_indexes(n...
by nullable
Sat Sep 19, 2015 7:58 pm
Forum: Plugin Development Support
Topic: CSGO: after up csgo client knife round is not working
Replies: 7
Views: 594

CSGO: after up csgo client knife round is not working

Hello, After update csgo client knife round is not working now. [SP] Caught an Exception: Traceback (most recent call last): File '../addons/source-python/packages/source-python/listeners/tick/delays.py', line 60, in __call__ self.callback(*self.args, **self.kwargs) File '../addons/source-python/pac...
by nullable
Sun Sep 13, 2015 3:32 pm
Forum: General Discussion
Topic: CSGO: show his team only
Replies: 1
Views: 299

CSGO: show his team only

The problem is after death the players can show both teams. I need to give the opportunity to look only for his team. How can I do it?
by nullable
Fri Sep 11, 2015 4:49 am
Forum: Plugin Development Support
Topic: CSGO: Disable the server to stop
Replies: 2
Views: 281

CSGO: Disable the server to stop

How to disable the server to stop at the exit of one of the teams? The problem is when one of the team are left the game the server is shutdown.
by nullable
Mon Sep 07, 2015 5:42 am
Forum: Plugin Development Support
Topic: CSGO: default weapon
Replies: 19
Views: 1150

stonedegg, thanks but it's very hard to find all weapons like this.

it may be possible after player.switch_team(team_id) do reset weapons?

Go to advanced search