Casinos - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Casinos (
/showthread.php?tid=102340)
Casinos -
ledzep - 15.10.2009
Will casinos be synced? Even if just the winnings were synced it would be great. It would be fantastic to be able to let players go into casinos without worrying about cheating.
Re: Casinos -
BMUK - 15.10.2009
It doesnt look like legitimate winnings will be detectable in a native callback!
You can combat things like this via scripting like closing all gambling stations, making your own with objects and making your own gambling system :P
Re: Casinos -
ledzep - 15.10.2009
The visual appeal of the built-in gambling games are far better than anything that can be scripted. Unless there is a way to create card icons inside textdraws and such.
Re: Casinos -
Matite - 15.10.2009
Quote:
Originally Posted by ledzep
It would be fantastic to be able to let players go into casinos without worrying about cheating.
|
It is true there is no callback for money won in the casino but if you code your anti cheat (AC) correctly then it is not an issue.
The tools to create an effective server side AC are all there ready to go (for example, IsPlayerInRangeOfPoint).
Re: Casinos -
Rizard - 15.10.2009
Also using a variable / string that will be updated every time a key is pressed or something so it will have the last key pressed as storage... anyone following me? xD ...
you could say that if( IsPlayerInRangOfPoint (take the casino's here) && lastkeypressed == "gamble key") ...
I'm not sure at all if I'm making any sence here but I guess it's not impossible
Grts Riz
Re: Casinos -
Dj_maryo1993 - 15.10.2009
All i can say it's that an native function like
Код:
public CazinoWinnings(playerid,wins,location,mode)
Made by "the creators" will be nice.
Re: Casinos -
ledzep - 15.10.2009
Quote:
pawn Код:
OnPlayerRequestGamble(playerid, gameid)
return 1 = allow
0 = disallow
Would be a way to disable gambling without disabling interior exit/enter markers
pawn Код:
OnPlayerGamble(playerid, gameid, wager)
Would be called the when the player starts the casino game
pawn Код:
OnPlayerRecieveWinnings(playerid, gameid, amount, draw)
return 1 = give money
0 = dont give money
draw = tie game? i.e. a push on blackjack
Could regulate winnings with this function (since the gambing system seems rigged IMO)
|
Something along those lines and I would be satisfied.