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

[CSGO] ADMFLAG for all players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sw33T3R
AlliedModders Donor
Join Date: Mar 2014
Old 11-09-2017 , 08:00   [CSGO] ADMFLAG for all players
Reply With Quote #1

Solved
Code:
#include <sourcemod>
#include <cstrike>

public OnPluginStart()
{
	HookEvent("round_start", Round_Start);
}

public Round_Start(Handle:event, const String:name[], bool:dontBroadcast)
{
	for (new i = 1; i <= MaxClients; i++)
	{
		if (IsClientInGame(i))
		{
			AddUserFlags(i, Admin_Reservation);
		}
	}
}

Last edited by Sw33T3R; 11-09-2017 at 09:36.
Sw33T3R is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 11-09-2017 , 12:33   Re: [CSGO] ADMFLAG for all players
Reply With Quote #2

Can this be used for other games as well, or is the "#include <cstrike>" necessary for this plugin to work?
__________________
Psyk0tik is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 11-09-2017 , 12:41   Re: [CSGO] ADMFLAG for all players
Reply With Quote #3

Quote:
Originally Posted by Crasher_3637 View Post
Can this be used for other games as well, or is the "#include <cstrike>" necessary for this plugin to work?
You can remove that include. This is a sourcemod internal function, doesn't need game specific extensions to work.
Mitchell is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 11-09-2017 , 12:45   Re: [CSGO] ADMFLAG for all players
Reply With Quote #4

Quote:
Originally Posted by Mitchell View Post
You can remove that include. This is a sourcemod internal function, doesn't need game specific extensions to work.
Thank you for the fast reply!
__________________
Psyk0tik 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 22:58.


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