Raised This Month: $51 Target: $400
 12% 

[CS:GO] Spawning at camera location


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Myrrib
New Member
Join Date: Jan 2014
Old 08-25-2018 , 04:18   [CS:GO] Spawning at camera location
Reply With Quote #1

Hello,
I have an issue with forcing teams in CS:GO. The plugin I'm using forces player's team based on the information from the DB, so the player doesn't have a choice to join the other team. And sometimes in
CS:GO if you join before freezetime is over you will respawn. And the problem I have is that the player will respawn on camera location. For example on Inferno he will spawn at bombsite B.

Here's the code I'm using.
Code:
ChangeClientTeam(client, 2);
ForcePlayerSuicide(client);
Myrrib is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 08-25-2018 , 06:29   Re: [CS:GO] Spawning at camera location
Reply With Quote #2

nice code ...
where do you use that code? in what event / hook?

set this OnMapStart():

PHP Code:
GameRules_SetProp("m_bIsQueuedMatchmaking"1); 
Hook player_connect_full event, get data from database and change his team in that event.
If he cannot buy, just set a timer in player_connect_full and do the things ...
Ilusion9 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode