Raised This Month: $ Target: $400
 0% 

Blackjack (Johnny) v1.02


Post New Thread Reply   
 
Thread Tools Display Modes
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 04-25-2006 , 18:50  
Reply With Quote #21

Oh my bad, take out the "" around blackjack.

Code:
public client_putinserver(id) {      client_print(id, print_chat, "[BLKJCK] Type blackjack once you're dead to play.") }
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
slugger
Member
Join Date: Apr 2006
Old 04-25-2006 , 19:17  
Reply With Quote #22

Quote:
Originally Posted by Kensai
Oh my bad, take out the "" around blackjack.

Code:
public client_putinserver(id) {      client_print(id, print_chat, "[BLKJCK] Type blackjack once you're dead to play.") }
that's a negative.
Quote:
/home/users/amxmodx/tmp3/phpxfOGAs.sma(547) : error 001: expected token: ";", but found "public"
/home/users/amxmodx/tmp3/phpxfOGAs.sma(550) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpxfOGAs.sma(553) : error 021: symbol already defined: "register_plugin"
/home/users/amxmodx/tmp3/phpxfOGAs.sma(556) : error 021: symbol already defined: "register_clcmd"
/home/users/amxmodx/tmp3/phpxfOGAs.sma(560) : error 021: symbol already defined: "register_menucmd"
/home/users/amxmodx/tmp3/phpxfOGAs.sma(564) : error 021: symbol already defined: "register_cvar"
/home/users/amxmodx/tmp3/phpxfOGAs.sma(567) : error 010: invalid function or declaration
/home/users/amxmodx/tmp3/phpxfOGAs.sma(574) : warning 203: symbol is never used: "plugin_init"

7 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpxfOGAs.amx (compile failed).
slugger is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 04-25-2006 , 19:22  
Reply With Quote #23

Try this.
Attached Files
File Type: sma Get Plugin or Get Source (blackjack.sma - 779 views - 13.8 KB)
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
slugger
Member
Join Date: Apr 2006
Old 04-26-2006 , 00:38  
Reply With Quote #24

is that the new one with the 16k limit? cuz i want that one
slugger is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 04-26-2006 , 20:04  
Reply With Quote #25

No, but here's the limit version.
Attached Files
File Type: sma Get Plugin or Get Source (blackjacklimit.sma - 754 views - 14.1 KB)
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
slugger
Member
Join Date: Apr 2006
Old 04-27-2006 , 16:40  
Reply With Quote #26

nothing showed up for me.
slugger is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 04-27-2006 , 19:09  
Reply With Quote #27

You mean the chat msg didn't show up?
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
slugger
Member
Join Date: Apr 2006
Old 04-28-2006 , 11:52  
Reply With Quote #28

Quote:
Originally Posted by Kensai
You mean the chat msg didn't show up?
yea, exactly.
slugger is offline
Caine
New Member
Join Date: Jun 2006
Old 06-25-2006 , 10:29   Re: Blackjack (Johnny)
Reply With Quote #29

I have a question is there anyway to allow a maximum usage of typing the word blackjack in a round.

I have noticed quite a few of my players betting all their money, and if they dont get 21, they just resay Blackjack again to reset the game.

Do this a couple of times and its enough to respawn (i run a uwc3 server)..

I have always loved this pluggin back from when it was amx and i have it set to death only, I figure its something for people to do while they wait for the 2 last campers to leave their nests and slowly go searching for each other...though this bug in its usage makes it less useable because of the abuse of scrolls of respawn and tomes of experience...

Thanks in advance for any assistance.. The variable could be something that allows an amount to be set, so if someone does abuse they can only do it once or so... I would probably set it to 2, just in case someone legit exits out by accident and needs to start the game again..
Caine is offline
Caine
New Member
Join Date: Jun 2006
Old 06-28-2006 , 16:43   Re: Blackjack (Johnny)
Reply With Quote #30

wow thanks for all the help lol... anyways i figured out away around the glitch

i now have the plugin adjust the users money when betting is completed as opposed to after the game, since this was allowing people to just retype blackjack and start over if they didnt like their cards.... cute little glitch over all, could make massive amounts of money within a few minutes being dead... blackjack->bet all money->look at cards, not 21, type blackjack again->bet all money-> gets 21 -> hopes not for a tie and gets tons of money..

so now the adjusted plugin does this

user makes bet, when done betting money is subtracted from user.

then if they lose money stays the same (since i already took the money)
if they tie i give them back the money taken (give them back the money i took earlier)
if they win i give them twice the amount back so they see a profit.. (give them back their money, plus their winnings)
Caine 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 17:31.


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