Raised This Month: $32 Target: $400
 8% 

Fixing a plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 03-12-2016 , 01:35   Fixing a plugin.
Reply With Quote #1

Hello,


I have a problem with the JailShop plugin that I'm using, the !gift command is only working for admins. I want it to work for all of the players.



Thanks!
Attached Files
File Type: sp Get Plugin or Get Source (jail_shop.sp - 131 views - 56.1 KB)
__________________
weeeishy is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 03-12-2016 , 05:29   Re: Fixing a plugin.
Reply With Quote #2

here you go
Attached Files
File Type: sp Get Plugin or Get Source (jail_shop.sp - 86 views - 56.1 KB)
__________________
8guawong is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 03-12-2016 , 07:23   Re: Fixing a plugin.
Reply With Quote #3

Quote:
Originally Posted by 8guawong View Post
here you go
Thanks for your help, but still only admins can use !gift to send the credits.
__________________
weeeishy is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 03-12-2016 , 07:26   Re: Fixing a plugin.
Reply With Quote #4

LOL sorry after reading your post
the original plugin should work even without modification
my version give every1 ability to other's credit XD
__________________
8guawong is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 03-12-2016 , 07:36   Re: Fixing a plugin.
Reply With Quote #5

Quote:
Originally Posted by 8guawong View Post
LOL sorry after reading your post
the original plugin should work even without modification
my version give every1 ability to other's credit XD
I'm pretty sure players with no flag can't send credits by using !gift.


No worries, and thanks again for your help
__________________
weeeishy is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 03-12-2016 , 08:57   Re: Fixing a plugin.
Reply With Quote #6

Make sure you don't have another plugin running the same command and blocking it for non-admins as I don't see anything in your code that restricts the command to just admins.
PartialCloning is offline
hu3br
Senior Member
Join Date: Apr 2015
Old 03-12-2016 , 09:21   Re: Fixing a plugin.
Reply With Quote #7

Be careful, this plugin works well! the !gift is for players give yours own credits for another, the !give is for admin give a ammount credits for any player!! If you leave !give for players, all will have the credits what want !
hu3br is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 03-12-2016 , 10:43   Re: Fixing a plugin.
Reply With Quote #8

Quote:
Originally Posted by PartialCloning View Post
Make sure you don't have another plugin running the same command and blocking it for non-admins as I don't see anything in your code that restricts the command to just admins.
I'm sure that my other plugins are not causing this, not sure what's wrong!


Quote:
Originally Posted by hu3br View Post
Be careful, this plugin works well! the !gift is for players give yours own credits for another, the !give is for admin give a ammount credits for any player!! If you leave !give for players, all will have the credits what want !
Yeah I'm aware of that, I reverted it back to the one I had b4. Thanks though.
__________________
weeeishy is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 03-12-2016 , 13:23   Re: Fixing a plugin.
Reply With Quote #9

Check configs/admin_overrides.cfg, you might of override the command flag and forgot about it.
__________________
Chaosxk is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 03-13-2016 , 03:47   Re: Fixing a plugin.
Reply With Quote #10

Quote:
Originally Posted by Chaosxk View Post
Check configs/admin_overrides.cfg, you might of override the command flag and forgot about it.
Checked the cfg, nothing wrong with it. :/
__________________
weeeishy 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 01:38.


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