SV_CHEATS 1 doar pentru root (z)

Dacă deții un server dedicat și ai o problemă cu acesta, poți întreba în această categorie cum se rezolvă problema respectivă.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
OXYD
Membru, skill +1
Membru, skill +1
Posts: 463
Joined: 27 May 2017, 22:38
Detinator Steam: Da
CS Status: Playing CS:GO
Detinator server CS: Go.HellHounds.Ro
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
Been thanked: 1 time
Contact:

17 Aug 2017, 21:27

Cum pot face sa am doar cei cu flag-ul z sa poata folosi sv_cheats 1? Gen comenzile de sv_cheats doar cei cu z sa le poata folosi.
RoyalServer
User avatar
FITZ
Membru, skill +1
Membru, skill +1
Posts: 183
Joined: 01 Jul 2017, 15:01
Detinator Steam: Da
Detinator server CS: GO.KRIMES.RO
Fond eXtream: 0
Contact:

17 Aug 2017, 22:03

cheats n Change sv_cheats or use cheating commands , nu le dai flag n sau pui override la comenzi
★★★ CS:GO PLUGINS ★★★
★★★ GO.KRIMES.RO ★★★

Image
_()_
Membru, skill +1
Membru, skill +1
Posts: 159
Joined: 24 Jun 2017, 02:10
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

17 Aug 2017, 22:17

CheatsEnforcer.sp | Afiseaza codul
#include <sourcemod>

public Plugin:myinfo = {
	name = "Cheats Enforcer",
	author = "tre3fla",
	description = "sv_cheats 1 doar pentru Root",
	version = "1.0",
	url = "generalitati/cheats-doar-pentru-root-t343976.html"
}

public OnPluginStart( ) {
	HookConVarChange( FindConVar( "sv_cheats" ), ForceCheats )
}

public OnMapStart( ) {
	SetConVarInt( FindConVar( "sv_cheats" ), 1, false, false )
}

public OnPostAdminCheck( client ) {
	if( IsClientInGame( client ) &&  client > 0 && client <= MaxClients && !IsFakeClient( client ) ) {
		if( !CheckCommandAccess( client, "sm_someoverride", ADMFLAG_ROOT ) ) {
			SendConVarValue( client, FindConVar( "sv_cheats" ), "0" )
		}
	}
}

public ForceCheats( Handle:cvar, const String:oldValue [], const String:newValue[ ] ) {
	if( GetConVarInt( FindConVar( "sv_cheats" ) ) < 1 ) {
		SetConVarInt( FindConVar( "sv_cheats" ), 1, false, false )
		RemoveCheatsFromNonRoot( ) 
	}
}

public RemoveCheatsFromNonRoot( ) {
	for( new i = 1; i < MaxClients; i++ ) {
		if( IsClientInGame( i ) && !IsFakeClient( i ) ) {
			if( !CheckCommandAccess( i, "sm_someoverride", ADMFLAG_ROOT ) ) {
				SendConVarValue( i, FindConVar( "sv_cheats" ), "0" )
			}
		}
	}
}
Nu stiu daca merge, n-am unde sa testez, nici de compilat nu l-am compilat sa vad daca se compileaza corect.
User avatar
OXYD
Membru, skill +1
Membru, skill +1
Posts: 463
Joined: 27 May 2017, 22:38
Detinator Steam: Da
CS Status: Playing CS:GO
Detinator server CS: Go.HellHounds.Ro
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
Been thanked: 1 time
Contact:

29 Aug 2017, 11:11

tot ce face e sa activeze sv_cheats 1 si sa nu il poti pune inapoi pe 0 .
User avatar
FREAK
Membru, skill +4
Membru, skill +4
Posts: 1844
Joined: 13 Aug 2016, 20:46
Detinator Steam: Da
CS Status: Ma joc CS:GO
Detinator server CS: ARENA.1TAP.RO
SteamID: freakav
Reputatie: Fost Scripter eXtreamCS
Fost Membru Club eXtreamCS (6 luni)
Nume anterior: FREAK OFFICIAL TV
Fond eXtream: 0
Location: England
Contact:

29 Aug 2017, 13:36

in admin_overrides.cfg

"sv_cheats" "z"
Post Reply

Return to “Probleme la servere dedicate de Counter-Strike: Global Offensive”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest