Raised This Month: $ Target: $400
 0% 

Editing a plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 01-26-2016 , 13:41   Editing a plugin.
Reply With Quote #1

Hello,


Currently Im using this plugins as trails for my surf server https://forums.alliedmods.net/showthread.php?p=2340557


However, it only works for admins, so I would like to make players with custom flag like O to have it instead for admins only!



Thanks
__________________
weeeishy is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-26-2016 , 14:19   Re: Editing a plugin.
Reply With Quote #2

I edited it and changed the flag to O (custom1).

For change the cvar just search this
Code:
#define ADMINFLAG_NEEDED ADMFLAG_CUSTOM1
Change it and recompile.

Here the sourcemod flags https://wiki.alliedmods.net/Adding_Admins_(SourceMod)
Attached Files
File Type: sp Get Plugin or Get Source (playertrails.sp - 67 views - 11.3 KB)
File Type: smx playertrails.smx (12.1 KB, 68 views)
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 01-26-2016 , 17:24   Re: Editing a plugin.
Reply With Quote #3

Quote:
Originally Posted by Franc1sco View Post
I edited it and changed the flag to O (custom1).

For change the cvar just search this
Code:
#define ADMINFLAG_NEEDED ADMFLAG_CUSTOM1
Change it and recompile.

Here the sourcemod flags https://wiki.alliedmods.net/Adding_Admins_(SourceMod)
Thanks franc <3
__________________
weeeishy is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 01-27-2016 , 15:55   Re: Editing a plugin.
Reply With Quote #4

Quote:
Originally Posted by Franc1sco View Post
I edited it and changed the flag to O (custom1).

For change the cvar just search this
Code:
#define ADMINFLAG_NEEDED ADMFLAG_CUSTOM1
Change it and recompile.

Here the sourcemod flags https://wiki.alliedmods.net/Adding_Admins_(SourceMod)


Sorry but normal players without flags still can use it!!!!



Please help!
__________________
weeeishy is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-29-2016 , 01:17   Re: Editing a plugin.
Reply With Quote #5

Quote:
Originally Posted by weeeishy View Post
Sorry but normal players without flags still can use it!!!!



Please help!
Be sure that you have this cvar
Code:
sm_trail_adminonly 1
And you provided a valid value in the
Code:
#define ADMINFLAG_NEEDED
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 01-29-2016 at 01:17.
Franc1sco is offline
Send a message via MSN to Franc1sco
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 01-29-2016 , 23:20   Re: Editing a plugin.
Reply With Quote #6

Quote:
Originally Posted by Franc1sco View Post
Be sure that you have this cvar
Code:
sm_trail_adminonly 1
And you provided a valid value in the
Code:
#define ADMINFLAG_NEEDED
Players with flag O only can't use it.


However, if you have the admin flag B and O, then you will be able to have it.


I want players with O to have it, because its the VIP flag in my server.
__________________
weeeishy is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 02-03-2016 , 12:37   Re: Editing a plugin.
Reply With Quote #7

Still looking for help with that.
__________________
weeeishy is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 02-03-2016 , 20:00   Re: Editing a plugin.
Reply With Quote #8

No .smx, so you need to compile it.
Attached Files
File Type: sp Get Plugin or Get Source (playertrails.sp - 64 views - 11.3 KB)
thecount is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 02-04-2016 , 15:13   Re: Editing a plugin.
Reply With Quote #9

Quote:
Originally Posted by thecount View Post
No .smx, so you need to compile it.
Thanks a lot, worked.
__________________
weeeishy 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 10:27.


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