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

[Store] CoinToss (v2.2, 2017-08-04)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Plugin ID:
5746
Plugin Version:
2.2
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Coin Toss plugin for gambling Zephyrus Store credits.
Old 08-01-2017 , 06:53   [Store] CoinToss (v2.2, 2017-08-04)
Reply With Quote #1

Coin Toss

for Zephyrus Store


sm_coin <credits> <name or #userid>
Alternative commands - sm_cointoss, !coin, !cointoss

Sends an invitation for Coin Toss to the player for the mentioned credits. The invited player can accept or reject the invitation. If accepted, the credits are gambled with both players having 50% chance of winning the pot. Suggestions are always welcome!

Requires Zephyrus Store

I had originally made this a long while ago but forgot about it entirely, just updated the syntax and posting it here! NOW IT IS FULLY REVAMPED!

GitHub


P.S. I know there are few other coin toss / coin flip plugins for the store already like this, this and this. Each is different and mine is definitely not the best one out there but I'll keep updating with whatever feedback I get!

Dependencies
Zephyrus Store
Marquee
Menu-Stocks

Thanks for visiting.
Attached Files
File Type: smx zeph_cointoss.smx (9.2 KB, 422 views)
File Type: sp Get Plugin or Get Source (zeph_cointoss.sp - 515 views - 7.1 KB)
__________________

Last edited by yash1441; 08-04-2017 at 07:36.
yash1441 is offline
Send a message via Skype™ to yash1441
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 08-01-2017 , 09:11   Re: [Store] CoinToss
Reply With Quote #2

if the target player somehow looses his coints between Cmd_Toss(...) and MyMenuHandler(...) you can duplicate credits because there is no check right when the game happens.
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...
Totenfluch is offline
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Old 08-01-2017 , 21:31   Re: [Store] CoinToss
Reply With Quote #3

Quote:
Originally Posted by Totenfluch View Post
if the target player somehow looses his coints between Cmd_Toss(...) and MyMenuHandler(...) you can duplicate credits because there is no check right when the game happens.
Thanks! Fixed (probably ).
__________________
yash1441 is offline
Send a message via Skype™ to yash1441
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 08-02-2017 , 15:24   Re: [Store] CoinToss (v1.5, 2017-08-02)
Reply With Quote #4

When Player A requests Player B for a Cointoss and Player C requests Player A for a cointoss and Player B accepts then Player A plays with Player C without having accepted him.

edited a letter
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...

Last edited by Totenfluch; 08-04-2017 at 17:28.
Totenfluch is offline
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Old 08-02-2017 , 20:54   Re: [Store] CoinToss (v1.5, 2017-08-02)
Reply With Quote #5

Quote:
Originally Posted by Totenfluch View Post
When Player A requests Player B for a Cointoss and Player C requests Player A for a cointoss and Player B accepts then Player A plays with Player B without having accepted him.
A requested B.
C requested A.
B accepted A.
I don't get what you're trying to explain here
__________________
yash1441 is offline
Send a message via Skype™ to yash1441
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Old 08-03-2017 , 01:27   Re: [Store] CoinToss (v1.5, 2017-08-02)
Reply With Quote #6

Quote:
Originally Posted by yash1441 View Post
I have added a pre-release with fully revamped code and visual thingy, haven't test yet so if anyone can it's well enough. I'll test it by tonight and update here if it works good!

EDIT: Updated!
__________________

Last edited by yash1441; 08-03-2017 at 15:44. Reason: v2.2
yash1441 is offline
Send a message via Skype™ to yash1441
Cruze
Veteran Member
Join Date: May 2017
Old 09-14-2017 , 01:32   Re: [Store] CoinToss (v2.2, 2017-08-04)
Reply With Quote #7

Quote:
PrintToChat(client, "%s You can\'t challenge youresf.", CHAT_PREFIX);
Quote:
PrintToChatAll("%s It\'s Heads.
Quote:
PrintToChatAll("%s It\'s Tails.
Some fixes
__________________
Taking paid private requests! Contact me
Cruze 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 21:07.


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