Raised This Month: $32 Target: $400
 8% 

LF4D2 - JETPACK - Change "FLAG"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 10-20-2018 , 10:11   LF4D2 - JETPACK - Change "FLAG"
Reply With Quote #1

Hello friends,

I'm trying to change this plugin to work only for admins "flag root", but I'm having trouble doing this.

If someone can help me by informing which line, how should I change the command line, I thank you very much.
Attached Files
File Type: sp Get Plugin or Get Source (jetpack.sp - 143 views - 27.1 KB)
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-20-2018 , 12:12   Re: LF4D2 - JETPACK - Change "FLAG"
Reply With Quote #2

The recommended method is Overriding Command Access to change "sm_jetpack_give" and "sm_jetpack_take" commands.

or change "#define ADMFLAG_JETPACK ADMFLAG_CUSTOM2" to "#define ADMFLAG_JETPACK ADMFLAG_ROOT" and recompile plugin.
__________________
Silvers is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 10-20-2018 , 13:21   Re: LF4D2 - JETPACK - Change "FLAG"
Reply With Quote #3

Quote:
Originally Posted by Silvers View Post
The recommended method is Overriding Command Access to change "sm_jetpack_give" and "sm_jetpack_take" commands.

or change "#define ADMFLAG_JETPACK ADMFLAG_CUSTOM2" to "#define ADMFLAG_JETPACK ADMFLAG_ROOT" and recompile plugin.
Thanks Silver, i try this.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 10-20-2018 , 15:03   Re: LF4D2 - JETPACK - Change "FLAG"
Reply With Quote #4

I tried both ways:

Trying to compile it shows errors.
Also did not work using admin_overrides also did not work either.

But I thank you, Silvers, for try help me, I'm going to keep on trying.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 10-20-2018 , 22:13   Re: LF4D2 - JETPACK - Change "FLAG"
Reply With Quote #5

Quote:
Originally Posted by Mi.Cura View Post
I tried both ways:

Trying to compile it shows errors.
Also did not work using admin_overrides also did not work either.

But I thank you, Silvers, for try help me, I'm going to keep on trying.
I answered your question(s) here: https://forums.alliedmods.net/showpo...2&postcount=74
__________________
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 16:39.


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