This site is a testing version, but all data is shared with the live forum.


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

cs_set_user_team crashes server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cristian505
Senior Member
Join Date: Oct 2020
Old 05-14-2024 , 16:29   cs_set_user_team crashes server
Reply With Quote #1

Whenever i use cs_set_user_team even in just a simple chat command it crashes my local windows server. I use clean steam cs client with amxx 190 (ofc i added the cstrike package). Idk why this happens. Please help me
Cristian505 is offline
v120kaaimcfg
Member
Join Date: Apr 2024
Old 05-14-2024 , 16:34   Re: cs_set_user_team crashes server
Reply With Quote #2

Quote:
Originally Posted by Cristian505 View Post
Whenever i use cs_set_user_team even in just a simple chat command it crashes my local windows server. I use clean steam cs client with amxx 190 (ofc i added the cstrike package). Idk why this happens. Please help me
Show the plugin that does that
v120kaaimcfg is offline
Cristian505
Senior Member
Join Date: Oct 2020
Old 05-14-2024 , 16:39   Re: cs_set_user_team crashes server
Reply With Quote #3

Quote:
Originally Posted by v120kaaimcfg View Post
Show the plugin that does that
i disabled all my plugins and made a simple chat command and it still crashes...

Code:
#include <amxmodx>
#include <cstrike>

public plugin_init()
{
    register_clcmd("say /changeteam", "team")
}

public team(id)
{
    if(is_user_alive(id) && is_user_connected(id))
    cs_set_user_team(id, CS_TEAM_T);
}
I guess there is something wrong with my CS client or amxx files...

Last edited by Cristian505; 05-14-2024 at 16:40.
Cristian505 is offline
v120kaaimcfg
Member
Join Date: Apr 2024
Old 05-14-2024 , 18:04   Re: cs_set_user_team crashes server
Reply With Quote #4

Quote:
Originally Posted by Cristian505 View Post
I guess there is something wrong with my CS client or amxx files...
Most likely the server. Plugin works fine.
v120kaaimcfg is offline
tedaimlocks
Senior Member
Join Date: Jan 2024
Old 05-15-2024 , 02:06   Re: cs_set_user_team crashes server
Reply With Quote #5

Quote:
Originally Posted by Cristian505 View Post
i disabled all my plugins and made a simple chat command and it still crashes...

Code:
#include <amxmodx>
#include <cstrike>

public plugin_init()
{
    register_clcmd("say /changeteam", "team")
}

public team(id)
{
    if(is_user_alive(id) && is_user_connected(id))
    cs_set_user_team(id, CS_TEAM_T);
}
I guess there is something wrong with my CS client or amxx files...

maybe check your modules.ini file in config and check if fun and other modules are enabled. Do u get any error when server crashes?
tedaimlocks is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-15-2024 , 02:11   Re: cs_set_user_team crashes server
Reply With Quote #6

Quote:
Originally Posted by tedaimlocks View Post
maybe check your modules.ini file in config and check if fun and other modules are enabled. Do u get any error when server crashes?
Modules are enabled automatically, the INI file is not needed anymore.
__________________
fysiks is offline
Tote
Senior Member
Join Date: Jul 2023
Old 05-15-2024 , 08:53   Re: cs_set_user_team crashes server
Reply With Quote #7

Code:
#include <amxmodx>
#include <cstrike>

public plugin_init()
{
	register_clcmd("say /changeteam", "team")
}

public team(id)
{
	if(is_user_alive(id) && is_user_connected(id)) {
		if(cs_get_user_team(id) != CS_TEAM_T) {
			cs_set_user_team(id, CS_TEAM_T);
		} else {
			client_print(id, print_chat, "You cannot change your team as you are already in TS TEAM!")
		}
	}
}
are u sure it crashes when u type this command "/changeteam" ?
if yes, you need to check the sys_error.log present inside cstrike folder or inside logs folder. If there is nothing inside it Related to 'this' plugin, then check debug.log (could be ur module issue)
Tote is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-18-2024 , 04:58   Re: cs_set_user_team crashes server
Reply With Quote #8

Show the output of meta list.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 02:11.


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