Raised This Month: $ Target: $400
 0% 

NEED HELP TO MODIFY PLUGIN


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-=|GodLik3|=-
Member
Join Date: Oct 2006
Old 11-07-2006 , 07:15   NEED HELP TO MODIFY PLUGIN
Reply With Quote #1

I am a complete n00b at scripting, so I need someone's help.

I would like to modify this plugin made by WaZZeR

http://forums.alliedmods.net/showthread.php?p=108735

In the original plugin, only admins with access flag j can use the menu. I want EVERYONE to be able to use the menu, even non-admins. Can anybody help me with this?

P.S: Do not post codes please, as I am a n00b, and dont know what do with it. Kindly post the modified .sma file.
__________________

Last edited by -=|GodLik3|=-; 11-08-2006 at 08:29.
-=|GodLik3|=- is offline
LittleDude
Member
Join Date: Dec 2004
Location: Selah, WA
Old 11-07-2006 , 08:24   Re: Modify Vote/Ban Menu Plugin....
Reply With Quote #2

this what you want?
Attached Files
File Type: sma Get Plugin or Get Source (votekickbanmenu13.sma - 536 views - 3.9 KB)
__________________
It is stupid to be stupid, and stupid to not be stupid
LittleDude is offline
Send a message via AIM to LittleDude
-=|GodLik3|=-
Member
Join Date: Oct 2006
Old 11-07-2006 , 08:48   Re: Modify Vote/Ban Menu Plugin....
Reply With Quote #3

Umm....no...you've not changed the plugin at all. Its the exact same as the original. I want it modified, so that ANYONE can use the menu, even non-admins. Probably this part of the plugin has to be modified:

Code:
 
//Check if the player has immunity
        if( (get_user_flags(j) & ADMIN_IMMUNITY) )
        {
            iCurrKey++
            iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "\d%d. %s^n\w", iCurrKey, szUserName )
        }else
        {
            iKeys |= (1<<iCurrKey++)
            iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "%d. %s^n", iCurrKey, szUserName )
        }
    }
I'm a n00b, as I said earlier. I know you have to change this, but how to change it, is what I don't know.

Anyways, thanks for trying.
__________________
-=|GodLik3|=- is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 11-07-2006 , 09:11   Re: Modify Vote/Ban Menu Plugin....
Reply With Quote #4

in the plugin_init section of the plugin (adminvote) you'll see this:

Code:
	register_concmd("amx_votemap", "cmdVoteMap", ADMIN_VOTE, "<map> [map] [map] [map]")
	register_concmd("amx_votekick", "cmdVoteKickBan", ADMIN_VOTE, "<name or #userid>")
	register_concmd("amx_voteban", "cmdVoteKickBan", ADMIN_VOTE, "<name or #userid>")
change the ADMIN_VOTE to ADMIN_ALL

i know you said not to post codes.. but thats super simple to do


**edit**

actually im not sure if that will allow normal ppl to use them thru menus or anything.. not sure, i never really use menus.. but it might.. otherwise that will still allow them to use them in the console
__________________

Last edited by diamond-optic; 11-07-2006 at 09:15.
diamond-optic is offline
-=|GodLik3|=-
Member
Join Date: Oct 2006
Old 11-07-2006 , 09:21   Re: Modify Vote/Ban Menu Plugin....
Reply With Quote #5

where do i get the adminvote.sma file?
__________________
-=|GodLik3|=- is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 11-07-2006 , 09:28   Re: Modify Vote/Ban Menu Plugin....
Reply With Quote #6

it comes with amxx.. i believe it should be in the scripting folder
__________________
diamond-optic is offline
-=|GodLik3|=-
Member
Join Date: Oct 2006
Old 11-07-2006 , 09:48   Re: Modify Vote/Ban Menu Plugin....
Reply With Quote #7

ty diamond-optic. +karma for helping.
__________________
-=|GodLik3|=- is offline
-=|GodLik3|=-
Member
Join Date: Oct 2006
Old 11-07-2006 , 09:58   Re: Modify Vote/Ban Menu Plugin....
Reply With Quote #8

diamond-optic, since you've helped me so much, can you also help me with the plugin I specified? I like the menu LOL.

Whoever helps me with the plugin I specified will get +Karma from me (Thats all I can give )
__________________
-=|GodLik3|=- is offline
Old 11-07-2006, 10:02
-=|GodLik3|=-
This message has been deleted by -=|GodLik3|=-.
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 06:51.


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