SA-MP Forums Archive
Disable gamble - 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)
+--- Thread: Disable gamble (/showthread.php?tid=445886)



Disable gamble - Tanush123 - 23.06.2013

Is there a way to prevent others to gamble?


Re: Disable gamble - bensmart469 - 23.06.2013

You could check if a player is in the range of a gambling machine, and if they pressed the enter key. If they did, then you could add something that kicks them out of the casino or moves them away from the machine.


Re: Disable gamble - Tanush123 - 23.06.2013

Quote:
Originally Posted by bensmart469
Посмотреть сообщение
You could check if a player is in the range of a gambling machine, and if they pressed the enter key. If they did, then you could add something that kicks them out of the casino or moves them away from the machine.
Didn't think about that. Thanks


Re: Disable gamble - Mike_Peterson - 23.06.2013

You could try what Ben said, or you can remove all gambling machines using RemoveBuildingForPlayer.
And third, you could use this: https://sampforum.blast.hk/showthread.php?tid=355325

I'm afraid there's no quick way of doing this.

Kind regards,
Mike Peterson


Re: Disable gamble - MP2 - 23.06.2013

Remove them with RemoveBuildingForPlayer (as Mike_Peterson said) and then re-create them as objects.