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

[PAID] Store Credits (Zeph) on Surf Map Completion (ckSurf)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daleGEND
AlliedModders Donor
Join Date: Feb 2005
Location: USA
Old 05-19-2016 , 13:35   [PAID] Store Credits (Zeph) on Surf Map Completion (ckSurf)
Reply With Quote #1

Hi All,

Looking for anyone interested in creating a plugin for my surf server that essentially gives credits to anyone who completes a surf map. Static amount, pretty simplistic. Just as an incentive to complete the surf maps. Since you do not kill much on surf maps it doesn't provide ample opportunity to gain credits. So this was a way for me to try and combat this.

If you're interested in completing this plugin for me and my community, let me know with a response here or PM. Budget is pretty small, but I'll see what I can do .

Thanks for your time!
__________________
Bor3d Gaming - A Mature Online Gaming Community

Feel free to add me on STEAM as well: https://steamcommunity.com/id/b0r3d
daleGEND is offline
daleGEND
AlliedModders Donor
Join Date: Feb 2005
Location: USA
Old 05-27-2016 , 06:58   Re: [PAID] Store Credits (Zeph) on Surf Map Completion (ckSurf)
Reply With Quote #2

Someone generously offered to make the plugin for me: https://forums.alliedmods.net/showpo...postcount=1908

It does what I asked, but I noticed it has a few limitations. Someone could easily just keep completing the map and get credits over and over. I was wondering if anyone was interested they could modify the plugin to check if they've completed the map already and then give them a much smaller credit amount for that.

If you're up for it, PM me I will pay you for your time!
__________________
Bor3d Gaming - A Mature Online Gaming Community

Feel free to add me on STEAM as well: https://steamcommunity.com/id/b0r3d
daleGEND is offline
sdz
Senior Member
Join Date: Feb 2012
Old 05-27-2016 , 08:35   Re: [PAID] Store Credits (Zeph) on Surf Map Completion (ckSurf)
Reply With Quote #3

fwoop
done
Attached Files
File Type: sp Get Plugin or Get Source (zeph_ckSurf.sp - 169 views - 2.7 KB)

Last edited by sdz; 05-27-2016 at 08:35.
sdz is offline
daleGEND
AlliedModders Donor
Join Date: Feb 2005
Location: USA
Old 05-27-2016 , 12:06   Re: [PAID] Store Credits (Zeph) on Surf Map Completion (ckSurf)
Reply With Quote #4

Quote:
Originally Posted by EasSidezz View Post
fwoop
done
Thanks! I was looking over the code, but I don't see a place to specify how many credits they get for completing a map after the first time. Or does this simply not give them credits after the first time?
__________________
Bor3d Gaming - A Mature Online Gaming Community

Feel free to add me on STEAM as well: https://steamcommunity.com/id/b0r3d
daleGEND is offline
sdz
Senior Member
Join Date: Feb 2012
Old 05-27-2016 , 12:15   Re: [PAID] Store Credits (Zeph) on Surf Map Completion (ckSurf)
Reply With Quote #5

"if(!condition)" means if something is not true, or is less than one in the case of sourcepawn (correct me if i'm wrong someone)

PHP Code:
if(!mapFinished[client]) //If the client hasn't finished the map yet
    
{
        
Store_SetClientCredits(clientStore_GetClientCredits(client) + g_CreditsNormal);
        
mapFinished[client] = true//The client has finished the map so we don't call this ^^^ again
    

PHP Code:
if(!mapFinished[client])
//can also be said as
if(mapFinished[client] == false

Last edited by sdz; 05-27-2016 at 12:16.
sdz is offline
daleGEND
AlliedModders Donor
Join Date: Feb 2005
Location: USA
Old 05-27-2016 , 12:17   Re: [PAID] Store Credits (Zeph) on Surf Map Completion (ckSurf)
Reply With Quote #6

Quote:
Originally Posted by EasSidezz View Post
"if(!condition)" means if something is not true.

PHP Code:
if(!mapFinished[client]) //If the client hasn't finished the map yet
    
{
        
Store_SetClientCredits(clientStore_GetClientCredits(client) + g_CreditsNormal);
        
mapFinished[client] = true//The client has finished the map so we don't call this ^^^ again
    

PHP Code:
if(!mapFinished[client])
//can also be said as
if(mapFinished[client] == false
Ah I see! I was looking for a way to have it still give them credits after they've completed the map (for example they get 50 credits for the first time they beat the map and then get 10 credits for everytime after that), but this is a good solution for the interim. Thanks for your help!
__________________
Bor3d Gaming - A Mature Online Gaming Community

Feel free to add me on STEAM as well: https://steamcommunity.com/id/b0r3d
daleGEND is offline
sdz
Senior Member
Join Date: Feb 2012
Old 05-27-2016 , 12:19   Re: [PAID] Store Credits (Zeph) on Surf Map Completion (ckSurf)
Reply With Quote #7

Quote:
Originally Posted by daleGEND View Post
Ah I see! I was looking for a way to have it still give them credits after they've completed the map (for example they get 50 credits for the first time they beat the map and then get 10 credits for everytime after that), but this is a good solution for the interim. Thanks for your help!
I could easily do that if you'd like
sdz is offline
daleGEND
AlliedModders Donor
Join Date: Feb 2005
Location: USA
Old 05-27-2016 , 12:20   Re: [PAID] Store Credits (Zeph) on Surf Map Completion (ckSurf)
Reply With Quote #8

Quote:
Originally Posted by EasSidezz View Post
I could easily do that if you'd like
If you have the time, I won't say no
__________________
Bor3d Gaming - A Mature Online Gaming Community

Feel free to add me on STEAM as well: https://steamcommunity.com/id/b0r3d
daleGEND is offline
sdz
Senior Member
Join Date: Feb 2012
Old 05-27-2016 , 12:23   Re: [PAID] Store Credits (Zeph) on Surf Map Completion (ckSurf)
Reply With Quote #9

Quote:
Originally Posted by daleGEND View Post
If you have the time, I won't say no
Did you want that for only the map or the bonus and practice as well?
Edit: well I went ahead and made it for all of them, about 10-20% of the credits you'd get normally.
Attached Files
File Type: sp Get Plugin or Get Source (zeph_ckSurf.sp - 240 views - 2.9 KB)

Last edited by sdz; 05-27-2016 at 12:32.
sdz is offline
daleGEND
AlliedModders Donor
Join Date: Feb 2005
Location: USA
Old 05-27-2016 , 12:36   Re: [PAID] Store Credits (Zeph) on Surf Map Completion (ckSurf)
Reply With Quote #10

Quote:
Originally Posted by EasSidezz View Post
Did you want that for only the map or the bonus and practice as well?
Edit: well I went ahead and made it for all of them, about 10-20% of the credits you'd get normally.
Awesome, thanks!
__________________
Bor3d Gaming - A Mature Online Gaming Community

Feel free to add me on STEAM as well: https://steamcommunity.com/id/b0r3d
daleGEND 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:07.


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