Raised This Month: $ Target: $400
 0% 

Givecash For client custom flags only.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zachgang15
Junior Member
Join Date: Nov 2009
Old 11-01-2009 , 21:59   Givecash For client custom flags only.
Reply With Quote #1

I'm tying to get a plugin that is in a .zip folder because im too dumb :p but ive seen a few plugins that have 16k cash for css every round , i was trying to get a addon to give 10k cash for css every round but to only people with client flag o or p or any of the customs , also if u can make this ... please please be sure to explain how to add them as access. i would greatly appreciate this.
zachgang15 is offline
zachgang15
Junior Member
Join Date: Nov 2009
Old 11-01-2009 , 22:12   Re: Givecash For client custom flags only.
Reply With Quote #2

ill pay 5$ if u explain in full on how to add people + make it . its not much but ive been told this should be a VERY easy plugin to make.
zachgang15 is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 11-01-2009 , 23:27   Re: Givecash For client custom flags only.
Reply With Quote #3

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

You could edit this plugin, and replace ADMFLAG_RESERVATION/ROOT with the appropriate CUSTOM flag. I'm not sure which ones correspond to the letters, but it's safe to say that the first custom flag (o?) is 1, so on so forth.
PHP Code:
        ADMFLAG_CUSTOM1
        ADMFLAG_CUSTOM2
        ADMFLAG_CUSTOM3
        ADMFLAG_CUSTOM4
        ADMFLAG_CUSTOM5
        ADMFLAG_CUSTOM6 
thetwistedpanda is offline
zachgang15
Junior Member
Join Date: Nov 2009
Old 11-01-2009 , 23:36   Re: Givecash For client custom flags only.
Reply With Quote #4

thanks but like i said , im bad at editing scripts ect =\ u think u could do it and give me the code? i can compile it , just learned how

EDIT: and i was wondering if this could be for round_Start not round_end?
zachgang15 is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 11-02-2009 , 00:22   Re: Givecash For client custom flags only.
Reply With Quote #5

Here ya go. It gives sm_cash4custom_amount (default: 10000) cash to any player who has a custom flag.

I tested it on my development server and it seems to work. However, I added a small feature that I cannot test on mine as I do not have any non-admin lackies running around. Basically I'm going under the assumption clients with a CUSTOM# flag also have an AdminID. This prevents the script from checking CUSTOM# access unnecessarily. However, if they don't, then it'll be a quick fix to make it working again regardless.

*Edit: Updated post with the set to 10k request*
*Edit2: Updated to allow ROOT access to it as wel*
Attached Files
File Type: sp Get Plugin or Get Source (cash4custom.sp - 281 views - 1.5 KB)

Last edited by thetwistedpanda; 11-02-2009 at 00:41.
thetwistedpanda is offline
zachgang15
Junior Member
Join Date: Nov 2009
Old 11-02-2009 , 00:32   Re: Givecash For client custom flags only.
Reply With Quote #6

? i didnt get anything ... :/
zachgang15 is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 11-02-2009 , 00:33   Re: Givecash For client custom flags only.
Reply With Quote #7

Click the "Get Plugin" link in my post... Save it to /addons/sourcemod/plugins/ in your dedicated server.
thetwistedpanda 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 16:32.


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