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

Release [Timer] Store Credits Giver


Post New Thread Reply   
 
Thread Tools Display Modes
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 01-30-2013 , 21:32   Re: [Timer] Store Credits Giver
Reply With Quote #11

Quote:
Originally Posted by Glite View Post
And another issue with big map is that you divide sm_smadder_ptg by jumps so it will be not efficient to complete maps like bhop_exodus and others.
The cvar is always changeable.
__________________
retired
shavit is offline
Glite
Senior Member
Join Date: Sep 2011
Location: Ukraine
Old 01-31-2013 , 04:14   Re: [Timer] Store Credits Giver
Reply With Quote #12

Quote:
Originally Posted by shavit View Post
The cvar is always changeable.
Ye, but it needed to be configured on each map. But it's even not bad.
Also if you need this i can change OnFinishRound forward to give time in floating number, not time string.
Glite is offline
mickael002
Senior Member
Join Date: Jul 2010
Old 01-31-2013 , 04:34   Re: [Timer] Store Credits Giver
Reply With Quote #13

Fixed in 1.3! (Thanks)

Quote:
Warning ! This plugins content critical bugs !

Save your Databass before using this plugins, or your risk to lose credits of client !

See exemple of :

[Timer] Mickael # team-ninja # a fini la map en 00:27.809(+00:27.809) en 0 sauts sur Normal. Rank: 1/1.
[Timer] Mickael # team-ninja # a battu le record de la map.
[Store] You have successfully earned -2147483648 cash for finishing this map.



Use this plugins at your own risk.

Last edited by mickael002; 01-31-2013 at 09:21.
mickael002 is offline
Glite
Senior Member
Join Date: Sep 2011
Location: Ukraine
Old 01-31-2013 , 05:40   Re: [Timer] Store Credits Giver
Reply With Quote #14

Quote:
Originally Posted by mickael002 View Post
en 0 sauts
Answer.
Glite is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 01-31-2013 , 05:48   Re: [Timer] Store Credits Giver
Reply With Quote #15

Quote:
Originally Posted by mickael002 View Post
Warning ! This plugins content critical bugs !

Save your Databass before using this plugins, or your risk to lose credits of client !

See exemple of :

[Timer] Mickael # team-ninja # a fini la map en 00:27.809(+00:27.809) en 0 sauts sur Normal. Rank: 1/1.
[Timer] Mickael # team-ninja # a battu le record de la map.
[Store] You have successfully earned -2147483648 cash for finishing this map.



Use this plugins at your own risk.
To finish a map at a legit way, you need to jump atleast once.
__________________
retired
shavit is offline
mickael002
Senior Member
Join Date: Jul 2010
Old 01-31-2013 , 05:54   Re: [Timer] Store Credits Giver
Reply With Quote #16

Ok so, edit your code and add a if please

if(jump <= 0){
print(client) : No credit have added to your account because 0 jump its not possible
}else if(jump >= 1){
Store_GiveCredits(accid, iPTG, CreditsCallback, pack);
}
mickael002 is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 01-31-2013 , 06:20   Re: [Timer] Store Credits Giver
Reply With Quote #17

Quote:
Originally Posted by mickael002 View Post
Ok so, edit your code and add a if please

if(jump <= 0){
print(client) : No credit have added to your account because 0 jump its not possible
}else if(jump >= 1){
Store_GiveCredits(accid, iPTG, CreditsCallback, pack);
}
PHP Code:
1.3 Fixed bug that will get you infinite credits for completing a map without jumping
__________________
retired
shavit is offline
xNos
SourceMod Donor
Join Date: Dec 2012
Location: Israel
Old 01-31-2013 , 09:01   Re: [Timer] Store Credits Giver
Reply With Quote #18

Like!
xNos is offline
Send a message via Skype™ to xNos
mickael002
Senior Member
Join Date: Jul 2010
Old 01-31-2013 , 09:22   Re: [Timer] Store Credits Giver
Reply With Quote #19

Thanks shavit, i have test the 1.3 and no bug credits.

Nice job
mickael002 is offline
DennisSkov
Member
Join Date: Apr 2013
Old 04-26-2013 , 09:53   Re: [Timer] Store Credits Giver
Reply With Quote #20

I have modified this plugin (not much, only changed line 97) so that you can decide if you want a player to receive, let's say 20 Credits - no matter how many times he jumped. The sm_smadder_ptg value is not multiplied or divided with anything.

http://depositfiles.com/files/j1xtq38p6
DennisSkov 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:54.


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