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

Modify Score csgo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Gena
Member
Join Date: May 2022
Location: Uruguay
Old 06-23-2022 , 21:17   Modify Score csgo
Reply With Quote #1

How can I do so that a death or kill does not affect the score at certain times, I have something like this, but I know it's wrong.
Code:
public Action Event_PlayerDeath(Handle event, const char[] name, bool dontBroadcast)
{
	int client = GetClientOfUserId(GetEventInt(event, "userid"));
	int victim = GetClientOfUserId(GetEventInt(event, "userid"));
	int attacker = GetClientOfUserId(GetEventInt(event, "attacker"));

	if	(g_indm[client])
	{
	        SetEntProp(victim, Prop_Data, "m_iDeaths", GetClientDeaths(victim) - 1);
                SetEntProp(attacker, Prop_Data, "m_iKills", GetClientFrags(attacker) - 1);
	}
__________________
Servers of CS:GO - Private Plugins
Steam ~ GenaEscobar#2338
sorry for my english as a translator d:

Last edited by Gena; 06-29-2022 at 20:51.
Gena is offline
 



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 06:16.


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