Raised This Month: $51 Target: $400
 12% 

[Plugin Help] - *Unlimited Nades*


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
forid786
BANNED
Join Date: May 2011
Location: U.K
Old 09-27-2011 , 16:04   [Plugin Help] - *Unlimited Nades*
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (unlimited_nades.sma - 419 views - 4.5 KB)

Last edited by ConnorMcLeod; 09-28-2011 at 16:26. Reason: info. ( PLEASE HELP A.S.A.P )
forid786 is offline
Stereo
Veteran Member
Join Date: Dec 2010
Old 09-27-2011 , 16:52   Re: [Plugin Help] - *Unlimited Nades*
Reply With Quote #2

Remove .amxx file
Stereo is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 09-27-2011 , 17:39   Re: [Plugin Help] - *Unlimited Nades*
Reply With Quote #3

You would need to add a line to get the user access level:

PHP Code:
if( get_user_flags(id) & ( ADMIN_KICK ) ) 
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 09-28-2011 , 04:46   Re: [Plugin Help] - *Unlimited Nades*
Reply With Quote #4

Quote:
Originally Posted by joshknifer View Post
You would need to add a line to get the user access level:

PHP Code:
if( get_user_flags(id) & ( ADMIN_KICK ) ) 
^this.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Jenkins
AlliedModders Donor
Join Date: Jul 2011
Old 09-28-2011 , 05:00   Re: [Plugin Help] - *Unlimited Nades*
Reply With Quote #5

Or basicly add ADMIN_KICK on the register_clcmd :p
Jenkins is offline
forid786
BANNED
Join Date: May 2011
Location: U.K
Old 09-28-2011 , 15:58   Re: [Plugin Help] - *Unlimited Nades*
Reply With Quote #6

thanks for you're help just testing

Last edited by forid786; 09-28-2011 at 16:03.
forid786 is offline
Old 09-28-2011, 16:19
ANTICHRISTUS
This message has been deleted by ANTICHRISTUS. Reason: I misunderstood it, damn it !
forid786
BANNED
Join Date: May 2011
Location: U.K
Old 09-28-2011 , 16:22   Re: [Plugin Help] - *Unlimited Nades*
Reply With Quote #7

double post.

Last edited by forid786; 09-28-2011 at 16:55.
forid786 is offline
forid786
BANNED
Join Date: May 2011
Location: U.K
Old 09-28-2011 , 16:25   Re: [Plugin Help] - *Unlimited Nades*
Reply With Quote #8

Quote:
Originally Posted by ANTICHRISTUS View Post
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

Last edited by forid786; 09-28-2011 at 16:28.
forid786 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-28-2011 , 16:29   Re: [Plugin Help] - *Unlimited Nades*
Reply With Quote #9

PHP Code:
public givenade(id)

->

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

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
forid786
BANNED
Join Date: May 2011
Location: U.K
Old 09-28-2011 , 16:35   Re: [Plugin Help] - *Unlimited Nades*
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
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

Last edited by forid786; 09-28-2011 at 16:47. Reason: please help im not good at scripting.
forid786 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 09:53.


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