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

Auto add flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maningrey
Member
Join Date: Sep 2014
Location: Farswitch Newton 1
Old 04-09-2015 , 12:09   Auto add flags
Reply With Quote #1

Hey

I have a tone of plugins that require a single flag R for VIP, but I've grown tired of the system and just want to give it to every player on join. Is there a plugin that will set a players flag on join?

Many thanks
maningrey is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 04-09-2015 , 14:50   Re: Auto add flags
Reply With Quote #2

Quote:
Originally Posted by maningrey View Post
Hey

I have a tone of plugins that require a single flag R for VIP, but I've grown tired of the system and just want to give it to every player on join. Is there a plugin that will set a players flag on join?

Many thanks
This one should do what you want:

Code:
public OnClientPostAdminFilter(client) {
  AddUserFlags(client, Admin_Custom4);
}

public OnClientDisconnect(client) {
  RemoveUserFlags(client, Admin_Custom4);
}
Attached Files
File Type: sp Get Plugin or Get Source (admflag_custom4.sp - 220 views - 163 Bytes)
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
maningrey
Member
Join Date: Sep 2014
Location: Farswitch Newton 1
Old 04-10-2015 , 07:47   Re: Auto add flags
Reply With Quote #3

Thank you
maningrey 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:24.


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