AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Plugin Help] - *Unlimited Nades* (https://forums.alliedmods.net/showthread.php?t=168347)

forid786 09-27-2011 16:04

[Plugin Help] - *Unlimited Nades*
 
1 Attachment(s)
Basically i got a plugin that is meant to allow admins to give unlimited nades to themselves or to other players but this plugin has a problem, anyone can get unlimited nades by themselves without admin rights simply by typing the command ( amx_nade *player name*).

Can someone please edit this plugin so that only admins can give unlimited nades to players , and once you're done can you post it here

Thank You !!

very much

Stereo 09-27-2011 16:52

Re: [Plugin Help] - *Unlimited Nades*
 
Remove .amxx file

joshknifer 09-27-2011 17:39

Re: [Plugin Help] - *Unlimited Nades*
 
You would need to add a line to get the user access level:

PHP Code:

if( get_user_flags(id) & ( ADMIN_KICK ) ) 


Napoleon_be 09-28-2011 04:46

Re: [Plugin Help] - *Unlimited Nades*
 
Quote:

Originally Posted by joshknifer (Post 1564384)
You would need to add a line to get the user access level:

PHP Code:

if( get_user_flags(id) & ( ADMIN_KICK ) ) 


^this.

Jenkins 09-28-2011 05:00

Re: [Plugin Help] - *Unlimited Nades*
 
Or basicly add ADMIN_KICK on the register_clcmd :p

forid786 09-28-2011 15:58

Re: [Plugin Help] - *Unlimited Nades*
 
thanks for you're help just testing

forid786 09-28-2011 16:22

Re: [Plugin Help] - *Unlimited Nades*
 
double post.

forid786 09-28-2011 16:25

Re: [Plugin Help] - *Unlimited Nades*
 
Quote:

Originally Posted by ANTICHRISTUS (Post 1564917)
ADMIN_KICK, are you sure ? he wants it for all the players, then the admin flag should be z [- user (no admin)]

ps. remove the amxx file please :).


i want it for all players but i want to make it so that only admins can give unlimited nades to themselves and other people

ConnorMcLeod 09-28-2011 16:29

Re: [Plugin Help] - *Unlimited Nades*
 
PHP Code:

public givenade(id)


->

PHP Code:

public givenade(idlvlcid)
{
    if( !
cmd_target(idlvlcid2) )
    {
        return 
PLUGIN_HANDLED
    



forid786 09-28-2011 16:35

Re: [Plugin Help] - *Unlimited Nades*
 
Quote:

Originally Posted by ConnorMcLeod (Post 1564928)
PHP Code:

public givenade(id)


->

PHP Code:

public givenade(idlvlcid)
{
    if( !
cmd_target(idlvlcid2) )
    {
        return 
PLUGIN_HANDLED
    



i have added that code to it but i cant compile can you compile it for me and post thanks


All times are GMT -4. The time now is 19:35.

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