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

[CSGO] Simple Match Plugin (v1.7, 29-June-2016)


Post New Thread Reply   
 
Thread Tools Display Modes
kovo1422
New Member
Join Date: Apr 2016
Old 04-09-2016 , 16:34   Re: [CSGO] Simple Match Plugin (v1.5, 01-Apr-16)
Reply With Quote #41

Quote:
Originally Posted by Niveh View Post
Make sure you have the "b" flag (generic access) in admins_simple.ini
!smpadmin opens up admin menu.
sry im noob in this , where i can find admins_simple.ini ??
kovo1422 is offline
Niveh
Member
Join Date: Mar 2016
Location: Under your bed
Old 04-09-2016 , 16:41   Re: [CSGO] Simple Match Plugin (v1.5, 01-Apr-16)
Reply With Quote #42

Quote:
Originally Posted by kovo1422 View Post
sry im noob in this , where i can find admins_simple.ini ??
in your server's csgo folder:
addons -> sourcemod -> configs -> admins_simple.ini
open with text editor
in the bottom of the text, after all the lines, add the following line:
"STEAMID" "immunity level:flag"

replace STEAMID with your steamid.
immunity level can be any number - an admin cant target an admin with higher immunity level.
flag - flag letter, you can find those in admins_levels.cfg (same folder).

since you are the owner, you should set flag to "z" which is root.
a player with "z" flag ignores immunity levels. for example:
player with "z" can target ANY player, regardless of his immunity level.

hope I helped
Niveh is offline
kovo1422
New Member
Join Date: Apr 2016
Old 04-09-2016 , 17:17   Re: [CSGO] Simple Match Plugin (v1.5, 01-Apr-16)
Reply With Quote #43

Quote:
Originally Posted by Niveh View Post
in your server's csgo folder:
addons -> sourcemod -> configs -> admins_simple.ini
open with text editor
in the bottom of the text, after all the lines, add the following line:
"STEAMID" "immunity level:flag"

replace STEAMID with your steamid.
immunity level can be any number - an admin cant target an admin with higher immunity level.
flag - flag letter, you can find those in admins_levels.cfg (same folder).

since you are the owner, you should set flag to "z" which is root.
a player with "z" flag ignores immunity levels. for example:
player with "z" can target ANY player, regardless of his immunity level.

hope I helped
sure... thanks a lot bro !!!
kovo1422 is offline
Niveh
Member
Join Date: Mar 2016
Location: Under your bed
Old 04-09-2016 , 23:38   Re: [CSGO] Simple Match Plugin (v1.5, 01-Apr-16)
Reply With Quote #44

Quote:
Originally Posted by kovo1422 View Post
sure... thanks a lot bro !!!
You're welcome
Niveh is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 04-11-2016 , 14:20   Re: [CSGO] Simple Match Plugin (v1.5, 01-Apr-16)
Reply With Quote #45

Niveh you have one Bug in your code.
You need to check captain team when the knife round end if not the other captain can use the stay or swap command.
pepe_thugs is offline
Niveh
Member
Join Date: Mar 2016
Location: Under your bed
Old 04-11-2016 , 17:00   Re: [CSGO] Simple Match Plugin (v1.5, 01-Apr-16)
Reply With Quote #46

Quote:
Originally Posted by pepe_thugs View Post
Niveh you have one Bug in your code.
You need to check captain team when the knife round end if not the other captain can use the stay or swap command.
Weird, I've already implemented it. I'll go have a look.
EDIT: You were right, it was bugged. Seems like I've used my old code for captains system. Fixed now, Thanks!

Last edited by Niveh; 04-11-2016 at 17:19.
Niveh is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 04-13-2016 , 18:50   Re: [CSGO] Simple Match Plugin (v1.5-fix, 12-Apr-16)
Reply With Quote #47

Why you dont do use one "if" only:

PHP Code:
if (WinningTeam == CS_TEAM_T)
    {
        if (
GetClientTeam(client) == CS_TEAM_T)
        {
            if (
CaptainCheck(client))
            {
                if (
CanUseStay())
                { 

PHP Code:
if (WinningTeam == CS_TEAM_T && GetClientTeam(client) == CS_TEAM_T && CaptainCheck(client) && CanUseStay())
    { 
You have another bug when the players say "!ready" you dont check if the player disconnect dont remove the player in ready list.
pepe_thugs is offline
Niveh
Member
Join Date: Mar 2016
Location: Under your bed
Old 04-13-2016 , 19:06   Re: [CSGO] Simple Match Plugin (v1.5-fix, 12-Apr-16)
Reply With Quote #48

Quote:
Originally Posted by pepe_thugs View Post
Why you dont do use one "if" only:

PHP Code:
if (WinningTeam == CS_TEAM_T)
    {
        if (
GetClientTeam(client) == CS_TEAM_T)
        {
            if (
CaptainCheck(client))
            {
                if (
CanUseStay())
                { 

PHP Code:
if (WinningTeam == CS_TEAM_T && GetClientTeam(client) == CS_TEAM_T && CaptainCheck(client) && CanUseStay())
    { 
You have another bug when the players say "!ready" you dont check if the player disconnect dont remove the player in ready list.
Thanks, bug fixed.
About the code, I make it so big so I can debug every single function incase it doesn't work.
In the final version, I will make it all shorter.
Niveh is offline
amnesiafgt
Junior Member
Join Date: Apr 2016
Old 04-20-2016 , 13:24   Re: [CSGO] Simple Match Plugin (v1.5-fix, 14-Apr-16)
Reply With Quote #49

Hey, thanks for the nice plugin!

One question, where can I configure how many players it needs to start the game?
amnesiafgt is offline
Niveh
Member
Join Date: Mar 2016
Location: Under your bed
Old 04-20-2016 , 14:10   Re: [CSGO] Simple Match Plugin (v1.5-fix, 14-Apr-16)
Reply With Quote #50

Quote:
Originally Posted by amnesiafgt View Post
Hey, thanks for the nice plugin!

One question, where can I configure how many players it needs to start the game?
You can simply force knife round using !smpadmin
You may also use the cvar smp_ready_players_needed. 1 is minimum, 10 is maximum.

Last edited by Niveh; 04-21-2016 at 12:45.
Niveh 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 23:28.


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