AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   NEED HELP TO MODIFY PLUGIN (https://forums.alliedmods.net/showthread.php?t=47011)

-=|GodLik3|=- 11-07-2006 07:15

NEED HELP TO MODIFY PLUGIN
 
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.

LittleDude 11-07-2006 08:24

Re: Modify Vote/Ban Menu Plugin....
 
1 Attachment(s)
this what you want?

-=|GodLik3|=- 11-07-2006 08:48

Re: Modify Vote/Ban Menu Plugin....
 
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.

diamond-optic 11-07-2006 09:11

Re: Modify Vote/Ban Menu Plugin....
 
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

-=|GodLik3|=- 11-07-2006 09:21

Re: Modify Vote/Ban Menu Plugin....
 
where do i get the adminvote.sma file?

diamond-optic 11-07-2006 09:28

Re: Modify Vote/Ban Menu Plugin....
 
it comes with amxx.. i believe it should be in the scripting folder

-=|GodLik3|=- 11-07-2006 09:48

Re: Modify Vote/Ban Menu Plugin....
 
ty diamond-optic. +karma for helping.

-=|GodLik3|=- 11-07-2006 09:58

Re: Modify Vote/Ban Menu Plugin....
 
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 :( )


All times are GMT -4. The time now is 06:51.

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