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

reset scoreboard


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 03-18-2020 , 12:59   reset scoreboard
Reply With Quote #1

say .rr, reset only scoreboard,
not reset csstats ..... frags deaths

do not reset rank ranking
__________________

Last edited by rx1983; 03-18-2020 at 12:59.
rx1983 is offline
Send a message via MSN to rx1983
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 03-18-2020 , 13:12   Re: reset scoreboard
Reply With Quote #2

https://lmgtfy.com/?q=reset+score+cs+1.6+plugin
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-18-2020 , 14:33   Re: reset scoreboard
Reply With Quote #3

Literally every resetscore plugin does that. Never heard of such that resets the entire rank.

https://www.amxx-bg.info/viewtopic.php?f=21&t=63
__________________

Last edited by OciXCrom; 03-18-2020 at 14:34.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 03-18-2020 , 15:45   Re: reset scoreboard
Reply With Quote #4

nice !!! TESTED !!!

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

#define PLUGIN_VERSION "2.1"
#define ARG_NAME "<name>"

new g_pMessage
new const g_szCommands[][] = { "/rs", ".rr", "/reset", "reset", "rr", "/resetscore" }

public plugin_init()
{
	register_plugin("Simple Resetscore", PLUGIN_VERSION, "OciXCrom")
	register_cvar("CRXSimpleRS", PLUGIN_VERSION, FCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED)
	g_pMessage = register_cvar("simplers_message", "&x04[&x03Simple Resetscore&x04] &x03<name> &x01has just reset his score!")
	
	for(new i; i < sizeof(g_szCommands); i++)
		register_chat_command(g_szCommands[i], "Cmd_ResetScore")
}

public Cmd_ResetScore(id)
{
	new szMessage[256], iType
	get_pcvar_string(g_pMessage, szMessage, charsmax(szMessage))
	
	if(contain(szMessage, ARG_NAME) != -1)
	{
		new szName[32]
		get_user_name(id, szName, charsmax(szName))
		replace(szMessage, charsmax(szMessage), ARG_NAME, szName)
		iType = 1
	}
		
	set_user_frags(id, 0)
	cs_set_user_deaths(id, 0)
	CC_SendMatched(iType ? id : 0, id, szMessage)
	return PLUGIN_HANDLED
}

register_chat_command(const szCommand[], const szFunction[])
{
	static szTemp[32]
	formatex(szTemp, charsmax(szTemp), "say %s", szCommand)
	register_clcmd(szTemp, szFunction)
	formatex(szTemp, charsmax(szTemp), "say_team %s", szCommand)
	register_clcmd(szTemp, szFunction)
}
IS IT POSSIBLE TO RESET IN THE SAME WAY WHEN YOU DIE ON THE KNIFE ??
__________________
rx1983 is offline
Send a message via MSN to rx1983
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-18-2020 , 16:27   Re: reset scoreboard
Reply With Quote #5

What do you mean? You want to force resetscore when killed with a knife?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 18:25.


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