Casino Question
#1

is it posible to disable gambling inside Casinos and if so can you explain how to do it. Because the server im running we are tring to have a realistic economy but we would like to use one of the casino interiors. Thanks

-Alex Mazza & Epic Roleplay Admin team
Reply
#2

Quote:
Originally Posted by Warshadow
is it posible to disable gambling inside Casinos and if so can you explain how to do it. Because the server im running we are tring to have a realistic economy but we would like to use one of the casino interiors. Thanks

-Alex Mazza & Epic Roleplay Admin team
Simple, make money serverside & a timer that resets the players money if it is not that of the serverside money.
Reply
#3

? im confused
Reply
#4

Look at some of the anticheats and you will understand
Reply
#5

The only way to disable casinos is to disable the all enter/exits with DisableInteriorEnterExits() and create a manual entry by /enter or a checkpoint/pickup etc. This will disable all the interior scripts which includes food places and ammunation.
Reply
#6

Quote:
Originally Posted by Kye
The only way to disable casinos is to disable the all enter/exits with DisableInteriorEnterExits() and create a manual entry by /enter or a checkpoint/pickup etc. This will disable all the interior scripts which includes food places and ammunation.
He can do other thing instead. Set a timer of 1000 milliseconds in OnGameModeInit, then inside the timer he can check when the player is close enough to the casino money place, if he's too close. He simply sets the player in another place.
Reply
#7

here

Код:
			if(IsPlayerAdmin(i) == 0)
			{
				if(	xp[i] > 1924.6294 && xp[i] < 1980.5889 && yp[i] > 967.7754 && yp[i] < 1065.2993 && zp[i] > 950.0 && zp[i] < 1005.0 ||
					xp[i] > 2136.8352 && xp[i] < 2290.0227 && yp[i] > 1573.1084 && yp[i] < 1634.7665 && zp[i] > 1005.0 && zp[i] < 1050.0
					)
				{
					SetPlayerHealth(i,0);
					SendClientMessage(i,COLOR_RED,"Go out");
				}
			}
Reply
#8

Why should he do it in your way?..
Reply
#9

Quote:
Originally Posted by Kye
The only way to disable casinos is to disable the all enter/exits with DisableInteriorEnterExits() and create a manual entry by /enter or a checkpoint/pickup etc. This will disable all the interior scripts which includes food places and ammunation.
I believe you can press ENTER near a casino table and they will work.
Reply
#10

Is there a way to make it so that in all the casinos interiors within a certain radius all the money earned it reset?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)