Raised This Month: $ Target: $400
 0% 

Blackjack (Johnny) v1.02


Post New Thread Reply   
 
Thread Tools Display Modes
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 07-22-2006 , 02:59   Re: Blackjack (Johnny)
Reply With Quote #31

Sorry for not helping. Hadn't checked this thread in a while . I'll try to add a few things soon (tomorrow perhaps?)
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 07-22-2006 , 03:09   Re: Blackjack (Johnny)
Reply With Quote #32

Wow. Sorry.

Forgot about this thread.

@slugger

Um my bad. If it still doesn't work. Try this:

Instead of
Code:
public client_putinserver(id)
{
	client_print(id, print_chat, "[BLKJCK] Type blackjack once you're dead to play.")
}
Do this in the beginning.

Code:
public client_connect(id)
{
	set_task(20.0, "announce", id)
}
public announce(id)
{
	client_print(id, print_chat, "[BLKJCK] Type blackjack once you're dead to play.")
	set_task(80.0, "announce", id)
	return PLUGIN_HANDLED
}

@Caine

So problem solved or still issues?


EDIT: @Destros

Lol, just now noticed a third page O_O
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Old 08-05-2006, 15:13
Lord_Destros
This message has been deleted by Lord_Destros.
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 08-15-2006 , 16:24   Re: Blackjack (Johnny)
Reply With Quote #33

Rofl, I somehow forgot about this plugin again . I added in Kensai's code with an additional if (to check if users can play while alive) by default since the plugin SHOULD probably advertise itself.

EDIT: Added cvars amx_blackjack_limitcash and amx_blackjack_limitgames. Also it now follows Caine's method for subtracting money to prevent users from cheating.

Somebody please test the new version and post any bugs/errors you may recieve. Feel free to post any suggestions as well.

REEDIT: Fixed a stupid compile error (I think I had uploaded a wrong version of v2). Any comments?
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 09-13-2006 , 00:35   Re: Blackjack (Johnny) v1.02
Reply With Quote #34

PHP Code:
            cs_set_user_money(id,cs_get_user_money(id) - player_bet[id]) 
Line 207 - you just have
PHP Code:
            cs_set_user_money(id,cs_get_user_money player_bet[id]) 
Slmclarengt
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 09-14-2006 , 02:02   Re: Blackjack (Johnny) v1.02
Reply With Quote #35

Meh, I thought I had fixed it a while ago but I guess I reuploaded the wrong version or something. Thanks for pointing it out.
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Bonesmuggler
Member
Join Date: Sep 2005
Old 09-14-2006 , 19:21   Re: Blackjack (Johnny) v1.02
Reply With Quote #36

Does this latest update fix the problem where people can just retype blackjack when they are dead to reset hands and not lose any money?
I'm having that problem also if people don't get 20 or 21 they just retype blackjack to get new cards. I am running cs 1.6
Thanks
Bones
Bonesmuggler is offline
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 09-14-2006 , 20:00   Re: Blackjack (Johnny) v1.02
Reply With Quote #37

Quote:
Originally Posted by Bonesmuggler View Post
Does this latest update fix the problem where people can just retype blackjack when they are dead to reset hands and not lose any money?
I'm having that problem also if people don't get 20 or 21 they just retype blackjack to get new cards. I am running cs 1.6
Thanks
Bones
Here is the fixed version w/ what you want. It will check if the user is playing, and stop the person from trying it again while they are playing. The variable I created is a boolean: playing_blackjack[33]

Sleeper
Attached Files
File Type: sma Get Plugin or Get Source (blackjackv2.sma - 632 views - 15.8 KB)
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 09-17-2006 , 14:59   Re: Blackjack (Johnny) v1.02
Reply With Quote #38

The one I posted removes money as soon as they hit done. The only downside to that method is if something out of the users control comes up and overwrites the menu. As far as I know theres no way to prevent that so.............
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Caine
New Member
Join Date: Jun 2006
Old 09-26-2006 , 18:17   Re: Blackjack (Johnny) v1.02
Reply With Quote #39

Honestly I thank you for not replying too quickly about the bug..it got me up off my butt and recoded it myself... now i've been tweaking a couple plugins at a time for my gaming community...
Caine is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 09-27-2006 , 02:52   Re: Blackjack (Johnny) v1.02
Reply With Quote #40

Lol, ummmm, np. I guess the lesson we've all learned is when one is in a time of need, wait 27 days to help?
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
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 14:35.


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