Raised This Month: $71 Target: $400
 17% 

LF4D2 - JETPACK - Change "FLAG"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mi.Cura
Senior Member
Join Date: Dec 2016
Location: Brazil
Old 10-20-2018 , 11: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 - 32 views - 27.1 KB)
__________________
Mi.Cura is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 10-20-2018 , 13: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
Senior Member
Join Date: Dec 2016
Location: Brazil
Old 10-20-2018 , 14: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 is offline
Mi.Cura
Senior Member
Join Date: Dec 2016
Location: Brazil
Old 10-20-2018 , 16: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 is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 10-20-2018 , 23: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
__________________
AFK like JFK
Crasher_3637 is offline
Reply


Thread Tools
Display Modes

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 08:23.


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