Raised This Month: $32 Target: $400
 8% 

Custom TTT rank system


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Perssan
Junior Member
Join Date: Aug 2018
Old 08-14-2018 , 06:28   Custom TTT rank system
Reply With Quote #1

Hello.

I need a custom rank plugin for my CSGO TTT server, im using this plugin for my TTT:
https://forums.alliedmods.net/showthread.php?t=273960

I need a rank system that shows top player with most points.

Are there currently any plugin that i can use that is formed to this specific gamemode or can someone code one for me?

I need also a plugin that makes so kills and deaths dont pop up in the scoreboard, because that ruins the whole game.


CFG: https://gyazo.com/307d4c42b70d934375e438c22f8d506a
The CFG is the CFG for TTT, and if i got this on 0, traitors will get exposed in the scoreboard, so i need something that both gives people points for killing each other and not getting stats in the scoreboard.
Perssan is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 08-15-2018 , 06:51   Re: Custom TTT rank system
Reply With Quote #2

Quote:
Originally Posted by Perssan View Post
I need also a plugin that makes so kills and deaths dont pop up in the scoreboard, because that ruins the whole game.
PHP Code:

#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>
#include <sdktools>
#include <cstrike>

public void OnPluginStart()
{
    
HookEvent("player_death"Event_PlayerDeathEventHookMode_Pre);
}

public 
Action Event_PlayerDeath(Event event, const char[] namebool dontBroadcast
{
    
event.BroadcastDisabled true// hide the killfeed, you can remove this line

    // victim
    
int client GetClientOfUserId(event.GetInt("userid"));
    
SetEntProp(clientProp_Data"m_iDeaths"0);
    
CS_SetClientContributionScore(client0);

    
// attacker
    
int attacker GetClientOfUserId(event.GetInt("attacker"));
    if(
attacker != 0)
    {
        
SetEntProp(attackerProp_Data"m_iFrags"0);
        
CS_SetClientContributionScore(attacker0);
    }

    
// assister
    
int assister GetClientOfUserId(event.GetInt("assister"));
    if(
assister != 0)
    {
        
CS_SetClientAssists(assister0);
        
CS_SetClientContributionScore(assister0);
    }


__________________

Last edited by Ilusion9; 08-15-2018 at 06:52.
Ilusion9 is offline
Perssan
Junior Member
Join Date: Aug 2018
Old 08-15-2018 , 10:26   Re: Custom TTT rank system
Reply With Quote #3

Quote:
Originally Posted by Ilusion9 View Post
PHP Code:

#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>
#include <sdktools>
#include <cstrike>

public void OnPluginStart()
{
    
HookEvent("player_death"Event_PlayerDeathEventHookMode_Pre);
}

public 
Action Event_PlayerDeath(Event event, const char[] namebool dontBroadcast
{
    
event.BroadcastDisabled true// hide the killfeed, you can remove this line

    // victim
    
int client GetClientOfUserId(event.GetInt("userid"));
    
SetEntProp(clientProp_Data"m_iDeaths"0);
    
CS_SetClientContributionScore(client0);

    
// attacker
    
int attacker GetClientOfUserId(event.GetInt("attacker"));
    if(
attacker != 0)
    {
        
SetEntProp(attackerProp_Data"m_iFrags"0);
        
CS_SetClientContributionScore(attacker0);
    }

    
// assister
    
int assister GetClientOfUserId(event.GetInt("assister"));
    if(
assister != 0)
    {
        
CS_SetClientAssists(assister0);
        
CS_SetClientContributionScore(assister0);
    }


There is something wrong with my compiler, can you send a smx file of it or a sp?
Perssan is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 08-15-2018 , 11:34   Re: Custom TTT rank system
Reply With Quote #4

ttt_kad_remover is exactly what you want .....
it blocks the kills, assist and deaths from showing up on the scoreboard...........
__________________
8guawong is offline
Perssan
Junior Member
Join Date: Aug 2018
Old 08-15-2018 , 12:19   Re: Custom TTT rank system
Reply With Quote #5

Quote:
Originally Posted by 8guawong View Post
ttt_kad_remover is exactly what you want .....
it blocks the kills, assist and deaths from showing up on the scoreboard...........
The thing is if i got ttt_kad_remove on 1, all the rank system wont give people points for killing.
Perssan is offline
Perssan
Junior Member
Join Date: Aug 2018
Old 08-15-2018 , 12:41   Re: Custom TTT rank system
Reply With Quote #6

Quote:
Originally Posted by Ilusion9 View Post
PHP Code:

#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>
#include <sdktools>
#include <cstrike>

public void OnPluginStart()
{
    
HookEvent("player_death"Event_PlayerDeathEventHookMode_Pre);
}

public 
Action Event_PlayerDeath(Event event, const char[] namebool dontBroadcast
{
    
event.BroadcastDisabled true// hide the killfeed, you can remove this line

    // victim
    
int client GetClientOfUserId(event.GetInt("userid"));
    
SetEntProp(clientProp_Data"m_iDeaths"0);
    
CS_SetClientContributionScore(client0);

    
// attacker
    
int attacker GetClientOfUserId(event.GetInt("attacker"));
    if(
attacker != 0)
    {
        
SetEntProp(attackerProp_Data"m_iFrags"0);
        
CS_SetClientContributionScore(attacker0);
    }

    
// assister
    
int assister GetClientOfUserId(event.GetInt("assister"));
    if(
assister != 0)
    {
        
CS_SetClientAssists(assister0);
        
CS_SetClientContributionScore(assister0);
    }


This plugin dont work as i wanted, when the traitor kill the whole team, the traitor dont get any kills, but when the next round starts the traitor gets 1 kill and a mvp.
Perssan 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 21:47.


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