v11.10.20

This commit is contained in:
Lorenc 2018-03-19 01:32:24 +11:00
parent 646feb78cd
commit a024ab3894
14 changed files with 2467 additions and 4551 deletions

3
.gitignore vendored
View File

@ -34,6 +34,9 @@ filterscripts/*
# plugins
plugins/*
!plugins/TPoker.cpp
!plugins/TPoker.so
!plugins/TPoker.dll
# gamemodes
gamemodes/*

View File

@ -120,7 +120,7 @@ native gpci ( playerid, serial[ ], len );
mysql_function_query(dbHandle,sprintf("UPDATE `GARAGES` SET OWNER=%d,PRICE=%d,INTERIOR=%d WHERE ID=%d",g_garageData[(%0)][E_OWNER_ID],g_garageData[(%0)][E_PRICE],g_garageData[(%0)][E_INTERIOR_ID],(%0)),true,"","")
/* Beast Functions */
new bool: False = false, szNormalString[ 144 ];
new bool: False = false;
#define SendClientMessageToAllFormatted(%1,%2,%3) \
do{format(szNormalString,sizeof(szNormalString),(%2),%3),SendClientMessageToAll((%1),szNormalString);}while(False)
#define SendClientMessageToRCON(%1,%2,%3) \
@ -141,7 +141,7 @@ new bool: False = false, szNormalString[ 144 ];
#define CreateBillboard(%0,%1,%2,%3,%4) SetDynamicObjectMaterialText(CreateDynamicObject(7246,%1,%2,%3,0,0,%4),0,(%0),120,"Arial",24,0,-1,-16777216,1)
/* ** Configuration ** */
#define FILE_BUILD "v11.5.12"
#define FILE_BUILD "v11.10.20"
#define SERVER_NAME "San Fierro Cops And Robbers (0.3.7)"
#define SERVER_WEBSITE "www.irresistiblegaming.com"
#define SERVER_IP "192.169.82.202:7777"
@ -1261,15 +1261,18 @@ new
;
/* ** ATM System ** */
#define MAX_ATMS 46
enum E_ATM_DATA
{
bool: E_CREATED, E_CHECKPOINT, Float: E_HEALTH,
E_CHECKPOINT, Float: E_HEALTH, E_TIMESTAMP,
E_OBJECT, Text3D: E_LABEL, bool: E_DISABLED,
E_PICKUP, E_LOOT, E_TIMESTAMP
E_PICKUP, E_LOOT
};
new
g_atmData [ 46 ] [ E_ATM_DATA ]
g_atmData [ MAX_ATMS ] [ E_ATM_DATA ],
Iterator: atms < MAX_ATMS >
;
/* ** Invalid Mod Array ** */
@ -4297,7 +4300,7 @@ public OnGameModeInit()
SetDynamicObjectMaterial( CreateDynamicObject( 12814, -2337.6, -105.3, 34.28, 0.0, 0.0, 90.00, .streamdistance = 500.0, .priority = 100 ), 0, 19381, "all_walls", "desgreengrass" );
// Mining
SetDynamicObjectMaterial( CreateDynamicObject(9864, -2724.33, 1230.44, 30.70, 0.0, 0.0, 0.0, .streamdistance = 500.0, .priority = 100 ), 3, 4845, "griffobs_las", "dirt64b2" );
SetDynamicObjectMaterial( CreateDynamicObject( 9864, -2724.33, 1230.44, 30.70, 0.0, 0.0, 0.0, .streamdistance = 500.0, .priority = 100 ), 3, 4845, "griffobs_las", "dirt64b2" );
// Open warehouse near driving school
CreateDynamicObject( 19486, -2111.13, -27.23, 36.95, 0.00, 0.00, -90.00 );
@ -5429,7 +5432,7 @@ public OnServerUpdate( )
ReplenishRobberyNpc( clerkid );
// Replenish Atms
for( new i = 0; i < sizeof( g_atmData ); i++ ) if ( g_atmData[ i ] [ E_CREATED ] && g_atmData[ i ] [ E_DISABLED ] && g_iTime > g_atmData[ i ] [ E_TIMESTAMP ] ) {
foreach ( new i : atms ) if ( g_atmData[ i ] [ E_DISABLED ] && g_iTime > g_atmData[ i ] [ E_TIMESTAMP ] ) {
UpdateDynamic3DTextLabelText( g_atmData[ i ] [ E_LABEL ], COLOR_GOLD, "[ATM]\n"COL_GREY"100%" );
DestroyDynamicPickup( g_atmData[ i ] [ E_PICKUP ] ), g_atmData[ i ] [ E_PICKUP ] = -1;
g_atmData[ i ] [ E_LOOT ] = 0, g_atmData[ i ] [ E_DISABLED ] = false, g_atmData[ i ] [ E_HEALTH ] = 100.0;
@ -6204,14 +6207,10 @@ thread OnPlayerBanCheck( playerid )
}
return 1;
}*/
public OnPlayerDisconnect( playerid, reason )
public OnNpcDisconnect( npcid, reason )
{
static
string[ 64 ], color;
#if ENABLED_SECURE_TRUCK == true
if ( g_secureTruckDriver == playerid )
if ( g_secureTruckDriver == npcid )
{
restartSecurityGuardProcess( .inform_npc = false );
g_secureTruckDriver = INVALID_PLAYER_ID;
@ -6220,10 +6219,13 @@ public OnPlayerDisconnect( playerid, reason )
return 1;
}
#endif
return 1;
}
// Filter out bots
if ( ! ( 0 <= playerid < MAX_PLAYERS ) )
return 1;
public OnPlayerDisconnect( playerid, reason )
{
static
string[ 64 ], color;
// Reset player variables
SavePlayerData( playerid, true );
@ -6733,7 +6735,7 @@ public OnPlayerSpawn( playerid )
SetPlayerColorToTeam( playerid );
SetPlayerVirtualWorld( playerid, 0 );
SetPlayerRandomSpawn( playerid );
CallLocalFunction( "SetPlayerRandomSpawn", "d", playerid );
if ( p_VIPLevel[ playerid ] > 0 && p_VIPWep1{ playerid } != 0 ) GivePlayerWeapon( playerid, p_VIPWep1{ playerid }, 200 );
if ( p_VIPLevel[ playerid ] >= VIP_GOLD && p_VIPWep2{ playerid } != 0 ) GivePlayerWeapon( playerid, p_VIPWep2{ playerid }, 200 );
@ -6971,7 +6973,7 @@ public OnPlayerShootDynamicObject( playerid, weaponid, objectid, Float:x, Float:
new
Float: Damage = GetWeaponDamageFromDistance( weaponid, GetPlayerDistanceFromPoint( playerid, x, y, z ) );
for( new i = 0; i < sizeof( g_atmData ); i++ ) if ( g_atmData[ i ] [ E_CREATED ] ) {
foreach ( new i : atms ) {
if ( g_atmData[ i ] [ E_OBJECT ] == objectid && !g_atmData[ i ] [ E_DISABLED ] )
{
@ -10910,7 +10912,7 @@ CMD:slapass( playerid, params[ ] )
CMD:sex( playerid, params[ ] )
{
CreateLoopingAnimation( playerid, "SNM", "SPANKING_ENDW", 4.0, 0, 0, 0, 0, 0 );
CreateLoopingAnimation( playerid, "SNM", "SPANKING_IDLEW", 4.0, 0, 0, 0, 0, 0 );
return 1;
}
@ -19080,7 +19082,7 @@ public OnPlayerEnterDynamicCP(playerid, checkpointid)
if ( !IsPlayerInAnyVehicle( playerid ) )
{
for( new i; i < sizeof( g_atmData ); i ++ ) if ( g_atmData[ i ] [ E_CREATED ] && checkpointid == g_atmData[ i ] [ E_CHECKPOINT ] ) {
foreach ( new i : atms ) if ( checkpointid == g_atmData[ i ] [ E_CHECKPOINT ] ) {
if ( g_atmData[ i ] [ E_DISABLED ] ) {
return SendError( playerid, "This ATM has recently been robbed and cannot be accessed for now." );
} else {
@ -19088,7 +19090,8 @@ public OnPlayerEnterDynamicCP(playerid, checkpointid)
}
}
}
if ( hasTickcountPassed( p_EntranceTickcount[ playerid ], 2500 ) )
if ( CanPlayerExitEntrance( playerid ) )
{
if ( !IsPlayerInAnyVehicle( playerid ) )
{
@ -19101,7 +19104,7 @@ public OnPlayerEnterDynamicCP(playerid, checkpointid)
SetPlayerInterior( playerid, g_entranceData[ i ] [ E_INTERIOR ] );
SetPlayerVirtualWorld( playerid, g_entranceData[ i ] [ E_WORLD ] );
SetPlayerPos( playerid, g_entranceData[ i ] [ E_LX ], g_entranceData[ i ] [ E_LY ], g_entranceData[ i ] [ E_LZ ] );
p_EntranceTickcount[ playerid ] = GetTickCount( );
UpdatePlayerEntranceExitTick( playerid );
if ( g_entranceData[ i ] [ E_CUSTOM ] )
{
pauseToLoad( playerid );
@ -19125,7 +19128,7 @@ public OnPlayerEnterDynamicCP(playerid, checkpointid)
TogglePlayerControllable( playerid, 0 );
SetTimerEx( "ope_Unfreeze", 1250, false, "d", playerid );
SetPlayerVirtualWorld( playerid, 0 );
p_EntranceTickcount[ playerid ] = GetTickCount( );
UpdatePlayerEntranceExitTick( playerid );
SyncSpectation( playerid );
break;
}
@ -19633,19 +19636,19 @@ public OnPlayerUseSlotMachine( playerid, slotid, first_combo, second_combo, thir
switch( first_combo )
{
// Single bar
case 1: iNetWin = 20000;
case 1: iNetWin = 30000;
// Bells
case 2: iNetWin = 10000;
case 2: iNetWin = 20000;
// Cherry
case 3: iNetWin = 5000;
case 3: iNetWin = 10000;
// Grapes
case 4: iNetWin = 2000;
case 4: iNetWin = 5000;
// 69
case 5: iNetWin = 1000;
case 5: iNetWin = 2500;
}
}
}
@ -19740,7 +19743,7 @@ public OnPlayerPickUpDynamicPickup( playerid, pickupid )
// Money bag from atms
if ( p_Class[ playerid ] != CLASS_POLICE ) {
for( new i = 0; i < sizeof( g_atmData ); i++ ) if ( g_atmData[ i ] [ E_CREATED ] && g_atmData[ i ] [ E_DISABLED ] ) {
foreach ( new i : atms ) if ( g_atmData[ i ] [ E_DISABLED ] ) {
if ( g_atmData[ i ] [ E_PICKUP ] == pickupid && pickupid != -1 ) {
new
szCity[ MAX_ZONE_NAME ], szLocation[ MAX_ZONE_NAME ], iLoot = g_atmData[ i ] [ E_LOOT ];
@ -20962,7 +20965,7 @@ public OnPlayerUpdate( playerid )
#if ENABLED_SECURE_TRUCK == true
if ( GetPlayerSurfingVehicleID( playerid ) == g_secureTruckVehicle || IsPlayerInVehicle( playerid, g_secureTruckVehicle ) ) {
if ( IsSecurityDriverAFK( ) ) {
SetPlayerRandomSpawn( playerid );
CallLocalFunction( "SetPlayerRandomSpawn", "d", playerid );
SendServerMessage( playerid, "You seemed to fly away with the security guard. You've been teleported to a spawn." );
}
}
@ -27219,7 +27222,7 @@ stock SendGlobalMessage( colour, format[ ], va_args<> )
return 1;
}
stock SetPlayerRandomSpawn( playerid )
function SetPlayerRandomSpawn( playerid )
{
if ( p_LeftPaintball{ playerid } == true )
{
@ -27325,7 +27328,7 @@ stock SetPlayerRandomSpawn( playerid )
}
}
}
return 1;
return Y_HOOKS_CONTINUE_RETURN_1;
}
stock initializeCheckpoints( )
@ -28182,7 +28185,7 @@ stock IsPlayerFireman( playerid )
return false;
}
stock CreateBribe( Float: fX, Float: fY, Float: fZ, iExistingID = -1 )
stock CreateBribe( Float: fX, Float: fY, Float: fZ, iExistingID = ITER_NONE )
{
new
bID = iExistingID != ITER_NONE ? iExistingID : Iter_Free(BribeCount);
@ -28200,7 +28203,7 @@ stock CreateBribe( Float: fX, Float: fY, Float: fZ, iExistingID = -1 )
g_bribeData[ bID ] [ E_PICKUP ] [ 1 ] = CreateDynamicPickup( 19300, 14, fX, fY, fZ );
g_bribeData[ bID ] [ E_LABEL ] = CreateDynamic3DTextLabel( sprintf( "Bribe(%d)", bID ), COLOR_GOLD, fX, fY, fZ, 15.0 );
if ( iExistingID == -1 )
if ( iExistingID == ITER_NONE )
mysql_single_query( sprintf( "INSERT INTO `BRIBES` VALUES (%d,%f,%f,%f)", bID, fX, fY, fZ ) );
}
return bID;
@ -30057,28 +30060,23 @@ stock VIPToString( viplvl )
stock CreateATM( Float: X, Float: Y, Float: Z, Float: rX, Float: offset = 180.0 )
{
new ID = -1;
for( new i; i < sizeof( g_atmData ); i ++ )
new ID = Iter_Free( atms );
if ( ID != ITER_NONE )
{
if ( g_atmData[ i ] [ E_CREATED ] == false ) {
ID = i;
break;
}
rX = rX - offset;
new
Float: nX = X + 1.0 * -floatsin( -rX, degrees ),
Float: nY = Y + 1.0 * -floatcos( -rX, degrees )
;
Iter_Add( atms, ID );
g_atmData[ ID ] [ E_HEALTH ] = 100.0;
g_atmData[ ID ] [ E_CHECKPOINT ] = CreateDynamicCP( nX, nY, Z, 1.0 , -1, -1, -1, 100.0 );
g_atmData[ ID ] [ E_OBJECT ] = CreateDynamicObject( 19324, X, Y, Z, 0.0, 0.0, rX, -1, -1, -1, 100.0, .priority = 2 );
g_atmData[ ID ] [ E_LABEL ] = CreateDynamic3DTextLabel( "[ATM]\n"COL_GREY"100%", COLOR_GOLD, nX, nY, Z, 20.0 );
}
if ( ID == -1 ) return ID;
rX = rX - offset;
new
Float: nX = X + 1.0 * -floatsin( -rX, degrees ),
Float: nY = Y + 1.0 * -floatcos( -rX, degrees )
;
g_atmData[ ID ] [ E_HEALTH ] = 100.0;
g_atmData[ ID ] [ E_CREATED ] = true;
g_atmData[ ID ] [ E_CHECKPOINT ] = CreateDynamicCP( nX, nY, Z, 1.0 , -1, -1, -1, 100.0 );
g_atmData[ ID ] [ E_OBJECT ] = CreateDynamicObject( 19324, X, Y, Z, 0.0, 0.0, rX, -1, -1, -1, 100.0 );
g_atmData[ ID ] [ E_LABEL ] = CreateDynamic3DTextLabel( "[ATM]\n"COL_GREY"100%", COLOR_GOLD, nX, nY, Z, 20.0 );
return ID;
}
@ -30427,7 +30425,8 @@ stock CreateLoopingAnimation( playerid, animlib[ ], animname[ ], Float:Speed, lo
else if ( IsPlayerTied( playerid ) ) return SendError( playerid, "You cannot use this command since you're tied." );
else if ( IsPlayerKidnapped( playerid ) ) return SendError( playerid, "You cannot use this command since you're kidnapped." );
else if ( IsPlayerGettingBlowed( playerid ) )return SendError( playerid, "You cannot use this command since you're getting blowed." );
else if ( IsPlayerBlowingCock( playerid ) ) return SendError( playerid, "You cannot use this command since you're giving oral sex." );
else if ( IsPlayerBlowingCock( playerid ) ) return SendError( playerid, "You cannot use this command since you're giving oral sex." );
else if ( IsPlayerPlayingPoker( playerid ) ) return SendError( playerid, "You cannot use this command since you're playing poker." );
else if ( IsPlayerInWater( playerid ) ) return SendError( playerid, "You cannot use this command since you're in water." );
else if ( IsPlayerMining( playerid ) ) return SendError( playerid, "You cannot use this command since you're mining." );
else if ( IsPlayerInEvent( playerid ) ) return SendError( playerid, "You cannot use this command since you're in an event." );
@ -33127,7 +33126,7 @@ stock IsDeathmatchProtectedZone( playerid ) {
return false;
}*/
stock CreateGarage( iAccountID, iPrice, iInterior, Float: fX, Float: fY, Float: fZ, Float: fAngle, iExistingID = -1 )
stock CreateGarage( iAccountID, iPrice, iInterior, Float: fX, Float: fY, Float: fZ, Float: fAngle, iExistingID = ITER_NONE )
{
new
iGarage = iExistingID != ITER_NONE ? iExistingID : Iter_Free(garages);
@ -33150,8 +33149,8 @@ stock CreateGarage( iAccountID, iPrice, iInterior, Float: fX, Float: fY, Float:
g_garageData[ iGarage ] [ E_CHECKPOINT ] = CreateDynamicCP( fX, fY, fZ, 3.0, -1, 0, -1, 100.0 );
g_garageData[ iGarage ] [ E_LABEL ] = CreateDynamic3DTextLabel( sprintf( "Garage(%d)\nOwner:"COL_WHITE" No-one\n"COL_GOLD"Price:"COL_WHITE" %s", iGarage, ConvertPrice( g_garageData[ iGarage ] [ E_PRICE ] ) ), COLOR_GOLD, fX, fY, fZ, 20.0 );
if ( iExistingID != -1 && iAccountID ) UpdateGarageTitle( iGarage );
else if ( iExistingID == -1 )
if ( iExistingID != ITER_NONE && iAccountID ) UpdateGarageTitle( iGarage );
else if ( iExistingID == ITER_NONE )
{
format( szBigString, 162, "INSERT INTO `GARAGES`(`ID`,`OWNER`,`PRICE`,`INTERIOR`,`X`,`Y`,`Z`,`ANGLE`) VALUES (%d,%d,%d,%d,%f,%f,%f,%f)", iGarage, iAccountID, iPrice, iInterior, fX, fY, fZ, fAngle );
mysql_single_query( szBigString );
@ -33503,7 +33502,8 @@ stock IsRandomDeathmatch( issuerid, damagedid )
}
stock IsPlayerInCasino( playerid ) {
if ( GetPlayerInterior( playerid ) == VISAGE_INTERIOR && GetPlayerVirtualWorld( playerid ) == VISAGE_WORLD ) return 1;
if ( GetPlayerInterior( playerid ) == VISAGE_INTERIOR && GetPlayerVirtualWorld( playerid ) == VISAGE_WORLD ) return 1; // visage itself
if ( IsPlayerInRangeOfPoint( playerid, 100.0, 1993.0846, 1904.5693, 84.2848 ) && GetPlayerVirtualWorld( playerid ) != 0 ) return 1; // visage apartments
return ( GetPlayerInterior( playerid ) == 10 && GetPlayerVirtualWorld( playerid ) == 23 ) || ( GetPlayerInterior( playerid ) == 1 && GetPlayerVirtualWorld( playerid ) == 82 );
}
@ -33804,11 +33804,11 @@ stock CreateBusinessActors( businessid )
for ( new i = 0; i < MAX_BIZ_ACTORS; i ++ ) if ( g_businessActorData[ biz_type ] [ i ] [ E_SKIN ] != -1 )
{
g_businessActors[ businessid ] [ i ] = CreateActor( g_businessActorData[ biz_type ] [ i ] [ E_SKIN ], g_businessActorData[ biz_type ] [ i ] [ E_X ], g_businessActorData[ biz_type ] [ i ] [ E_Y ], g_businessActorData[ biz_type ] [ i ] [ E_Z ], g_businessActorData[ biz_type ] [ i ] [ E_RZ ] );
SetActorInvulnerable( g_businessActors[ businessid ] [ i ], true );
SetActorVirtualWorld( g_businessActors[ businessid ] [ i ], g_businessData[ businessid ] [ E_WORLD ] );
ApplyActorAnimation( g_businessActors[ businessid ] [ i ], g_businessActorData[ biz_type ] [ i ] [ E_ANIM_LIB ], g_businessActorData[ biz_type ] [ i ] [ E_ANIM_NAME ], 4.1, 1, 1, 1, 1, 0 );
ApplyActorAnimation( g_businessActors[ businessid ] [ i ], g_businessActorData[ biz_type ] [ i ] [ E_ANIM_LIB ], g_businessActorData[ biz_type ] [ i ] [ E_ANIM_NAME ], 4.1, 1, 1, 1, 1, 0 );
g_businessActors[ businessid ] [ i ] = CreateDynamicActor( g_businessActorData[ biz_type ] [ i ] [ E_SKIN ], g_businessActorData[ biz_type ] [ i ] [ E_X ], g_businessActorData[ biz_type ] [ i ] [ E_Y ], g_businessActorData[ biz_type ] [ i ] [ E_Z ], g_businessActorData[ biz_type ] [ i ] [ E_RZ ] );
SetDynamicActorInvulnerable( g_businessActors[ businessid ] [ i ], true );
SetDynamicActorVirtualWorld( g_businessActors[ businessid ] [ i ], g_businessData[ businessid ] [ E_WORLD ] );
ApplyDynamicActorAnimation( g_businessActors[ businessid ] [ i ], g_businessActorData[ biz_type ] [ i ] [ E_ANIM_LIB ], g_businessActorData[ biz_type ] [ i ] [ E_ANIM_NAME ], 4.1, 1, 1, 1, 1, 0 );
ApplyDynamicActorAnimation( g_businessActors[ businessid ] [ i ], g_businessActorData[ biz_type ] [ i ] [ E_ANIM_LIB ], g_businessActorData[ biz_type ] [ i ] [ E_ANIM_NAME ], 4.1, 1, 1, 1, 1, 0 );
}
return 1;
}
@ -34055,32 +34055,32 @@ stock RollSlotMachine( playerid, id )
if ( g_slotmachineData[ id ] [ E_ENTRY_FEE ] == 10000 )
{
// 1 in 200k odds
randomChance = random( 200001 );
// 1 in 125k odds
randomChance = random( 125001 );
printf("random chance %d", randomChance );
// double brick
if ( randomChance == 131730 ) // rigged
if ( randomChance == 91235 )
rotation = 0.0;
// single brick
else if ( 1 <= randomChance <= 3560 )
else if ( 2 <= randomChance <= 2201 )
rotation = 40.0;
// gold bells
else if ( 3561 <= randomChance <= 10680 )
else if ( 2202 <= randomChance <= 6602 )
rotation = 60.0;
// cherry
else if ( 10681 <= randomChance <= 24920 )
else if ( 6603 <= randomChance <= 15403 )
rotation = 80.0;
// grapes
else if ( 24921 <= randomChance <= 69520 )
else if ( 15404 <= randomChance <= 37404 )
rotation = 100.0;
// 69s
else if ( 60521 <= randomChance <= 131720 )
else if ( 37405 <= randomChance <= 81405 )
rotation = 20.0;
// loss otherwise
@ -34089,31 +34089,31 @@ stock RollSlotMachine( playerid, id )
}
else
{
// 1 in 400k odds
randomChance = random( 50001 );
// 1 in 40k odds
randomChance = random( 40001 );
// double brick
if ( randomChance == 27390 )
rotation = 0.0;
// single brick
else if ( 1 <= randomChance <= 740 )
else if ( 1 <= randomChance <= 973 )
rotation = 40.0;
// gold bells
else if ( 741 <= randomChance <= 2220 )
else if ( 974 <= randomChance <= 2434 )
rotation = 60.0;
// cherry
else if ( 2221 <= randomChance <= 5180 )
else if ( 2435 <= randomChance <= 5355 )
rotation = 80.0;
// grapes
else if ( 5181 <= randomChance <= 12580 )
else if ( 5356 <= randomChance <= 11196 )
rotation = 100.0;
// 69s
else if ( 12581 <= randomChance <= 27380 )
else if ( 11197 <= randomChance <= 22877 )
rotation = 20.0;
// loss otherwise
@ -36426,7 +36426,7 @@ thread OnBusinessVehicleLoad( businessid )
return 1;
}
CreateBusiness( iAccountID, szBusiness[ 32 ], iPrice, iType, Float: fX, Float: fY, Float: fZ, iSupply = 0, iProduct = 0, iProductionTimestamp = 0, iBank = 0, iExistingID = -1 )
CreateBusiness( iAccountID, szBusiness[ 32 ], iPrice, iType, Float: fX, Float: fY, Float: fZ, iSupply = 0, iProduct = 0, iProductionTimestamp = 0, iBank = 0, iExistingID = ITER_NONE )
{
new
iBusiness = iExistingID != ITER_NONE ? iExistingID : Iter_Free(business);
@ -36481,8 +36481,8 @@ CreateBusiness( iAccountID, szBusiness[ 32 ], iPrice, iType, Float: fX, Float: f
StopBusinessExportMission( iBusiness );
// insert or readjust name
if ( iExistingID != -1 && iAccountID != 0 ) UpdateBusinessTitle( iBusiness );
else if ( iExistingID == -1 )
if ( iExistingID != ITER_NONE && iAccountID != 0 ) UpdateBusinessTitle( iBusiness );
else if ( iExistingID == ITER_NONE )
{
format( szBigString, sizeof( szBigString ), "INSERT INTO `BUSINESSES`(`ID`, `OWNER_ID`, `NAME`, `COST`, `TYPE`, `X`, `Y`, `Z`) VALUES (%d,%d,'%s',%d,%d,%f,%f,%f)", iBusiness, iAccountID, szBusiness, iPrice, iType, fX, fY, fZ );
mysql_single_query( szBigString );
@ -37082,3 +37082,11 @@ stock GetPlayerVIPLevel( playerid )
stock IsPlayerSpawned( playerid )
return p_Spawned{ playerid };
stock UpdatePlayerEntranceExitTick( playerid, ms = 2500 ) {
p_EntranceTickcount[ playerid ] = GetTickCount( ) + ms;
}
stock CanPlayerExitEntrance( playerid ) {
return GetTickCount( ) > p_EntranceTickcount[ playerid ];
}

View File

@ -88,11 +88,11 @@ stock initializeActors( )
for( new i = 0; i < sizeof( g_actorData ); i++ )
{
new
actorid = CreateActor( g_actorData[ i ] [ E_SKIN ], g_actorData[ i ] [ E_X ], g_actorData[ i ] [ E_Y ], g_actorData[ i ] [ E_Z ], g_actorData[ i ] [ E_RZ ] );
actorid = CreateDynamicActor( g_actorData[ i ] [ E_SKIN ], g_actorData[ i ] [ E_X ], g_actorData[ i ] [ E_Y ], g_actorData[ i ] [ E_Z ], g_actorData[ i ] [ E_RZ ] );
SetActorInvulnerable( actorid, true );
SetActorVirtualWorld( actorid, g_actorData[ i ] [ E_WORLD ] );
ApplyActorAnimation( actorid, g_actorData[ i ] [ E_ANIM_LIB ], g_actorData[ i ] [ E_ANIM_NAME ], 4.1, 1, 1, 1, 1, 0 );
ApplyActorAnimation( actorid, g_actorData[ i ] [ E_ANIM_LIB ], g_actorData[ i ] [ E_ANIM_NAME ], 4.1, 1, 1, 1, 1, 0 );
SetDynamicActorInvulnerable( actorid, true );
SetDynamicActorVirtualWorld( actorid, g_actorData[ i ] [ E_WORLD ] );
ApplyDynamicActorAnimation( actorid, g_actorData[ i ] [ E_ANIM_LIB ], g_actorData[ i ] [ E_ANIM_NAME ], 4.1, 1, 1, 1, 1, 0 );
ApplyDynamicActorAnimation( actorid, g_actorData[ i ] [ E_ANIM_LIB ], g_actorData[ i ] [ E_ANIM_NAME ], 4.1, 1, 1, 1, 1, 0 );
}
}

File diff suppressed because it is too large Load Diff

View File

@ -89,7 +89,7 @@ enum E_BLACKJACK_DATA
E_PAYOUT,
E_OBJECT, E_ACTOR,
E_OBJECT, E_ACTOR, E_WORLD,
Float: E_X, Float: E_Y, Float: E_Z,
Float: E_ROTATION
};
@ -134,10 +134,12 @@ hook OnGameModeInit( )
CreateBlackjackTable( 100000, 2243.12500, 1604.43750, 1006.15631, 90.0000, 82 );
CreateBlackjackTable( 100000, 2239.42969, 1604.45313, 1006.15631, -90.000, 82 );
CreateBlackjackTable( 100000, 2241.31250, 1606.27344, 1006.15631, 180.000, 82 );
CreateBlackjackTable( 1000000, 1962.34375, 1015.66412, 992.46881, 90.00000, 23 );
CreateBlackjackTable( 1000000, 1960.36719, 1015.66412, 992.46881, -90.0000, 23 );
// 4 dragons
CreateBlackjackTable( 250000, 1962.34375, 1015.66412, 992.46881, 90.00000, 23 );
CreateBlackjackTable( 500000, 1960.36719, 1015.66412, 992.46881, -90.0000, 23 );
CreateBlackjackTable( 1000000, 1960.74829, 1020.31189, 992.46881, -90.0000, 23 );
CreateBlackjackTable( 10000000, 1962.34375, 1020.17969, 992.46881, 90.00000, 23 );
CreateBlackjackTable( 2500000, 1962.34375, 1020.17969, 992.46881, 90.00000, 23 );
return 1;
}
@ -205,7 +207,7 @@ hook OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
if ( p_blackjackTable[ playerid ] != -1 )
return RemovePlayerFromBlackjack( playerid, .reset_cam = 1 );
foreach(new id : blackjacktables)
foreach(new id : blackjacktables) if ( GetPlayerVirtualWorld( playerid ) == g_blackjackData[ id ] [ E_WORLD ] )
{
if ( IsPlayerInRangeOfPoint( playerid, 3.0, g_blackjackData[ id ] [ E_X ], g_blackjackData[ id ] [ E_Y ], g_blackjackData[ id ] [ E_Z ] ) ) {
@ -291,7 +293,7 @@ hook InitializeTextDraws( )
}
/* ** Functions ** */
stock CreateBlackjackTable( payout, Float: X, Float: Y, Float: Z, Float: Angle, world = 0 )
stock CreateBlackjackTable( payout, Float: X, Float: Y, Float: Z, Float: Angle, world )
{
new
id = Iter_Free(blackjacktables);
@ -302,15 +304,16 @@ stock CreateBlackjackTable( payout, Float: X, Float: Y, Float: Z, Float: Angle,
g_blackjackData[ id ] [ E_Y ] = Y;
g_blackjackData[ id ] [ E_Z ] = Z;
g_blackjackData[ id ] [ E_ROTATION ] = Angle;
g_blackjackData[ id ] [ E_WORLD ] = world;
g_blackjackData[ id ] [ E_GAME_TIMER ] = -1;
g_blackjackData[ id ] [ E_PAYOUT ] = payout;
g_blackjackData[ id ] [ E_OBJECT ] = CreateDynamicObject( 2188, X, Y, Z, 0.00000, 0.00000, Angle, .priority = 9999 );
g_blackjackData[ id ] [ E_ACTOR ] = CreateActor( 171, X - 0.4 * floatcos( Angle - 90.0, degrees ), Y - 0.4 * floatsin( Angle - 90.0, degrees ), Z, Angle + 180.0 );
CreateDynamic3DTextLabel( sprintf( "Press ENTER To Play\n"COL_WHITE"%s Minimum", ConvertPrice( payout ) ), COLOR_GREY, X, Y, Z + 0.25, 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, .testlos = 0 );
g_blackjackData[ id ] [ E_OBJECT ] = CreateDynamicObject( 2188, X, Y, Z, 0.00000, 0.00000, Angle, .worldid = world, .priority = 9999 );
g_blackjackData[ id ] [ E_ACTOR ] = CreateDynamicActor( 171, X - 0.4 * floatcos( Angle - 90.0, degrees ), Y - 0.4 * floatsin( Angle - 90.0, degrees ), Z, Angle + 180.0, .worldid = world );
CreateDynamic3DTextLabel( sprintf( "Press ENTER To Play Blackjack\n"COL_WHITE"%s Minimum", ConvertPrice( payout ) ), COLOR_GREY, X, Y, Z + 0.25, 15.0, .testlos = 0, .worldid = world );
SetActorInvulnerable( g_blackjackData[ id ] [ E_ACTOR ], true );
SetActorVirtualWorld( g_blackjackData[ id ] [ E_ACTOR ], world );
SetDynamicActorInvulnerable( g_blackjackData[ id ] [ E_ACTOR ], true );
SetDynamicActorVirtualWorld( g_blackjackData[ id ] [ E_ACTOR ], world );
ResetBlackjackTable( id );
Iter_Add( blackjacktables, id );
@ -354,8 +357,8 @@ function BeginBlackJackTurn( tableid )
randomCard = random( sizeof( g_blackjackDealerCards ) );
// dealer cards
ApplyActorAnimation( g_blackjackData[ tableid ] [ E_ACTOR ], "CASINO", "dealone", 4.1, 0, 0, 0, 0, 0 );
ApplyActorAnimation( g_blackjackData[ tableid ] [ E_ACTOR ], "CASINO", "dealone", 4.1, 0, 0, 0, 0, 0 );
ApplyDynamicActorAnimation( g_blackjackData[ tableid ] [ E_ACTOR ], "CASINO", "dealone", 4.1, 0, 0, 0, 0, 0 );
ApplyDynamicActorAnimation( g_blackjackData[ tableid ] [ E_ACTOR ], "CASINO", "dealone", 4.1, 0, 0, 0, 0, 0 );
TextDrawSetString( g_blackjackDealerCards[ tableid ] [ cardid ], g_cardTextdrawData[ randomCard ] );
g_blackjackDealerCardIndex[ tableid ] [ cardid ] = randomCard;

View File

@ -0,0 +1,613 @@
/*
* Irresistible Gaming (c) 2018
* Developed by Lorenc Pekaj
* Module: casino.inc
* Purpose: related to implementing the casino of visage
*/
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** Constants ** */
stock VISAGE_ENTRANCE = ITER_NONE;
stock const VISAGE_INTERIOR = 10;
stock const VISAGE_WORLD = 30;
/* ** Hooks ** */
hook OnGameModeInit( )
{
// Initialize Interior
InitializeCasinoInterior( );
// Create Entrance
VISAGE_ENTRANCE = CreateEntrance( "[VISAGE CASINO]", 2017.1334, 1916.4141, 12.3424, 3095.9617, 2887.8228, 1056.5280, VISAGE_INTERIOR, VISAGE_WORLD, true, false, 44 );
// Labels
// CreateDynamic3DTextLabel( "Coming Soon", COLOR_GREY, 3113.1077, 2899.5190, 1056.5280, 20.0 );
CreateDynamic3DTextLabel( "Coming Soon", COLOR_GREY, 3113.1428, 2876.2637, 1056.5280, 20.0 );
// Create Poker Tables
CreatePokerTable( 50000, 1000, 3156.923095, 2891.148925, 1053.761001, 3, VISAGE_WORLD, VISAGE_INTERIOR );
CreatePokerTable( 125000, 2500, 3161.923095, 2891.148925, 1053.761001, 4, VISAGE_WORLD, VISAGE_INTERIOR );
CreatePokerTable( 250000, 5000, 3166.923095, 2891.148925, 1053.761001, 4, VISAGE_WORLD, VISAGE_INTERIOR );
CreatePokerTable( 500000, 10000, 3171.923095, 2891.148925, 1053.761001, 6, VISAGE_WORLD, VISAGE_INTERIOR );
CreatePokerTable( 1000000, 20000, 3176.923095, 2891.148925, 1053.761001, 6, VISAGE_WORLD, VISAGE_INTERIOR );
// Create Roulette Tables
CreateRouletteTable( 3170.070068, 2875.992919, 1054.446998, 0.000000, VISAGE_WORLD );
CreateRouletteTable( 3164.070068, 2875.992919, 1054.446998, 0.000000, VISAGE_WORLD );
CreateRouletteTable( 3158.070068, 2875.992919, 1054.446998, 0.000000, VISAGE_WORLD );
CreateRouletteTable( 3176.070068, 2875.992919, 1054.446998, 0.000000, VISAGE_WORLD );
// Create Blackjack Tables
CreateBlackjackTable( 10000, 3156.629882, 2885.523925, 1054.379001, 0.000000, VISAGE_WORLD );
CreateBlackjackTable( 25000, 3159.129882, 2881.750976, 1054.379001, 180.000000, VISAGE_WORLD );
CreateBlackjackTable( 50000, 3161.629882, 2885.523925, 1054.379001, 0.000000, VISAGE_WORLD );
CreateBlackjackTable( 100000, 3164.129882, 2881.750976, 1054.379001, 180.000000, VISAGE_WORLD );
CreateBlackjackTable( 250000, 3166.629882, 2885.523925, 1054.379001, 0.000000, VISAGE_WORLD );
CreateBlackjackTable( 500000, 3169.129882, 2881.750976, 1054.379001, 180.000000, VISAGE_WORLD );
CreateBlackjackTable( 500000, 3171.629882, 2885.523925, 1054.379001, 0.000000, VISAGE_WORLD );
CreateBlackjackTable( 1000000, 3174.129882, 2881.750976, 1054.379001, 180.0, VISAGE_WORLD );
return 1;
}
hook OnPlayerConnect( playerid )
{
// Remove Visage Building
RemoveBuildingForPlayer( playerid, 7584, 1947.3828, 1916.1953, 78.1953, 0.25 );
RemoveBuildingForPlayer( playerid, 7716, 1947.3828, 1916.1953, 78.1953, 0.25 );
return 1;
}
// purpose: creates the interior itself
static stock InitializeCasinoInterior( )
{
// Main Visage Object
CreateDynamicObject( 7584, 1947.38281, 1916.19531, 78.19531, 0.00000, 0.00000, 0.00000, 0, 0, -1, 500.0, .priority = 1 ); // visible to 500m in world & interior 0
// The Visage Casino
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3095.576904, 2886.663085, 1056.528076, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterialText( CreateDynamicObject( 1256, 3138.114990, 2902.652099, 1056.166992, 0.000000, 0.000000, 180.000000, .priority = 9999 ), 0, "Visage Casino", 120, "Times new roman", 70, 0, -1, -16777216, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19327, 3195.587890, 2887.415039, 1056.435058, 0.000000, 0.000000, -90.000000, .priority = 9999 ), 0, "TOILET", 130, "Times new roman", 100, 0, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3112.653076, 2895.926025, 1061.127929, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, "Private Apartments", 130, "Times new roman", 60, 0, -9170, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3095.660888, 2887.797119, 1062.127929, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "The", 130, "Times new roman", 90, 1, -1, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3095.660888, 2887.797119, 1061.197998, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Visage", 130, "Times new roman", 90, 1, -1, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3140.940917, 2895.089111, 1061.583984, 19.899999, 0.000000, 0.000000, .priority = 9999 ), 0, "Weekly Poker Tournaments", 120, "Times new roman", 30, 1, -1, 0, 1 );
SetDynamicObjectMaterial( CreateDynamicObject( 19861, 3140.940917, 2896.824951, 1061.770996, -22.399999, 0.000000, 0.000000, .priority = 9999 ), 0, 8663, "triadcasino", "black32", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19861, 3140.940917, 2878.978027, 1061.791015, 19.899999, 0.000000, 0.000000, .priority = 9999 ), 0, 8663, "triadcasino", "black32", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19861, 3140.940917, 2880.667968, 1061.776977, 19.899999, 0.000000, 180.000000, .priority = 9999 ), 0, 8663, "triadcasino", "black32", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19861, 3140.940917, 2895.025878, 1061.783935, 19.899999, 0.000000, 0.000000, .priority = 9999 ), 0, 8663, "triadcasino", "black32", -16 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3140.940917, 2896.748046, 1061.622070, 21.500000, 0.000000, 180.000000, .priority = 9999 ), 0, "Weekly Poker Tournaments", 120, "Times new roman", 30, 1, -1, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3140.940917, 2880.646972, 1061.582031, 21.500000, 0.000000, 180.000000, .priority = 9999 ), 0, "Become A Highroller Today!", 120, "Times new roman", 30, 1, -1, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3140.940917, 2878.988037, 1061.593994, 21.500000, 0.000000, 0.000000, .priority = 9999 ), 0, "Become A Highroller Today!", 120, "Times new roman", 30, 1, -1, 0, 1 );
CreateDynamicObject( 19295, 3148.732910, 2886.918945, 1066.516967, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19295, 3175.702880, 2886.918945, 1069.057006, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19295, 3148.732910, 2886.918945, 1066.516967, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19295, 3192.373046, 2886.918945, 1066.516967, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19295, 3178.418945, 2886.918945, 1071.237060, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19295, 3141.543945, 2886.489990, 1063.657958, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 18981, 3150.878906, 2864.441894, 1054.396972, 0.000000, 0.000000, 90.000000, .priority = 9999 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3180.996093, 2865.885009, 1059.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Banging7grams", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
CreateDynamicObject( 18981, 3169.449951, 2910.456054, 1055.616943, 0.000000, 0.000000, 90.000000, .priority = 9999 );
SetDynamicObjectMaterialText( CreateDynamicObject( 7909, 3191.825927, 2865.534912, 1057.921997, 0.000000, 0.000000, 180.000000, .priority = 9999 ), 0, "Thank you to..", 130, "Tahoma", 50, 1, -65536, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3112.653076, 2879.885986, 1061.127929, 0.000000, 0.000000, 180.000000, .priority = 9999 ), 0, "Highrollers Casino", 130, "Times new roman", 60, 0, -9170, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 7909, 3125.550048, 2887.995117, 1061.738037, 0.000000, 0.000000, -90.000000, .priority = 9999 ), 0, "GAMING ROOM", 130, "Times new roman", 50, 0, -9170, 0, 1 );
CreateDynamicObject( 18981, 3191.112060, 2864.441894, 1054.396972, 0.000000, 0.000000, 90.000000, .priority = 9999 );
SetDynamicObjectMaterialText( CreateDynamicObject( 2815, 3167.604980, 2884.551025, 1053.890014, 90.000000, 0.000000, 67.800003, .priority = 9999 ), 0, "SCAM!", 130, "ARIAL", 20, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 7909, 3191.808105, 2865.534912, 1056.381958, 0.000000, 0.000000, 180.000000, .priority = 9999 ), 0, "For making this possible", 130, "Tahoma", 30, 1, -65536, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3180.996093, 2865.885009, 1058.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Brad", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3180.996093, 2865.885009, 1057.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "RoyceGate", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3180.996093, 2865.885009, 1056.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "[TDK]Future[NG]", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3180.996093, 2865.885009, 1055.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "[ZF]ImakeMYownCAKE", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3172.496093, 2865.885009, 1059.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Ashley", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3172.496093, 2865.885009, 1058.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Shini", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3172.496093, 2865.885009, 1057.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "iHarpreet", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3172.496093, 2865.885009, 1056.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Daniel", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3172.496093, 2865.885009, 1055.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "MrFreeze", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3163.996093, 2865.885009, 1055.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Bradyy", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3163.996093, 2865.885009, 1056.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "StevenVerx", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3163.996093, 2865.885009, 1057.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Hariexy", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3163.996093, 2865.885009, 1058.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Veloxity_", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3163.996093, 2865.885009, 1059.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Galileo", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3155.496093, 2865.885009, 1055.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "NeXuS", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3155.496093, 2865.885009, 1056.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "IM_HULK.", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3155.496093, 2865.885009, 1057.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "[SS]Usaid", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3155.496093, 2865.885009, 1058.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Minthy", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3037, 3155.496093, 2865.885009, 1059.599975, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, "Chickenwing", 130, "Tahoma", 50, 1, -16777216, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19355, 3204.334960, 2874.370117, 1053.734985, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, "Designed by Galileo", 130, "Arial", 30, 0, -16777216, 0, 1 );
CreateDynamicObject( 18981, 3173.770019, 2864.441894, 1054.396972, 0.000000, 0.000000, 90.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3100.160888, 2925.929931, 1038.518066, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3100.160888, 2849.860107, 1038.518066, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3186.426025, 2894.111083, 1081.443000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3126.739013, 2887.888916, 1081.416999, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3126.739013, 2887.888916, 1034.516998, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3128.611083, 2887.888916, 1034.519001, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3130.450927, 2887.888916, 1034.520999, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3132.292968, 2887.888916, 1034.522998, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3134.093017, 2887.888916, 1034.525001, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3135.894042, 2887.888916, 1034.528999, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3137.701904, 2887.888916, 1034.530998, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3139.501953, 2887.888916, 1034.533000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3141.281005, 2887.888916, 1034.534999, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3143.070068, 2887.888916, 1034.536998, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3107.142089, 2900.892089, 1060.563999, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3107.156005, 2874.889892, 1060.563999, 0.000000, 90.000000, -90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3136.159912, 2845.888916, 1060.563999, 0.000000, 90.000000, 180.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3136.159912, 2929.893066, 1060.563999, 0.000000, 90.000000, 180.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3120.439941, 2910.885986, 1060.563999, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 4830, "airport2", "LASLACMA96", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3122.824951, 2864.897949, 1060.563999, 0.000000, 90.000000, -90.000000, .priority = 9999 ), 0, 4830, "airport2", "LASLACMA96", -16 );
CreateDynamicObject( 14629, 3167.575927, 2895.346923, 1065.593002, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3145.125000, 2887.856933, 1054.701999, 0.000000, 0.000000, 180.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3145.541992, 2895.730957, 1054.701999, 0.000000, 0.000000, 173.899993, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3145.545898, 2879.970947, 1054.701999, 0.000000, 0.000000, -173.899993, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3146.805908, 2872.185058, 1054.700000, 0.000000, 0.000000, -167.699005, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3146.804931, 2903.468994, 1054.701999, 0.000000, 0.000000, 167.598999, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3148.510009, 2864.377929, 1054.700000, 0.000000, 0.000000, -167.699005, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3148.522949, 2911.281982, 1054.701999, 0.000000, 0.000000, 167.598999, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3146.720947, 2887.888916, 1033.365001, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3148.530029, 2887.888916, 1033.367000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3150.990966, 2879.989013, 1053.532001, 0.000000, 0.000000, -173.899993, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3150.991943, 2895.721923, 1053.532001, 0.000000, 0.000000, 173.899993, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3152.260009, 2903.498046, 1053.532001, 0.000000, 0.000000, 167.598999, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3165.649902, 2894.111083, 1052.395000, 0.000000, 180.000000, 0.000000, .priority = 9999 ), 0, 14597, "papaerchaseoffice", "CJ_WOOD5", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3150.573974, 2887.856933, 1053.532001, 0.000000, 0.000000, 180.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3152.251953, 2872.224121, 1053.532001, 0.000000, 0.000000, -167.699005, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3154.028076, 2864.474121, 1053.532001, 0.000000, 0.000000, -166.598999, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3153.977050, 2911.301025, 1053.532001, 0.000000, 0.000000, 167.598999, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3126.739013, 2887.888916, 1082.416999, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3128.611083, 2887.888916, 1082.418998, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3130.450927, 2887.888916, 1082.420997, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3132.292968, 2887.888916, 1082.422996, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3134.093017, 2887.888916, 1082.425003, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3135.894042, 2887.888916, 1082.429000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3137.701904, 2887.888916, 1082.430999, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3139.501953, 2887.888916, 1082.432998, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3141.281005, 2887.888916, 1082.434997, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3143.070068, 2887.888916, 1082.436996, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3148.958007, 2887.406982, 1060.956001, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3150.455078, 2887.405029, 1060.923999, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2887.405029, 1060.925998, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3170.455078, 2887.405029, 1060.923999, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3180.455078, 2887.405029, 1060.923999, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2887.405029, 1060.923999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2897.405029, 1060.923999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2877.405029, 1060.923999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2867.405029, 1060.923999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2907.405029, 1060.923999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.455078, 2887.405029, 1060.928001, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.455078, 2897.405029, 1060.923999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.455078, 2877.405029, 1060.923999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.455078, 2867.405029, 1060.923999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.455078, 2907.405029, 1060.923999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3165.649902, 2894.111083, 1067.394996, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14597, "papaerchaseoffice", "CJ_WOOD5", 0 );
CreateDynamicObject( 19943, 3160.447021, 2902.394042, 1053.384998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3138.958007, 2887.406982, 1060.956001, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3130.638916, 2887.406982, 1060.956001, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
CreateDynamicObject( 19943, 3160.447021, 2872.394042, 1053.384998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19943, 3167.947021, 2887.394042, 1053.384998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19943, 3175.447021, 2894.894042, 1053.384998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19943, 3175.447021, 2902.394042, 1053.384998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19943, 3175.447021, 2879.894042, 1053.384998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19943, 3175.447021, 2872.394042, 1053.384998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19943, 3160.447021, 2894.894042, 1053.384998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19943, 3160.447021, 2879.894042, 1053.384998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3178.587890, 2887.418945, 1032.412998, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3178.587890, 2879.876953, 1032.412998, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3178.587890, 2872.408935, 1032.410999, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3178.587890, 2894.900878, 1032.415000, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3178.587890, 2902.379882, 1032.415000, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3155.855957, 2881.586914, 1050.898998, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3155.855957, 2877.175048, 1050.896999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3165.855957, 2877.175048, 1050.896999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3175.855957, 2877.175048, 1050.896999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3165.855957, 2881.586914, 1050.898998, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3175.855957, 2881.586914, 1050.898998, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3155.855957, 2888.267089, 1050.900001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3155.855957, 2898.220947, 1050.900001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3165.855957, 2888.267089, 1050.900001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3175.855957, 2888.267089, 1050.900001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3175.855957, 2898.220947, 1050.900001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3165.855957, 2898.220947, 1050.900001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3201.839111, 2894.111083, 1052.415000, 0.000000, 180.000000, 0.000000, .priority = 9999 ), 0, 14597, "papaerchaseoffice", "CJ_WOOD5", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3183.584960, 2909.878906, 1046.729999, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14627, "ab_optilite", "ab_optilite", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3183.584960, 2865.919921, 1046.729999, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14627, "ab_optilite", "ab_optilite", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3204.259033, 2844.235107, 1046.729999, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14627, "ab_optilite", "ab_optilite", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3204.259033, 2930.519042, 1046.729999, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14627, "ab_optilite", "ab_optilite", -16 );
CreateDynamicObject( 19929, 3156.495117, 2898.645019, 1054.188999, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19929, 3160.495117, 2898.645019, 1054.188999, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19929, 3164.495117, 2898.645019, 1054.188999, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19929, 3168.495117, 2898.645019, 1054.188999, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19929, 3172.495117, 2898.645019, 1054.188999, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19929, 3176.495117, 2898.645019, 1054.188999, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19929, 3176.195068, 2898.646972, 1054.191001, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19929, 3172.195068, 2898.646972, 1054.191001, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19929, 3168.195068, 2898.646972, 1054.191001, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19929, 3164.195068, 2898.646972, 1054.191001, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19929, 3160.195068, 2898.646972, 1054.191001, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19929, 3156.195068, 2898.646972, 1054.191001, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3156.529052, 2897.862060, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3156.529052, 2898.622070, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3156.529052, 2899.382080, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3160.529052, 2899.382080, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3164.529052, 2899.382080, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3168.529052, 2899.382080, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3172.529052, 2899.382080, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3176.529052, 2899.382080, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3160.529052, 2898.622070, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3164.529052, 2898.622070, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3168.529052, 2898.622070, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3172.529052, 2898.622070, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3176.529052, 2898.622070, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3176.529052, 2897.862060, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3172.529052, 2897.862060, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3168.529052, 2897.862060, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3164.529052, 2897.862060, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3160.529052, 2897.862060, 1054.959999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3156.079101, 2899.422119, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3156.079101, 2898.662109, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3156.079101, 2897.902099, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3160.079101, 2897.902099, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3172.079101, 2897.902099, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3176.079101, 2897.902099, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3164.079101, 2897.902099, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3168.079101, 2897.902099, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3160.079101, 2898.662109, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3164.079101, 2898.662109, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3168.079101, 2898.662109, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3172.079101, 2898.662109, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3176.079101, 2898.662109, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3176.079101, 2899.422119, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3172.079101, 2899.422119, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3168.079101, 2899.422119, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3164.079101, 2899.422119, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2325, 3160.079101, 2899.422119, 1054.959999, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 638, 3162.819091, 2894.870117, 1054.078998, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 638, 3167.918945, 2894.870117, 1054.078998, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 638, 3173.019042, 2894.870117, 1054.078998, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 638, 3162.819091, 2879.899902, 1054.078998, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 638, 3167.918945, 2879.899902, 1054.078998, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 638, 3173.019042, 2879.899902, 1054.078998, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 2001, 3180.612060, 2903.082031, 1053.374000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2001, 3180.612060, 2871.708007, 1053.374000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2001, 3180.612060, 2887.403076, 1053.374000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2001, 3180.612060, 2879.861083, 1053.374000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.465087, 2870.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.465087, 2880.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.465087, 2890.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.465087, 2900.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.465087, 2910.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.445068, 2910.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.445068, 2870.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.445068, 2880.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.445068, 2890.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.445068, 2900.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.472900, 2910.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.472900, 2900.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.472900, 2890.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.472900, 2880.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.472900, 2870.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.441894, 2910.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.441894, 2900.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.441894, 2890.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.441894, 2880.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.441894, 2870.861083, 1060.937999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3130.649902, 2887.413085, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3140.649902, 2887.413085, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3150.649902, 2887.413085, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.649902, 2887.413085, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3170.649902, 2887.413085, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3180.649902, 2887.413085, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3170.649902, 2887.393066, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3180.649902, 2887.393066, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.649902, 2887.393066, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3150.649902, 2887.393066, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3140.649902, 2887.393066, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3130.649902, 2887.393066, 1060.958000, 90.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3206.428955, 2894.111083, 1061.444999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3205.305908, 2894.111083, 1065.433998, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.180908, 2894.382080, 1051.900001, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.180908, 2880.403076, 1051.900001, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.180908, 2880.413085, 1061.900001, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.190917, 2880.403076, 1059.900001, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.180908, 2894.382080, 1061.900001, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.190917, 2894.394042, 1059.900001, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 19437, 3194.886962, 2888.254882, 1057.493999, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19437, 3194.883056, 2886.345947, 1057.495998, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 3195.592041, 2887.418945, 1062.664001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3196.168945, 2875.896972, 1054.415000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3200.020019, 2875.896972, 1054.415000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3203.868896, 2875.896972, 1054.415000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3200.664062, 2876.389892, 1051.900001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3196.168945, 2898.876953, 1054.415000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3200.020019, 2898.876953, 1054.415000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3203.868896, 2898.876953, 1054.415000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3200.664062, 2898.381103, 1051.900001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.700927, 2898.896972, 1059.897998, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.700927, 2875.895996, 1059.897998, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.680908, 2898.906982, 1061.897998, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.670898, 2875.895019, 1061.897998, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3200.681884, 2898.876953, 1059.888000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3200.681884, 2875.904052, 1059.888000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3200.746093, 2887.375000, 1058.345001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3200.746093, 2887.375000, 1053.345001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3198.169921, 2889.885986, 1054.415000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3198.169921, 2884.905029, 1054.415000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3199.729003, 2885.687988, 1054.415000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3199.729003, 2889.097900, 1054.415000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3197.021972, 2886.864990, 1059.904998, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3197.021972, 2888.035888, 1059.907001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3199.021972, 2888.035888, 1059.909000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3199.021972, 2886.864990, 1059.907001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
CreateDynamicObject( 869, 3196.104003, 2888.270996, 1057.895000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 869, 3196.104003, 2886.949951, 1057.895000, 0.000000, 0.000000, 180.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3203.169921, 2884.905029, 1054.415000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3203.169921, 2889.885986, 1054.415000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 10765, "airportgnd_sfse", "white", -16 );
CreateDynamicObject( 11727, 3198.472900, 2888.979980, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3198.472900, 2885.798095, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3195.202880, 2889.908935, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3195.202880, 2891.908935, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3195.202880, 2893.908935, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3195.202880, 2895.908935, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3195.202880, 2897.908935, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3195.202880, 2884.906005, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3195.202880, 2882.906005, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3195.202880, 2880.906005, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3195.202880, 2878.906005, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3195.202880, 2876.906005, 1057.415000, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3198.041992, 2875.916015, 1057.384998, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3201.995117, 2875.916015, 1057.384998, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3198.041992, 2898.856933, 1057.384998, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 11727, 3201.943115, 2898.856933, 1057.384998, 90.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3194.061035, 2891.262939, 1053.784000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3194.061035, 2893.262939, 1053.784000, 0.000000, 0.000000, 24.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3194.061035, 2895.262939, 1053.784000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3194.061035, 2897.262939, 1053.784000, 0.000000, 0.000000, 45.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3197.302001, 2899.573974, 1053.784000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3198.551025, 2899.705078, 1053.784000, 0.000000, 0.000000, 30.899999, .priority = 9999 );
CreateDynamicObject( 2350, 3202.224121, 2899.573974, 1053.784000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3194.061035, 2883.510986, 1053.784000, 0.000000, 0.000000, 122.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3194.061035, 2881.510986, 1053.784000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3194.061035, 2879.510986, 1053.784000, 0.000000, 0.000000, 45.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3194.061035, 2877.510986, 1053.784000, 0.000000, 0.000000, 45.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3197.361083, 2875.311035, 1053.784000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3199.009033, 2875.210937, 1053.784000, 0.000000, 0.000000, -36.299999, .priority = 9999 );
CreateDynamicObject( 2350, 3198.142089, 2875.090087, 1053.784000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3201.231933, 2876.131103, 1054.794998, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2350, 3202.383056, 2876.131103, 1054.794998, 0.000000, 180.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 1542, 3195.688964, 2895.531982, 1054.234001, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 1541, 3195.739013, 2896.802978, 1054.433998, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 1541, 3195.739013, 2893.423095, 1054.433998, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 1542, 3195.688964, 2892.121093, 1054.234001, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 1545, 3195.759033, 2882.740966, 1054.375000, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 1541, 3195.739013, 2881.292968, 1054.433998, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 1545, 3195.759033, 2878.249023, 1054.375000, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 1541, 3195.739013, 2879.943115, 1054.433998, 0.000000, 0.000000, -90.000000, .priority = 9999 );
CreateDynamicObject( 1548, 3195.187988, 2892.004882, 1054.415000, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 1548, 3195.187988, 2895.085937, 1054.415000, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 1548, 3195.187988, 2882.812988, 1054.415000, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 1548, 3195.187988, 2878.314941, 1054.415000, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 1548, 3195.187988, 2880.643066, 1054.415000, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 14565, 3204.690917, 2884.108886, 1055.375000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 14565, 3204.690917, 2890.573974, 1055.375000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 103204.097900, 2892.910888, 51.875000, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -17895696 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 103204.097900, 2880.491943, 51.875000, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -17895696 );
CreateDynamicObject( 11686, 3203.916992, 2880.778076, 1053.270000, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 11686, 3203.916992, 2893.804931, 1053.270000, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 14611, 3200.092041, 2880.576904, 1059.959999, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 14611, 3200.092041, 2894.250000, 1059.959999, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.177001, 2888.885986, 1054.935001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.177001, 2885.904052, 1054.935001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.177001, 2886.895019, 1058.345001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.177001, 2887.895996, 1058.345001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 10765, "airportgnd_sfse", "white", -16 );
CreateDynamicObject( 1491, 3195.846923, 2886.649902, 1053.375000, 0.000000, 0.000000, 90.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.178955, 2886.176025, 1054.935001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.178955, 2888.666992, 1054.935001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 10765, "airportgnd_sfse", "white", -16 );
CreateDynamicObject( 2528, 3197.761962, 2888.893066, 1053.404998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19873, 3197.743896, 2889.299072, 1054.415000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19873, 3197.604003, 2889.299072, 1054.415000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19873, 3197.694091, 2889.299072, 1054.534999, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3180.437011, 2910.893066, 1052.395000, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 4830, "airport2", "LASLACMA96", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.700927, 2898.866943, 1059.897998, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.700927, 2875.912109, 1059.897998, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3180.437011, 2864.899902, 1052.395000, 0.000000, 90.000000, -90.000000, .priority = 9999 ), 0, 4830, "airport2", "LASLACMA96", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3165.652099, 2864.927978, 1081.424003, 0.000000, 90.000000, -90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3166.947998, 2910.870117, 1081.414001, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3198.177001, 2884.895019, 1054.415000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3203.150878, 2884.895019, 1054.415000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3198.187011, 2889.886962, 1054.415000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3203.142089, 2889.886962, 1054.415000, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
CreateDynamicObject( 14493, 3198.009033, 2885.052978, 1055.694999, 0.000000, 0.000000, 180.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3197.527099, 2885.581054, 1051.674999, 0.000000, 0.000000, -43.099998, .priority = 9999 ), 0, 1675, "wshxrefhse", "greygreensubuild_128", 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3180.959960, 2898.687988, 1053.404998, -90.000000, 0.000000, -90.000000, .priority = 9999 ), 0, "SLOTS", 130, "Times new Roman", 70, 0, -2987746, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3180.959960, 2891.133056, 1053.404998, -90.000000, 0.000000, -90.000000, .priority = 9999 ), 0, "POKER", 130, "Times New Roman", 70, 0, -2987746, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3180.959960, 2883.635986, 1053.404998, -90.000000, 0.000000, -90.000000, .priority = 9999 ), 0, "BLACKJACK", 130, "Times new Roman", 70, 0, -2987746, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3180.959960, 2876.062988, 1053.404998, -90.000000, 0.000000, -90.000000, .priority = 9999 ), 0, "ROULETTE", 130, "Times new Roman", 70, 0, -2987746, 0, 1 );
CreateDynamicObject( 2685, 3197.076904, 2889.364013, 1054.604999, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3352, 3175.497070, 2898.697998, 1058.275001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, "$100,000,000 PRIZE!", 120, "Arial", 60, 0, -16724736, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3352, 3160.444091, 2898.697998, 1058.275001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, "$50,000,000 PRIZE!", 120, "Arial", 60, 0, -16724736, 0, 1 );
CreateDynamicObject( 19819, 3195.177001, 2896.531005, 1054.485000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19822, 3195.106933, 2896.200927, 1054.375000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3194.710937, 2880.634033, 1059.634998, 0.000000, 0.000000, -90.000000, .priority = 9999 ), 0, "BAR", 130, "Times New Roman", 110, 0, -2987746, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3194.710937, 2894.579101, 1059.634998, 0.000000, 0.000000, -90.000000, .priority = 9999 ), 0, "BAR", 130, "Times New Roman", 110, 0, -2987746, 0, 1 );
tmpVariable = CreateDynamicActor( 252, 3198.350097, 2885.939941, 1054.345001, 20.000000, 1, 100.0, .priority = 9999 );
ApplyDynamicActorAnimation( tmpVariable, "blowjobz", "BJ_COUCH_LOOP_P", 4.1, 1, 1, 1, 1, 0 );
tmpVariable = CreateDynamicActor( 237, 3198.120117, 2886.320068, 1055.384998, 215.000000, 1, 100.0, .priority = 9999 );
ApplyDynamicActorAnimation( tmpVariable, "BLOWJOBZ", "BJ_COUCH_LOOP_W", 4.1, 1, 1, 1, 1, 0 );
CreateDynamicActor( 172, 3196.590087, 2892.739990, 1054.415000, 90.000000, 1, 100.0, .priority = 9999 );
CreateDynamicActor( 172, 3196.590087, 2895.449951, 1054.415000, 90.000000, 1, 100.0, .priority = 9999 );
CreateDynamicActor( 172, 3196.590087, 2882.320068, 1054.415000, 90.000000, 1, 100.0, .priority = 9999 );
CreateDynamicActor( 172, 3196.590087, 2879.510009, 1054.415000, 90.000000, 1, 100.0, .priority = 9999 );
CreateDynamicActor( 163, 3159.459960, 2894.860107, 1054.403999, 90.000000, 1, 100.0, .priority = 9999 );
tmpVariable = CreateDynamicActor( 163, 3159.459960, 2902.409912, 1054.403999, 90.000000, 1, 100.0, .priority = 9999 );
ApplyDynamicActorAnimation( tmpVariable, "DEALER", "DEALER_IDLE", 4.1, 1, 1, 1, 1, 0 );
tmpVariable = CreateDynamicActor( 163, 3159.459960, 2879.870117, 1054.403999, 90.000000, 1, 100.0, .priority = 9999 );
ApplyDynamicActorAnimation( tmpVariable, "COP_AMBIENT", "Coplook_nod", 4.1, 1, 1, 1, 1, 0 );
tmpVariable = CreateDynamicActor( 163, 3159.459960, 2872.320068, 1054.403999, 90.000000, 1, 100.0, .priority = 9999 );
ApplyDynamicActorAnimation( tmpVariable, "DEALER", "DEALER_IDLE", 4.1, 1, 1, 1, 1, 0 );
tmpVariable = CreateDynamicActor( 187, 3194.340087, 2896.699951, 1054.465000, 177.600006, 1, 100.0, .priority = 9999 );
ApplyDynamicActorAnimation( tmpVariable, "misc", "Plyrlean_loop", 4.1, 1, 1, 1, 1, 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3105.908935, 2898.173095, 1055.527999, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14390, "dr_gsnew", "mp_motel_carpet1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3125.148925, 2853.114990, 1056.500999, 0.000000, 90.000000, 180.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3125.148925, 2922.708984, 1056.500999, 0.000000, 90.000000, 180.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3124.666015, 2896.413085, 1056.527999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3116.666015, 2896.413085, 1056.527999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3105.909912, 2883.181884, 1055.527999, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14390, "dr_gsnew", "mp_motel_carpet1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 3125.523925, 2887.237060, 10153.826995, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3108.666015, 2896.413085, 1056.527999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3100.666015, 2896.413085, 1056.527999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3100.666015, 2879.389892, 1056.527999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3108.666015, 2879.389892, 1056.527999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3124.666015, 2879.389892, 1056.527999, 0.000000, 0.000000, 180.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3111.502929, 2898.173095, 1064.527999, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14390, "dr_gsnew", "mp_motel_carpet1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3111.502929, 2883.178955, 1064.527999, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14390, "dr_gsnew", "mp_motel_carpet1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 3112.668945, 2908.408935, 1059.921001, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 3112.668945, 2867.394042, 1059.921001, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3112.666992, 2879.399902, 1059.917999, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3112.666992, 2896.403076, 1059.917999, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -1118480 );
tmpVariable = CreateDynamicObject( 970, 3111.622070, 2895.927978, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3113.684082, 2895.927978, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3121.733886, 2895.927978, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3119.672119, 2895.927978, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3103.572021, 2895.927978, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3105.634033, 2895.927978, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3111.622070, 2879.868896, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3113.684082, 2879.868896, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3103.572021, 2879.868896, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3105.634033, 2879.868896, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3121.733886, 2879.868896, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3119.672119, 2879.868896, 1060.967998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 14410, 3098.326904, 2877.740966, 1057.217998, 0.000000, 0.000000, -90.000000, .priority = 9999 ), 1, 14624, "mafcasmain", "ab_carpGreenEdge", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3095.433105, 2874.910888, 1058.160999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 14410, 3096.274902, 2881.750000, 1055.467998, 0.000000, 0.000000, 180.000000, .priority = 9999 ), 1, 14624, "mafcasmain", "ab_carpGreenEdge", -16 );
tmpVariable = CreateDynamicObject( 14410, 3098.326904, 2898.162109, 1057.217998, 0.000000, 0.000000, -90.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "ab_carpGreenEdge", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3095.433105, 2900.900878, 1058.160999, 90.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
tmpVariable = CreateDynamicObject( 14410, 3096.074951, 2894.064941, 1055.467998, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "ab_carpGreenEdge", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3099.675048, 2896.413085, 1047.928001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.424072, 2896.413085, 1047.928001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.675048, 2896.415039, 1047.930000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3099.675048, 2879.391113, 1047.928001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.414062, 2879.391113, 1047.930000, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3099.075927, 2879.393066, 1047.931999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3126.132080, 2886.333984, 1089.027999, 90.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3098.424072, 2896.741943, 1053.179000, 0.000000, 55.599998, 90.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.426025, 2891.930908, 1044.257999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.426025, 2892.930908, 1044.257999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
CreateDynamicObject( 948, 3098.440917, 2892.180908, 1056.748001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3098.424072, 2878.918945, 1053.275001, 0.000000, 55.599998, -90.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
CreateDynamicObject( 948, 3098.440917, 2883.577880, 1056.748001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.426025, 2883.879882, 1044.257999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.426025, 2882.879882, 1044.257999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
tmpVariable = CreateDynamicObject( 19940, 3098.368896, 2882.499023, 1057.138999, -34.299999, 90.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", -16 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19940, 3098.368896, 2880.851074, 1058.259998, -34.299999, 90.000000, 0.000000, .priority = 9999 ), 0, 6098, "tempo22_law", "newall8-1blue", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19940, 3098.368896, 2893.346923, 1057.195999, -34.299999, 90.000000, 180.000000, .priority = 9999 ), 0, 6098, "tempo22_law", "newall8-1blue", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19940, 3098.368896, 2895.010009, 1058.328998, -34.299999, 90.000000, 180.000000, .priority = 9999 ), 0, 6098, "tempo22_law", "newall8-1blue", -16 );
CreateDynamicObject( 638, 3099.340087, 2879.381103, 1060.729999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
CreateDynamicObject( 638, 3099.340087, 2896.398925, 1060.729999, 0.000000, 0.000000, 90.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3123.727050, 2899.356933, 1061.085998, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3116.727050, 2899.356933, 1061.085998, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3109.727050, 2899.356933, 1061.085998, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3102.727050, 2899.356933, 1061.085998, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3123.727050, 2876.311035, 1061.085998, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3116.727050, 2876.311035, 1061.085998, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3109.727050, 2876.311035, 1061.085998, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3102.727050, 2876.311035, 1061.085998, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
CreateDynamicObject( 1702, 3107.250000, 2876.491943, 1060.409000, 0.000000, 0.000000, 180.000000, .priority = 9999 );
CreateDynamicObject( 1702, 3114.250000, 2876.491943, 1060.409000, 0.000000, 0.000000, 180.000000, .priority = 9999 );
CreateDynamicObject( 1702, 3121.250000, 2876.491943, 1060.409000, 0.000000, 0.000000, 180.000000, .priority = 9999 );
CreateDynamicObject( 1702, 3105.278076, 2899.353027, 1060.409000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 1702, 3112.278076, 2899.353027, 1060.409000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 1702, 3119.278076, 2899.353027, 1060.409000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3095.510009, 2887.805908, 1057.178001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3095.510009, 2890.326904, 1057.178001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3110.603027, 2875.812011, 1057.178001, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3113.104003, 2875.812011, 1057.178001, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3110.603027, 2899.966064, 1057.178001, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3113.104003, 2899.962890, 1057.178001, 0.000000, 0.000000, 90.000000, .priority = 9999 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
CreateDynamicObject( 1726, 3120.103027, 2876.621093, 1055.518001, 0.000000, 0.000000, 180.000000, .priority = 9999 );
CreateDynamicObject( 1726, 3123.292968, 2876.621093, 1055.518001, 0.000000, 0.000000, 180.000000, .priority = 9999 );
CreateDynamicObject( 1726, 3106.415039, 2876.621093, 1055.518001, 0.000000, 0.000000, 180.000000, .priority = 9999 );
CreateDynamicObject( 1727, 3106.420898, 2879.346923, 1055.523998, 0.000000, 0.400000, -54.400001, .priority = 9999 );
CreateDynamicObject( 1727, 3103.358886, 2878.917968, 1055.544998, 0.000000, 0.400000, 45.299999, .priority = 9999 );
CreateDynamicObject( 1727, 3122.888916, 2879.417968, 1055.458000, 0.000000, 0.400000, -54.400001, .priority = 9999 );
CreateDynamicObject( 1727, 3118.091064, 2879.102050, 1055.487998, 0.000000, 0.400000, 36.500000, .priority = 9999 );
CreateDynamicObject( 2315, 3120.025878, 2878.106933, 1055.527999, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 1820, 3104.628906, 2877.575927, 1055.507999, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 1726, 3118.101074, 2899.156982, 1055.518001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 1726, 3121.434082, 2899.156982, 1055.518001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 1726, 3104.576904, 2899.156982, 1055.518001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 1726, 3102.195068, 2896.812988, 1055.518001, 0.000000, 0.000000, 70.500000, .priority = 9999 );
CreateDynamicObject( 2311, 3104.243896, 2897.230957, 1055.527999, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 1433, 3121.701904, 2897.406982, 1055.698001, 0.000000, 0.000000, 10.000000, .priority = 9999 );
CreateDynamicObject( 1433, 3119.587890, 2897.194091, 1055.698001, 0.000000, 0.000000, 45.000000, .priority = 9999 );
CreateDynamicObject( 1727, 3123.112060, 2895.913085, 1055.498001, 0.000000, 0.000000, -143.899993, .priority = 9999 );
CreateDynamicObject( 1727, 3118.779052, 2895.469970, 1055.498001, 0.000000, 0.000000, 134.300003, .priority = 9999 );
CreateDynamicObject( 948, 3116.669921, 2895.537109, 1055.507999, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 948, 3108.666015, 2895.537109, 1055.507999, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 948, 3108.666015, 2880.134033, 1055.507999, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 948, 3116.660888, 2880.134033, 1055.507999, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2886.363037, 1057.227001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2892.718994, 1057.227001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2892.718994, 1060.676998, 0.000000, 180.000000, 0.000000, .priority = 9999 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2889.547119, 1060.676998, 0.000000, 180.000000, 0.000000, .priority = 9999 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2886.358886, 1060.676998, 0.000000, 180.000000, 0.000000, .priority = 9999 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2892.718994, 1057.227001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2889.547119, 1060.676998, 0.000000, 180.000000, 0.000000, .priority = 9999 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2886.363037, 1057.227001, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
CreateDynamicObject( 2001, 3126.614990, 2882.853027, 1055.518001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2001, 3126.614990, 2892.996093, 1055.518001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3135.653076, 2878.382080, 1055.995998, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3133.643066, 2880.384033, 1055.998001, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3128.639892, 2881.375000, 1055.998001, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3135.653076, 2897.405029, 1055.995998, 0.000000, 90.000000, 90.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3133.643066, 2895.395996, 1055.998001, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3128.652099, 2894.395019, 1055.998001, 0.000000, 90.000000, 0.000000, .priority = 9999 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 3133.259033, 2898.172119, 1053.591999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 10931, "traingen_sfse", "desgreengrass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 3128.645996, 2897.381103, 1053.591999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 10931, "traingen_sfse", "desgreengrass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 3133.259033, 2878.374023, 1053.591999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 10931, "traingen_sfse", "desgreengrass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 3128.645996, 2878.378906, 1053.591999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 10931, "traingen_sfse", "desgreengrass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3116.666015, 2879.389892, 1056.527999, 0.000000, 0.000000, 0.000000, .priority = 9999 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
CreateDynamicObject( 869, 3133.541992, 2897.909912, 1056.518001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 869, 3128.939941, 2898.900878, 1056.518001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 869, 3128.610107, 2896.730957, 1056.518001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 869, 3133.541992, 2877.931884, 1056.518001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 869, 3129.221923, 2877.041992, 1056.518001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 869, 3128.622070, 2879.133056, 1056.518001, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2010, 3131.676025, 2881.336914, 1055.548000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 2010, 3131.676025, 2894.341064, 1055.548000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
SetDynamicObjectMaterialText( CreateDynamicObject( 1256, 3138.103027, 2906.809082, 1056.169998, 0.000000, 0.000000, 180.000000, .priority = 9999 ), 0, "Visage Casino", 120, "David", 60, 1, -1, -16777216, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 1256, 3138.103027, 2872.770019, 1056.169998, 0.000000, 0.000000, 180.000000, .priority = 9999 ), 0, "Visage Casino", 120, "David", 60, 1, -1, -16777216, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 1256, 3138.103027, 2868.766113, 1056.169998, 0.000000, 0.000000, 180.000000, .priority = 9999 ), 0, "Visage Casino", 120, "David", 60, 1, -1, -16777216, 1 );
CreateDynamicObject( 19324, 3141.304931, 2909.555908, 1056.152000, 0.000000, 0.000000, 0.000000, .priority = 9999 );
CreateDynamicObject( 19324, 3141.304931, 2866.250000, 1056.152000, 0.000000, 0.000000, 180.000000, .priority = 9999 );
CreateDynamicObject( 19324, 3144.304931, 2866.251953, 1056.152000, 0.000000, 0.000000, 180.000000, .priority = 9999 );
}

View File

@ -28,6 +28,11 @@
#include <YSI\y_iterate>
#include <YSI\y_hooks>
/* ** Error checking ** */
#if !defined __irresistible_servervars
#error "You need server variables enabled to track betting."
#endif
forward bool: FoldPlayer(handle, playerid);
/*
@ -78,6 +83,7 @@ stock ShowPlayerDialogEx(playerid, dialogid, style, caption[], button1[], button
#define T_SAVE_PLAYER_POS true
//Max number the chips can express 10^(MAX_CHIP_DIGITS) - 1
#define MAX_CHIP_DIGITS 7
#define T_POT_FEE_RATE 0.04
//Layout and design
@ -109,12 +115,14 @@ stock ShowPlayerDialogEx(playerid, dialogid, style, caption[], button1[], button
#define RAISE 3
#define FOLD 4
#define DIALOG_BUY_IN 19232
#define DIALOG_INPUT_RAISE 9231
#define DIALOG_INPUT_RAISE 9231
#define SendPokerMessage(%0,%1) \
SendClientMessageFormatted(%0, -1, "{4B8774}[POKER] {E5861A}"%1)
#define IsPlayerPlayingPoker(%0) (GetPVarInt(%0,"t_is_in_table"))
/******************************************************************************************
Enums and arrays
@ -410,7 +418,7 @@ stock ResetLabel(handle)
new const buy_in = TableData[handle][E_TABLE_BUY_IN];
new const small_blind = TableData[handle][E_TABLE_SMALL_BLIND];
UpdateDynamic3DTextLabelTextEx(TableData[handle][E_TABLE_POT_LABEL], COLOR_GREY,
"Press ENTER To Play (%d)\n{FFFFFF}%s Minimum\n%s / %s Blinds", handle, ConvertPrice(buy_in), ConvertPrice(small_blind), ConvertPrice(small_blind * 2));
"Press ENTER To Play Poker\n{FFFFFF}%s Minimum\n%s / %s Blinds", ConvertPrice(buy_in), ConvertPrice(small_blind), ConvertPrice(small_blind * 2));
return 1;
}
@ -450,7 +458,8 @@ stock CreatePokerTable(buy_in, small_blind, Float: X, Float: Y, Float: Z, seats,
if(handle == ITER_NONE)
{
T_SendWarning("Max number of poker tables has been reached. Increase T_MAX_POKER_TABLES.");
static overflow;
printf("[POKER ERROR] Reached limit of %d blackjack tables, increase to %d to fix.", T_MAX_POKER_TABLES, T_MAX_POKER_TABLES + ( ++ overflow ) );
return ITER_NONE;
}
if(seats >= T_MAX_CHAIRS_PER_TABLE)
@ -510,8 +519,7 @@ stock CreatePokerTable(buy_in, small_blind, Float: X, Float: Y, Float: Z, seats,
TableChips[handle][i][j] = CreateDynamicObject(1902, rad * floatcos(float(j) * a_s, degrees) + or_x , rad * floatsin(float(j)* a_s, degrees) + or_y, or_z + float(rand) * 0.008, 0.0, 0.0, 0.0, vworld, interior, .priority = 9999);
SetDynamicObjectMaterialText(TableChips[handle][i][j], 0, " ", .backcolor = colors[j]);
TableChipsLabel[handle][i][j] = CreateDynamicObject(1905, rad * floatcos(float(j) * a_s, degrees) + or_x , rad * floatsin(float(j)* a_s, degrees) + or_y, or_z + float(rand) * 0.008 + 0.1 + 0.025, 0.0, 0.0, 0.0, vworld, interior, .priority = 9999);
SetDynamicObjectMaterialText(TableChipsLabel[handle][i][j],
0, chip_text[j], 50, "Arial", 44, 1, colors[j], -1, 1 );
SetDynamicObjectMaterialText(TableChipsLabel[handle][i][j], 0, chip_text[j], 50, "Arial", 44, 1, colors[j], -1, 1 );
}
}
new const Float: or_z = Z + 0.284; //No chips are visible
@ -1022,7 +1030,7 @@ stock AddPlayerToTable(playerid, handle)
SetPlayerCameraLookAt(playerid, TableData[handle][E_TABLE_POS_X], TableData[handle][E_TABLE_POS_Y], TableData[handle][E_TABLE_POS_Z]);
ApplyAnimation(playerid, "INT_OFFICE", "OFF_Sit_Bored_Loop", 4.1, 1, 1, 1, 0, 0, 1);
new tstr[64];
format(tstr, sizeof(tstr), "%s", ReturnPlayerName(playerid), slot);
format(tstr, sizeof(tstr), "%s\n* waiting next game *", ReturnPlayerName(playerid));
PlayerData[playerid][E_PLAYER_3D_LABEL] = CreateDynamic3DTextLabel(tstr, 0x808080FF, Pos[0], Pos[1], Pos[2], 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 5.0);
//Information that will be used later
@ -1143,6 +1151,9 @@ public Poker_StartGame(handle, dealer)
TableData[handle][E_TABLE_LOADING_GAME] = false;
return 0;
}
for (new i = 0; i < 5; i ++) {
TableData[handle][E_TABLE_COM_CARDS_VALUES][i] = ITER_NONE;
}
TableData[handle][E_TABLE_LOADING_GAME] = true;
//Add these two players to (currently playing iterator)
foreach(new i: IT_PlayersTable<handle>)
@ -1193,11 +1204,11 @@ public Poker_StartGame(handle, dealer)
TableData[handle][E_TABLE_DEALER_SEAT] = PlayerData[dealer][E_PLAYER_CURRENT_CHAIR_SLOT];
TableData[handle][E_TABLE_PLAYER_BIG_BLIND_ID] = dealer;
SendTableMessage(handle, ""COL_GREY"-- "COL_WHITE"Player %s has been chosen to be the dealer and big blind in this first stage of the game!", ReturnPlayerName(dealer));
UpdateDynamic3DTextLabelTextEx(PlayerData[dealer][E_PLAYER_3D_LABEL], -1, "{7AC72E}%s\n{FD4102}BB-D", ReturnPlayerName(dealer));
UpdateDynamic3DTextLabelTextEx(PlayerData[dealer][E_PLAYER_3D_LABEL], -1, "{7AC72E}%s\n{FD4102}Big Blind + Dealer", ReturnPlayerName(dealer));
//small blind..
new next_turn = GetTurnAfterPlayer(handle, dealer);
UpdateDynamic3DTextLabelTextEx(PlayerData[next_turn][E_PLAYER_3D_LABEL], -1, "{7AC72E}%s\n{FD4102}SB", ReturnPlayerName(next_turn));
UpdateDynamic3DTextLabelTextEx(PlayerData[next_turn][E_PLAYER_3D_LABEL], -1, "{7AC72E}%s\n{FD4102}Small Blind", ReturnPlayerName(next_turn));
SendTableMessage(handle, ""COL_GREY"-- "COL_WHITE"Player %s has been chosen to be the small blind in this first stage of the game!", ReturnPlayerName(next_turn));
TableData[handle][E_TABLE_PLAYER_SMALL_BLIND_ID] = next_turn;
@ -1207,21 +1218,21 @@ public Poker_StartGame(handle, dealer)
{
//Dealer
UpdateDynamic3DTextLabelTextEx(PlayerData[dealer][E_PLAYER_3D_LABEL], -1, "{7AC72E}%s\n{FD4102}D", ReturnPlayerName(dealer));
UpdateDynamic3DTextLabelTextEx(PlayerData[dealer][E_PLAYER_3D_LABEL], -1, "{7AC72E}%s\n{FD4102}Dealer", ReturnPlayerName(dealer));
SendTableMessage(handle, ""COL_GREY"-- "COL_WHITE"Player %s has been chosen to be the dealer in this first stage of the game!", ReturnPlayerName(dealer));
TableData[handle][E_TABLE_PLAYER_DEALER_ID] = dealer;
TableData[handle][E_TABLE_DEALER_SEAT] = PlayerData[dealer][E_PLAYER_CURRENT_CHAIR_SLOT];
//Big blind
new next_player = GetTurnAfterPlayer(handle, dealer);
UpdateDynamic3DTextLabelTextEx(PlayerData[next_player][E_PLAYER_3D_LABEL], -1, "{7AC72E}%s\n{FD4102}SB", ReturnPlayerName(next_player));
UpdateDynamic3DTextLabelTextEx(PlayerData[next_player][E_PLAYER_3D_LABEL], -1, "{7AC72E}%s\n{FD4102}Small Blind", ReturnPlayerName(next_player));
SendTableMessage(handle, ""COL_GREY"-- "COL_WHITE"Player %s has been chosen to be the Small Blind in this first stage of the game!", ReturnPlayerName(next_player));
TableData[handle][E_TABLE_PLAYER_SMALL_BLIND_ID] = next_player;
//Small blind
next_player = GetTurnAfterPlayer(handle, next_player);
SendTableMessage(handle, ""COL_GREY"-- "COL_WHITE"Player %s has been chosen to be the Big Blind in this first stage of the game!", ReturnPlayerName(next_player));
UpdateDynamic3DTextLabelTextEx(PlayerData[next_player][E_PLAYER_3D_LABEL], -1, "{7AC72E}%s\n{FD4102}BB", ReturnPlayerName(next_player));
UpdateDynamic3DTextLabelTextEx(PlayerData[next_player][E_PLAYER_3D_LABEL], -1, "{7AC72E}%s\n{FD4102}Big Blind", ReturnPlayerName(next_player));
TableData[handle][E_TABLE_PLAYER_BIG_BLIND_ID] = next_player;
}
@ -1240,8 +1251,7 @@ public Poker_StartGame(handle, dealer)
Streamer_Update(playerid);
}
SendTableMessage(handle, ""COL_GREY"-- "COL_WHITE"Dealer is shuffling the pack of cards...!");
SendTableMessage(handle, ""COL_GREY"-- "COL_WHITE"Cards will be handed out in two seconds...!");
SendTableMessage(handle, ""COL_GREY"-- "COL_WHITE"Dealer is shuffling the pack of cards. Cards will be handed out in two seconds...!");
//If everything executes without stop, it wouldn't look that nice for me, so a timer comes handy..
SetTimerEx("Poker_DealCards", 2000, false, "i", handle);
return 1;
@ -1265,7 +1275,7 @@ public Poker_KickPlayers(handle)
}
else
{
ShowPlayerDialog(i, DIALOG_BUY_IN, DIALOG_STYLE_MSGBOX, "Buy-In", "You've ran out of chips. Do you want to pay the buy-in fee again to continue playing?", "Yes", "No");
ShowPlayerDialog(i, DIALOG_BUY_IN, DIALOG_STYLE_MSGBOX, "Buy-In", ""COL_WHITE"You've ran out of chips. Do you want to pay the buy-in fee again to continue playing?", "Yes", "No");
}
}
}
@ -1275,6 +1285,10 @@ public Poker_KickPlayers(handle)
stock StartNewPokerGame(handle, time)
{
for (new i = 0; i < 5; i ++) {
TableData[handle][E_TABLE_COM_CARDS_VALUES][i] = ITER_NONE;
}
//This will allow players to leave before the new game begins.
TableData[handle][E_TABLE_CURRENT_STATE] = STATE_IDLE;
TableData[handle][E_TABLE_STING_NEW_GAME] = true;
@ -1580,11 +1594,11 @@ static stock UpdateTable(handle)
}
new str[256];
new tmp[10];
format(str, sizeof(str), "{59cdff}MP: {ff9059}%s\n", ConvertPrice(TableData[handle][E_TABLE_POT_CHIPS][MAIN_POT]));
format(str, sizeof(str), "{59cdff}Main Pot: {ff9059}%s\n", ConvertPrice(TableData[handle][E_TABLE_POT_CHIPS][MAIN_POT]));
SetPotChipsValue(handle, TableData[handle][E_TABLE_POT_CHIPS][MAIN_POT]);
if(Iter_Count(IT_Sidepots[handle] > 1))
{
strcat(str, "{008000}SP:\n{008080}");
strcat(str, "{008000}Side Pot:\n{008080}");
foreach(new i: IT_Sidepots[handle])
{
if(i == MAIN_POT) continue;
@ -1918,17 +1932,23 @@ stock CheckShowdown(handle)
if(p == high_id) continue;
ApplyAnimation(p, "INT_OFFICE", "OFF_Sit_Crash", 4.1, 0, 1, 1, 1, 0, 1);
}
new w_chips = floatround(float(TableData[handle][E_TABLE_POT_CHIPS][pot_id]) * (1.0 - T_POT_FEE_RATE));
new fee_earned = floatround((float(TableData[handle][E_TABLE_POT_CHIPS][pot_id]) / 1000.0) * T_POT_FEE_RATE);
UpdateServerVariable( "poker_fees", 0, GetGVarFloat( "poker_fees" ) + fee_earned, "", GLOBAL_VARTYPE_FLOAT );
SendTableMessage(handle, "{9FCF30}****************************************************************************************");
SendTableMessage(handle, "{9FCF30}Player {FF8000}%s {9FCF30}has won with a {377CC8}%s", ReturnPlayerName(high_id), HAND_RANKS[highest_rank >> 12]);
SendTableMessage(handle, "{9FCF30}Prize: {377CC8}%s!", ConvertPrice(TableData[handle][E_TABLE_POT_CHIPS][pot_id]));
SendTableMessage(handle, "{9FCF30}Prize: {377CC8}%s | -%0.0f%s percent fee.", ConvertPrice(w_chips), T_POT_FEE_RATE * 100.0, "%%");
SendTableMessage(handle, "{9FCF30}****************************************************************************************");
PlayerData[high_id][E_PLAYER_TOTAL_CHIPS] += TableData[handle][E_TABLE_POT_CHIPS][pot_id];
PlayerData[high_id][E_PLAYER_TOTAL_CHIPS] += w_chips;
}
else
{
SendTableMessage(handle, "{9FCF30}****************************************************************************************");
SendTableMessage(handle, "{9FCF30}Draw! These players have won with a {377CC8}%s:", HAND_RANKS[highest_rank >> 12]);
new amount = TableData[handle][E_TABLE_POT_CHIPS][pot_id] / count;
new w_chips = floatround(float(TableData[handle][E_TABLE_POT_CHIPS][pot_id]) * (1.0 - T_POT_FEE_RATE));
new fee_earned = floatround((float(TableData[handle][E_TABLE_POT_CHIPS][pot_id]) / 1000.0) * T_POT_FEE_RATE);
UpdateServerVariable( "poker_fees", 0, GetGVarFloat( "poker_fees" ) + fee_earned, "", GLOBAL_VARTYPE_FLOAT );
new amount = w_chips / count;
//new excess = TableData[handle][E_TABLE_POT_CHIPS][pot_id] % count
foreach(new p: It_SidepotMembers[_IT[handle][pot_id]])
{
@ -1943,7 +1963,7 @@ stock CheckShowdown(handle)
ApplyAnimation(p, "INT_OFFICE", "OFF_Sit_Crash", 4.1, 0, 1, 1, 1, 0, 1);
}
}
SendTableMessage(handle, "{9FCF30}Each receives 1/%d of the total pot available.", count);
SendTableMessage(handle, "{9FCF30}Each receives 1/%d of the total pot available. | -%0.0f%s percent fee", count, T_POT_FEE_RATE * 100.0, "%%");
SendTableMessage(handle, "{9FCF30}****************************************************************************************");
}
UpdateTable(handle);
@ -2127,9 +2147,12 @@ stock bool: FoldPlayer(handle, playerid)
HidePlayerChoices(winner);
SendTableMessage(handle, "{9FCF30}****************************************************************************************");
SendTableMessage(handle, "{9FCF30}Player {FF8000}%s {9FCF30}has won the game!", ReturnPlayerName(winner));
SendTableMessage(handle, "{9FCF30}Prize: {377CC8}%s!", ConvertPrice(TableData[handle][E_TABLE_POT_CHIPS][MAIN_POT]));
new w_chips = floatround(float(TableData[handle][E_TABLE_POT_CHIPS][MAIN_POT]) * (1.0 - T_POT_FEE_RATE));
new fee_earned = floatround((float(TableData[handle][E_TABLE_POT_CHIPS][MAIN_POT]) / 1000.0) * T_POT_FEE_RATE);
UpdateServerVariable( "poker_fees", 0, GetGVarFloat( "poker_fees" ) + fee_earned, "", GLOBAL_VARTYPE_FLOAT );
SendTableMessage(handle, "{9FCF30}Prize: {377CC8}%s | -%0.0f%s percent fee", ConvertPrice(w_chips), T_POT_FEE_RATE * 100.0, "%%");
SendTableMessage(handle, "{9FCF30}****************************************************************************************");
PlayerData[winner][E_PLAYER_TOTAL_CHIPS] += TableData[handle][E_TABLE_POT_CHIPS][MAIN_POT];
PlayerData[winner][E_PLAYER_TOTAL_CHIPS] += w_chips;
PlayerData[winner][E_PLAYER_TOTAL_CHIPS] += PlayerData[winner][E_PLAYER_CURRENT_BET];
UpdateTable(handle);
StartNewPokerGame(handle, 8);
@ -2361,28 +2384,30 @@ hook OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_SECONDARY_ATTACK))
{
new handle = GetClosestTableForPlayer(playerid);
if(handle != ITER_NONE)
{
if(!Iter_Contains(IT_PlayersTable<handle>, playerid))
if(TableData[handle][E_TABLE_VIRTUAL_WORLD] == GetPlayerVirtualWorld(playerid) && TableData[handle][E_TABLE_INTERIOR] == GetPlayerInterior(playerid))
{
if(IsPlayerInRangeOfTable(playerid, handle, T_JOIN_TABLE_RANGE))
if(!Iter_Contains(IT_PlayersTable<handle>, playerid))
{
AddPlayerToTable(playerid, handle);
if(IsPlayerInRangeOfTable(playerid, handle, T_JOIN_TABLE_RANGE))
{
AddPlayerToTable(playerid, handle);
}
}
}
else
{
if((Iter_Contains(IT_PlayersInGame<handle>, playerid) && TableData[handle][E_TABLE_CURRENT_STATE] == STATE_BEGIN)
|| TableData[T_MAX_POKER_TABLES][E_TABLE_LOADING_GAME])
else
{
SendPokerMessage(playerid, "You cannot exit this table as there's currently an active match under process.");
return 0;
if((Iter_Contains(IT_PlayersInGame<handle>, playerid) && TableData[handle][E_TABLE_CURRENT_STATE] == STATE_BEGIN)
|| TableData[T_MAX_POKER_TABLES][E_TABLE_LOADING_GAME])
{
SendPokerMessage(playerid, "You cannot exit this table as there's currently an active match under process.");
return 0;
}
KickPlayerFromTable(playerid);
}
KickPlayerFromTable(playerid);
}
}
}
@ -2481,6 +2506,9 @@ hook OnGameModeInit()
TableChips[T_MAX_POKER_TABLES][i][3] = 0;
}
// server variables
AddServerVariable( "poker_fees", "0.0", GLOBAL_VARTYPE_FLOAT );
// red dragons casino
CreatePokerTable( 5000000, 100000, 1968.395019, 1027.808959, 991.828002, 2, 23, 10 );
CreatePokerTable( 2500000, 50000, 1940.795043, 1008.741027, 991.828002, 2, 23, 10 );

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@
#endif
/* ** Definitions ** */
#define MAX_ROULETTE_TABLES 16
#define MAX_ROULETTE_TABLES 23
/* ** Macros ** */
#define IsPlayerOnRoulette(%0) (p_RouletteTable[%0]!=-1)
@ -85,7 +85,7 @@ static const
enum E_ROULETTE_DATA
{
E_OBJECT, E_SPINNER_OBJECT, E_SPINNING_TIMER,
bool: E_NO_MORE_BETS,
bool: E_NO_MORE_BETS, E_WORLD,
Float: E_X, Float: E_Y, Float: E_Z,
Float: E_ROTATION
@ -100,7 +100,7 @@ new
Text: g_rouletteNumberTD [ MAX_ROULETTE_TABLES ],
g_rouletteChipColor [ MAX_PLAYERS ],
g_rouletteChip [ MAX_PLAYERS ] [ sizeof( g_rouletteOffsets ) ],
g_rouletteChip [ MAX_PLAYERS ] [ 2 ] [ sizeof( g_rouletteOffsets ) ],
g_rouletteChipValue [ MAX_PLAYERS ] [ sizeof( g_rouletteOffsets ) ],
Text3D: g_rouletteChipLabel [ MAX_PLAYERS ] [ sizeof( g_rouletteOffsets ) ],
p_rouletteBetValue [ MAX_PLAYERS ],
@ -125,25 +125,26 @@ hook OnGameModeInit( )
AddServerVariable( "roulette_wins", "0.0", GLOBAL_VARTYPE_FLOAT );
// create roulette tables
CreateRouletteTable( 2242.36719, 1589.18750, 1006.22662, -90.0000 );
CreateRouletteTable( 2242.36719, 1594.75781, 1006.22662, 90.00000 );
CreateRouletteTable( 2230.57031, 1589.18750, 1006.22662, -90.0000 );
CreateRouletteTable( 2230.57031, 1594.75781, 1006.22662, 90.00000 );
CreateRouletteTable( 2230.57031, 1614.59375, 1006.22662, -90.0000 );
CreateRouletteTable( 2230.57031, 1619.65625, 1006.22662, 90.00000 );
CreateRouletteTable( 2241.44531, 1614.55469, 1006.22662, -90.0000 );
CreateRouletteTable( 2241.44531, 1619.60938, 1006.22662, 90.00000 );
CreateRouletteTable( 1963.71094, 1025.69531, 992.507810, 0.000000 );
CreateRouletteTable( 1959.39844, 1025.69531, 992.507810, 0.000000 );
CreateRouletteTable( 1963.71094, 1010.11719, 992.507810, 0.000000 );
CreateRouletteTable( 1959.39844, 1010.11719, 992.507810, 0.000000 );
CreateRouletteTable( 2242.36719, 1589.18750, 1006.22662, -90.0000, 82 );
CreateRouletteTable( 2242.36719, 1594.75781, 1006.22662, 90.00000, 82 );
CreateRouletteTable( 2230.57031, 1589.18750, 1006.22662, -90.0000, 82 );
CreateRouletteTable( 2230.57031, 1594.75781, 1006.22662, 90.00000, 82 );
CreateRouletteTable( 2230.57031, 1614.59375, 1006.22662, -90.0000, 82 );
CreateRouletteTable( 2230.57031, 1619.65625, 1006.22662, 90.00000, 82 );
CreateRouletteTable( 2241.44531, 1614.55469, 1006.22662, -90.0000, 82 );
CreateRouletteTable( 2241.44531, 1619.60938, 1006.22662, 90.00000, 82 );
CreateRouletteTable( 1963.71094, 1025.69531, 992.507810, 0.000000, 23 );
CreateRouletteTable( 1959.39844, 1025.69531, 992.507810, 0.000000, 23 );
CreateRouletteTable( 1963.71094, 1010.11719, 992.507810, 0.000000, 23 );
CreateRouletteTable( 1959.39844, 1010.11719, 992.507810, 0.000000, 23 );
return 1;
}
hook OnPlayerConnect( playerid )
{
for ( new i = 0; i < sizeof( g_rouletteOffsets ); i ++ ) {
g_rouletteChip[ playerid ] [ i ] = -1;
g_rouletteChip[ playerid ] [ 0 ] [ i ] = -1;
g_rouletteChip[ playerid ] [ 1 ] [ i ] = -1;
g_rouletteChipLabel[ playerid ] [ i ] = Text3D: INVALID_3DTEXT_ID;
g_rouletteChipValue[ playerid ] [ i ] = 0;
}
@ -216,6 +217,7 @@ hook OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
foreach (new i : Player) if ( p_RouletteTable[ i ] == rouletteid )
{
PlayerPlaySound( i, 33400, 0.0, 0.0, 0.0 );
TextDrawShowForPlayer( i, g_rouletteNumberBG[ rouletteid ] );
TextDrawShowForPlayer( i, g_rouletteNumberTD[ rouletteid ] );
@ -262,7 +264,8 @@ hook OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
for ( new column = 0; column < sizeof( g_rouletteOffsets ); column ++ )
{
g_rouletteChipValue[ playerid ] [ column ] = 0;
DestroyDynamicObject( g_rouletteChip[ playerid ] [ column ] ), g_rouletteChip[ playerid ] [ column ] = -1;
DestroyDynamicObject( g_rouletteChip[ playerid ] [ 0 ] [ column ] ), g_rouletteChip[ playerid ] [ 0 ] [ column ] = -1;
DestroyDynamicObject( g_rouletteChip[ playerid ] [ 1 ] [ column ] ), g_rouletteChip[ playerid ] [ 1 ] [ column ] = -1;
DestroyDynamic3DTextLabel( g_rouletteChipLabel[ playerid ] [ column ] ), g_rouletteChipLabel[ playerid ] [ column ] = Text3D: INVALID_3DTEXT_ID;
}
}
@ -307,30 +310,37 @@ hook OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
if ( g_rouletteChipValue[ playerid ] [ column ] <= 0 )
{
DestroyDynamic3DTextLabel( g_rouletteChipLabel[ playerid ] [ column ] ), g_rouletteChipLabel[ playerid ] [ column ] = Text3D: -1;
DestroyDynamicObject( g_rouletteChip[ playerid ] [ column ] ), g_rouletteChip[ playerid ] [ column ] = -1;
DestroyDynamicObject( g_rouletteChip[ playerid ] [ 0 ] [ column ] ), g_rouletteChip[ playerid ] [ 0 ] [ column ] = -1;
DestroyDynamicObject( g_rouletteChip[ playerid ] [ 1 ] [ column ] ), g_rouletteChip[ playerid ] [ 1 ] [ column ] = -1;
g_rouletteChipValue[ playerid ] [ column ] = 0;
//printf("removed");
}
else
{
// Calculate chip height
new
Float: height = 0.295 - float( g_rouletteChipValue[ playerid ] [ column ] / 1000 ) * 0.005;
new Float: height = 0.295 - float( g_rouletteChipValue[ playerid ] [ column ] / 1000 ) * 0.005;
if ( height < 0.18 )
height = 0.18;
// readjust max height
if ( height < 0.18 ) height = 0.18;
// store color
new color = ( g_rouletteChipColor[ playerid ] >> 8 ) | 0x99000000;
//printf("g_rouletteChip[%s][%d] = %d", ReturnPlayerName( playerid ), column, g_rouletteChip[ playerid ] [ column ] );
if ( g_rouletteChip[ playerid ] [ column ] == -1 )
if ( g_rouletteChip[ playerid ] [ 0 ] [ column ] == -1 )
{
g_rouletteChip[ playerid ] [ column ] = CreateDynamicObject( 1902, offsetX, offsetY, g_rouletteTableData[ rouletteid ] [ E_Z ] - height, 0.00000, 0.00000, 0.0, .priority = 9999, .drawdistance = 10.0, .streamdistance = 12.0 ); // 2992
SetDynamicObjectMaterial( g_rouletteChip[ playerid ] [ column ], 0, 1902, "chip_stack08", "chip_stck6", ( ( g_rouletteChipColor[ playerid ] >> 8 ) | 0x99000000 ) );
g_rouletteChip[ playerid ] [ 0 ] [ column ] = CreateDynamicObject( 1902, offsetX, offsetY, g_rouletteTableData[ rouletteid ] [ E_Z ] - height, 0.0, 0.0, 0.0, .worldid = g_rouletteTableData[ rouletteid ] [ E_WORLD ], .priority = 9999 );
SetDynamicObjectMaterialText( g_rouletteChip[ playerid ] [ 0 ] [ column ], 0, " ", .backcolor = color );
g_rouletteChip[ playerid ] [ 1 ] [ column ] = CreateDynamicObject(1905, offsetX, offsetY, g_rouletteTableData[ rouletteid ] [ E_Z ] - height + 0.125, 0.0, 0.0, 0.0, .worldid = g_rouletteTableData[ rouletteid ] [ E_WORLD ], .priority = 9999);
SetDynamicObjectMaterialText( g_rouletteChip[ playerid ] [ 1 ] [ column ], 0, ConvertRouletteChipValue( g_rouletteChipValue[ playerid ] [ column ] ), 50, "Arial", 44, 1, color, -1, 1 );
g_rouletteChipLabel[ playerid ] [ column ] = CreateDynamic3DTextLabel( sprintf( "%s", ConvertPrice( g_rouletteChipValue[ playerid ] [ column ] ) ), g_rouletteChipColor[ playerid ], offsetX, offsetY, g_rouletteTableData[ rouletteid ] [ E_Z ] - 0.15 + ( float( playerid ) / 100 ), 5.0 ); //INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, playerid );
//printf("(%s) CREATED CHIP %d:%d", ReturnPlayerName( playerid ), g_rouletteChip[ playerid ] [ column ], _: g_rouletteChipLabel[ playerid ] [ column ] );
}
else
{
SetDynamicObjectPos( g_rouletteChip[ playerid ] [ column ], offsetX, offsetY, g_rouletteTableData[ rouletteid ] [ E_Z ] - height );
SetDynamicObjectMaterialText( g_rouletteChip[ playerid ] [ 1 ] [ column ], 0, ConvertRouletteChipValue( g_rouletteChipValue[ playerid ] [ column ] ), 50, "Arial", 44, 1, color, -1, 1 );
SetDynamicObjectPos( g_rouletteChip[ playerid ] [ 0 ] [ column ], offsetX, offsetY, g_rouletteTableData[ rouletteid ] [ E_Z ] - height );
SetDynamicObjectPos( g_rouletteChip[ playerid ] [ 1 ] [ column ], offsetX, offsetY, g_rouletteTableData[ rouletteid ] [ E_Z ] - height + 0.125 );
UpdateDynamic3DTextLabelText( g_rouletteChipLabel[ playerid ] [ column ], g_rouletteChipColor[ playerid ], sprintf( "%s", ConvertPrice( g_rouletteChipValue[ playerid ] [ column ] ) ) );
//printf("(%s) UPDATED CHIP %d:%d", ReturnPlayerName( playerid ), g_rouletteChip[ playerid ] [ column ], _: g_rouletteChipLabel[ playerid ] [ column ] );
}
@ -350,7 +360,7 @@ hook OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
if ( p_RouletteTable[ playerid ] != -1 )
return RemovePlayerFromRoulette( playerid );
foreach(new id : roulettetables)
foreach(new id : roulettetables) if ( GetPlayerVirtualWorld( playerid ) == g_rouletteTableData[ id ] [ E_WORLD ] )
{
if ( IsPlayerInRangeOfPoint( playerid, 3.1, g_rouletteTableData[ id ] [ E_X ], g_rouletteTableData[ id ] [ E_Y ], g_rouletteTableData[ id ] [ E_Z ] ) ) {
@ -380,7 +390,7 @@ hook OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
new Float: offsetX = g_rouletteOffsets[ 0 ] [ E_OFFSET ] * floatcos( Angle + g_rouletteOffsets[ 0 ] [ E_ANGLE ], degrees );
new Float: offsetY = g_rouletteOffsets[ 0 ] [ E_OFFSET ] * floatsin( Angle + g_rouletteOffsets[ 0 ] [ E_ANGLE ], degrees );
DestroyDynamicObject( p_RouletteMarker[ playerid ] );
p_RouletteMarker[ playerid ] = CreateDynamicObject( 2992, X + offsetX, Y + offsetY, Z - 0.17, 0.00000, 0.00000, 0.0, -1, -1, playerid, .priority = 9999, .drawdistance = 10.0, .streamdistance = 12.0 );
p_RouletteMarker[ playerid ] = CreateDynamicObject( 2992, X + offsetX, Y + offsetY, Z - 0.17, 0.00000, 0.00000, 0.0, .worldid = g_rouletteTableData[ id ] [ E_WORLD ], .playerid = playerid, .priority = 9999, .drawdistance = 10.0, .streamdistance = 12.0 );
// starting bet
p_rouletteBetValue[ playerid ] = 1000;
@ -433,7 +443,7 @@ hook InitializeTextDraws( )
}
/* ** Functions ** */
stock CreateRouletteTable( Float: X, Float: Y, Float: Z, Float: Angle )
stock CreateRouletteTable( Float: X, Float: Y, Float: Z, Float: Angle, world )
{
new
id = Iter_Free(roulettetables);
@ -444,23 +454,24 @@ stock CreateRouletteTable( Float: X, Float: Y, Float: Z, Float: Angle )
g_rouletteTableData[ id ] [ E_Y ] = Y;
g_rouletteTableData[ id ] [ E_Z ] = Z;
g_rouletteTableData[ id ] [ E_ROTATION ] = Angle;
g_rouletteTableData[ id ] [ E_WORLD ] = world;
g_rouletteTableData[ id ] [ E_SPINNING_TIMER ] = -1;
g_rouletteTableData[ id ] [ E_OBJECT ] = CreateDynamicObject( 1978, X, Y, Z, 0.00000, 0.00000, Angle, .priority = 9999 );
g_rouletteTableData[ id ] [ E_OBJECT ] = CreateDynamicObject( 1978, X, Y, Z, 0.00000, 0.00000, Angle, .worldid = world, .priority = 9999 );
X += 1.365 * floatcos( Angle + 98.0, degrees );
Y += 1.365 * floatsin( Angle + 98.0, degrees );
CreateDynamic3DTextLabel( "Press ENTER To Play\n"COL_WHITE"$1,000 Minimum", COLOR_GREY, X, Y, Z + 0.02, 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, .testlos = 0 );
CreateDynamic3DTextLabel( "Press ENTER To Play Roulette\n"COL_WHITE"$1,000 Minimum", COLOR_GREY, X, Y, Z + 0.02, 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, .worldid = world, .testlos = 0 );
g_rouletteTableData[ id ] [ E_SPINNER_OBJECT ] = CreateDynamicObject( 1979, X, Y, Z - 0.02, 0.00000, 0.00000, 0.0, .priority = 9999 );
g_rouletteTableData[ id ] [ E_SPINNER_OBJECT ] = CreateDynamicObject( 1979, X, Y, Z - 0.02, 0.00000, 0.00000, 0.0, .worldid = world, .priority = 9999 );
Iter_Add( roulettetables, id );
}
else
{
static overflow;
printf("[ROULETTE ERROR] Reached limit of %d blackjack tables, increase to %d to fix.", MAX_ROULETTE_TABLES, MAX_ROULETTE_TABLES + ( ++ overflow ) );
printf("[ROULETTE ERROR] Reached limit of %d roulette tables, increase to %d to fix.", MAX_ROULETTE_TABLES, MAX_ROULETTE_TABLES + ( ++ overflow ) );
}
return 1;
}
@ -504,6 +515,11 @@ public OnSpinRouletteTable( rouletteid, elapsed, steps )
new
iWinning = GenerateRandomRouletteNumber( rouletteid );
// play noise
foreach (new i : Player) if ( p_RouletteTable[ i ] == rouletteid ) {
PlayerPlaySound( i, randarg( 33401, 33402, 33403 ), 0.0, 0.0, 0.0 );
}
// Kill the timer just incase
KillTimer( g_rouletteTableData[ rouletteid ] [ E_SPINNING_TIMER ] );
g_rouletteTableData[ rouletteid ] [ E_SPINNING_TIMER ] = -1;
@ -633,7 +649,8 @@ public OnRouletteWheelStop( rouletteid, winner )
if ( beforeWin >= won ) {
g_rouletteChipValue[ playerid ] [ chipid ] = 0;
DestroyDynamicObject( g_rouletteChip[ playerid ] [ chipid ] ), g_rouletteChip[ playerid ] [ chipid ] = -1;
DestroyDynamicObject( g_rouletteChip[ playerid ] [ 0 ] [ chipid ] ), g_rouletteChip[ playerid ] [ 0 ] [ chipid ] = -1;
DestroyDynamicObject( g_rouletteChip[ playerid ] [ 1 ] [ chipid ] ), g_rouletteChip[ playerid ] [ 1 ] [ chipid ] = -1;
DestroyDynamic3DTextLabel( g_rouletteChipLabel[ playerid ] [ chipid ] ), g_rouletteChipLabel[ playerid ] [ chipid ] = Text3D: -1;
}
@ -833,7 +850,8 @@ stock RemovePlayerFromRoulette( playerid )
// remove chips
for ( new i = 0; i < sizeof( g_rouletteOffsets ); i ++ ) {
DestroyDynamicObject( g_rouletteChip[ playerid ] [ i ] ), g_rouletteChip[ playerid ] [ i ] = -1;
DestroyDynamicObject( g_rouletteChip[ playerid ] [ 0 ] [ i ] ), g_rouletteChip[ playerid ] [ 0 ] [ i ] = -1;
DestroyDynamicObject( g_rouletteChip[ playerid ] [ 1 ] [ i ] ), g_rouletteChip[ playerid ] [ 1 ] [ i ] = -1;
DestroyDynamic3DTextLabel( g_rouletteChipLabel[ playerid ] [ i ] ), g_rouletteChipLabel[ playerid ] [ i ] = Text3D: INVALID_3DTEXT_ID;
g_rouletteChipValue[ playerid ] [ i ] = 0;
}
@ -844,6 +862,9 @@ stock RemovePlayerFromRoulette( playerid )
TextDrawHideForPlayer( playerid, g_rouletteNumberTD[ p_RouletteTable[ playerid ] ] );
}
// reset sound
PlayerPlaySound( playerid, 33404, 0.0, 0.0, 0.0 );
// reset user variables
HidePlayerHelpDialog( playerid );
p_RouletteTable[ playerid ] = -1;
@ -861,3 +882,20 @@ stock RemovePlayerFromRoulette( playerid )
}
return 1;
}
stock ConvertRouletteChipValue( value ) {
new
Float: float_value = float( value ), string[ 16 ]; // $1000K
if ( float_value >= 1000000.0 ) {
float_value /= 1000000.0;
format( string, sizeof( string ), "$%0.1fM", float_value );
} else if ( float_value >= 1000.0 ) {
float_value /= 1000.0;
format( string, sizeof( string ), "$%0.0fK", float_value );
} else {
format( string, sizeof( string ), "$%0.0f", float_value );
}
return string;
}

File diff suppressed because it is too large Load Diff

View File

@ -30,6 +30,7 @@
/* ** Variables ** */
stock szSmallString[ 32 ];
stock szNormalString[ 144 ];
stock szBigString[ 256 ];
stock szLargeString[ 1024 ];
stock szHugeString[ 2048 ];

View File

@ -35,8 +35,8 @@
#include < irresistible\features\visage\blackjack >
#include < irresistible\features\visage\poker >
// #include < irresistible\features\visage\fireworks >
// #include < irresistible\features\visage\apartments >
#include < irresistible\features\visage\static_casino >
#include < irresistible\features\visage\casino >
#include < irresistible\features\visage\apartments >
// static cnr features
#include < irresistible\cnr\static\actors >

View File

@ -26,6 +26,7 @@ new
/* ** Forwards ** */
forward OnNpcConnect( npcid );
forward OnNpcDisconnect( npcid, reason );
/* ** Hooks ** */
hook OnRconLoginAttempt( ip[ ], password[ ], success )
@ -96,11 +97,31 @@ hook OnPlayerConnect( playerid )
strcpy( p_PlayerIP[ playerid ], szIP );
strcpy( p_PlayerName[ playerid ], szName );
if ( ! ( 0 <= playerid < MAX_PLAYERS ) )
return Kick( playerid ), 1;
// get out the bots/invalid player ids
if ( ! ( 0 <= playerid < MAX_PLAYERS ) ) {
Kick( playerid );
return Y_HOOKS_BREAK_RETURN_1;
}
if ( strlen( ReturnPlayerName( playerid ) ) <= 2 )
return Kick( playerid ), 1;
// check for invalid name
if ( strlen( ReturnPlayerName( playerid ) ) <= 2 ) {
Kick( playerid );
return Y_HOOKS_BREAK_RETURN_1;
}
return 1;
}
hook OnPlayerDisconnect( playerid, reason )
{
if ( IsPlayerNPC( playerid ) ) {
CallLocalFunction( "OnNpcDisconnect", "dd", playerid, reason );
return Y_HOOKS_BREAK_RETURN_1;
}
// Filter out bots
if ( ! ( 0 <= playerid < MAX_PLAYERS ) ) {
return Y_HOOKS_BREAK_RETURN_1;
}
return 1;
}

View File

@ -7,9 +7,6 @@
// mysqldump -u service -p82JA8LDL1JAG2GF69 sa-mp > ~/dump01.sql
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** MySQL Settings ** */
#if !defined DEBUG_MODE
#define MYSQL_HOST "127.0.0.1"
@ -23,6 +20,14 @@
#define MYSQL_DATABASE "sa-mp"
#endif
/* ** Error Checking ** */
#if defined FILTERSCRIPT
#endinput
#endif
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** Variables ** */
stock dbHandle;
stock bool: serverLocked = false;