* modulize mysql, blackjack

* working on apartment for visage
This commit is contained in:
Lorenc 2018-03-17 05:28:58 +11:00
parent e23cfeb4b2
commit 271c96341c
17 changed files with 8333 additions and 1477 deletions

View File

@ -13,523 +13,12 @@ stock tmpVariable;
public OnFilterScriptInit() public OnFilterScriptInit()
{ {
// The Visage Casino
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3186.426025, 2894.111083, 81.443000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3126.739013, 2887.888916, 81.416999, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3126.739013, 2887.888916, 34.516998, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3128.611083, 2887.888916, 34.519001, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3130.450927, 2887.888916, 34.520999, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3132.292968, 2887.888916, 34.522998, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3134.093017, 2887.888916, 34.525001, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3135.894042, 2887.888916, 34.528999, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3137.701904, 2887.888916, 34.530998, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3139.501953, 2887.888916, 34.533000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3141.281005, 2887.888916, 34.534999, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3143.070068, 2887.888916, 34.536998, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3107.142089, 2900.892089, 60.563999, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3107.156005, 2874.889892, 60.563999, 0.000000, 90.000000, -90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3136.159912, 2845.888916, 60.563999, 0.000000, 90.000000, 180.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3136.159912, 2929.893066, 60.563999, 0.000000, 90.000000, 180.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3120.439941, 2910.885986, 60.563999, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 4830, "airport2", "LASLACMA96", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3122.824951, 2864.897949, 60.563999, 0.000000, 90.000000, -90.000000, -1, -1, -1 ), 0, 4830, "airport2", "LASLACMA96", -16 );
CreateDynamicObject( 14629, 3167.575927, 2895.346923, 65.593002, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3145.125000, 2887.856933, 54.701999, 0.000000, 0.000000, 180.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3145.541992, 2895.730957, 54.701999, 0.000000, 0.000000, 173.899993, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3145.545898, 2879.970947, 54.701999, 0.000000, 0.000000, -173.899993, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3146.805908, 2872.185058, 54.700000, 0.000000, 0.000000, -167.699005, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3146.804931, 2903.468994, 54.701999, 0.000000, 0.000000, 167.598999, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3148.510009, 2864.377929, 54.700000, 0.000000, 0.000000, -167.699005, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3148.522949, 2911.281982, 54.701999, 0.000000, 0.000000, 167.598999, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3146.720947, 2887.888916, 33.365001, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3148.530029, 2887.888916, 33.367000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3150.990966, 2879.989013, 53.532001, 0.000000, 0.000000, -173.899993, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3150.991943, 2895.721923, 53.532001, 0.000000, 0.000000, 173.899993, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3152.260009, 2903.498046, 53.532001, 0.000000, 0.000000, 167.598999, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3165.649902, 2894.111083, 52.395000, 0.000000, 180.000000, 0.000000, -1, -1, -1 ), 0, 14597, "papaerchaseoffice", "CJ_WOOD5", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3150.573974, 2887.856933, 53.532001, 0.000000, 0.000000, 180.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3152.251953, 2872.224121, 53.532001, 0.000000, 0.000000, -167.699005, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3154.028076, 2864.474121, 53.532001, 0.000000, 0.000000, -166.598999, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 14394, 3153.977050, 2911.301025, 53.532001, 0.000000, 0.000000, 167.598999, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3126.739013, 2887.888916, 82.416999, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3128.611083, 2887.888916, 82.418998, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3130.450927, 2887.888916, 82.420997, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3132.292968, 2887.888916, 82.422996, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3134.093017, 2887.888916, 82.425003, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3135.894042, 2887.888916, 82.429000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3137.701904, 2887.888916, 82.430999, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3139.501953, 2887.888916, 82.432998, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3141.281005, 2887.888916, 82.434997, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19884, 3143.070068, 2887.888916, 82.436996, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3148.958007, 2887.406982, 60.956001, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3150.455078, 2887.405029, 60.923999, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2887.405029, 60.925998, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3170.455078, 2887.405029, 60.923999, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3180.455078, 2887.405029, 60.923999, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2887.405029, 60.923999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2897.405029, 60.923999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2877.405029, 60.923999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2867.405029, 60.923999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.455078, 2907.405029, 60.923999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.455078, 2887.405029, 60.928001, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.455078, 2897.405029, 60.923999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.455078, 2877.405029, 60.923999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.455078, 2867.405029, 60.923999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.455078, 2907.405029, 60.923999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3165.649902, 2894.111083, 67.394996, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14597, "papaerchaseoffice", "CJ_WOOD5", 0 );
CreateDynamicObject( 19943, 3160.447021, 2902.394042, 53.384998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3138.958007, 2887.406982, 60.956001, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3130.638916, 2887.406982, 60.956001, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
CreateDynamicObject( 19943, 3160.447021, 2872.394042, 53.384998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19943, 3167.947021, 2887.394042, 53.384998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19943, 3175.447021, 2894.894042, 53.384998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19943, 3175.447021, 2902.394042, 53.384998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19943, 3175.447021, 2879.894042, 53.384998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19943, 3175.447021, 2872.394042, 53.384998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19943, 3160.447021, 2894.894042, 53.384998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19943, 3160.447021, 2879.894042, 53.384998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3178.587890, 2887.418945, 32.412998, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3178.587890, 2879.876953, 32.412998, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3178.587890, 2872.408935, 32.410999, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3178.587890, 2894.900878, 32.415000, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3178.587890, 2902.379882, 32.415000, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "casino_carp", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3155.855957, 2881.586914, 50.898998, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3155.855957, 2877.175048, 50.896999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3165.855957, 2877.175048, 50.896999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3175.855957, 2877.175048, 50.896999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3165.855957, 2881.586914, 50.898998, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3175.855957, 2881.586914, 50.898998, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
CreateDynamicObject( 2188, 3156.629882, 2885.523925, 54.379001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2188, 3159.129882, 2881.750976, 54.379001, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
CreateDynamicObject( 2188, 3161.629882, 2885.523925, 54.379001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2188, 3164.129882, 2881.750976, 54.379001, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
CreateDynamicObject( 2188, 3166.629882, 2885.523925, 54.379001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2188, 3169.129882, 2881.750976, 54.379001, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
CreateDynamicObject( 2188, 3171.629882, 2885.523925, 54.379001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2188, 3174.129882, 2881.750976, 54.379001, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
CreateDynamicObject( 1978, 3176.070068, 2875.992919, 54.446998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3155.855957, 2888.267089, 50.900001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3155.855957, 2898.220947, 50.900001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3165.855957, 2888.267089, 50.900001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3175.855957, 2888.267089, 50.900001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3175.855957, 2898.220947, 50.900001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 3165.855957, 2898.220947, 50.900001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 17946, "carter_mainmap", "mp_carter_carpet", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3201.839111, 2894.111083, 52.415000, 0.000000, 180.000000, 0.000000, -1, -1, -1 ), 0, 14597, "papaerchaseoffice", "CJ_WOOD5", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3183.584960, 2909.878906, 46.729999, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14627, "ab_optilite", "ab_optilite", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3183.584960, 2865.919921, 46.729999, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14627, "ab_optilite", "ab_optilite", -16 );
CreateDynamicObject( 2111, 3156.923095, 2891.148925, 53.761001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2111, 3161.923095, 2891.148925, 53.761001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2111, 3166.923095, 2891.148925, 53.761001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2111, 3171.923095, 2891.148925, 53.761001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2111, 3176.923095, 2891.148925, 53.761001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3204.259033, 2844.235107, 46.729999, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14627, "ab_optilite", "ab_optilite", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3204.259033, 2930.519042, 46.729999, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14627, "ab_optilite", "ab_optilite", -16 );
CreateDynamicObject( 19929, 3156.495117, 2898.645019, 54.188999, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19929, 3160.495117, 2898.645019, 54.188999, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19929, 3164.495117, 2898.645019, 54.188999, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19929, 3168.495117, 2898.645019, 54.188999, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19929, 3172.495117, 2898.645019, 54.188999, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19929, 3176.495117, 2898.645019, 54.188999, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19929, 3176.195068, 2898.646972, 54.191001, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19929, 3172.195068, 2898.646972, 54.191001, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19929, 3168.195068, 2898.646972, 54.191001, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19929, 3164.195068, 2898.646972, 54.191001, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19929, 3160.195068, 2898.646972, 54.191001, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19929, 3156.195068, 2898.646972, 54.191001, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3156.529052, 2897.862060, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3156.529052, 2898.622070, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3156.529052, 2899.382080, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3160.529052, 2899.382080, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3164.529052, 2899.382080, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3168.529052, 2899.382080, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3172.529052, 2899.382080, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3176.529052, 2899.382080, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3160.529052, 2898.622070, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3164.529052, 2898.622070, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3168.529052, 2898.622070, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3172.529052, 2898.622070, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3176.529052, 2898.622070, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3176.529052, 2897.862060, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3172.529052, 2897.862060, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3168.529052, 2897.862060, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3164.529052, 2897.862060, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3160.529052, 2897.862060, 54.959999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3156.079101, 2899.422119, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3156.079101, 2898.662109, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3156.079101, 2897.902099, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3160.079101, 2897.902099, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3172.079101, 2897.902099, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3176.079101, 2897.902099, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3164.079101, 2897.902099, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3168.079101, 2897.902099, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3160.079101, 2898.662109, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3164.079101, 2898.662109, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3168.079101, 2898.662109, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3172.079101, 2898.662109, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3176.079101, 2898.662109, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3176.079101, 2899.422119, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3172.079101, 2899.422119, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3168.079101, 2899.422119, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3164.079101, 2899.422119, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2325, 3160.079101, 2899.422119, 54.959999, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 638, 3162.819091, 2894.870117, 54.078998, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 638, 3167.918945, 2894.870117, 54.078998, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 638, 3173.019042, 2894.870117, 54.078998, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 638, 3162.819091, 2879.899902, 54.078998, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 638, 3167.918945, 2879.899902, 54.078998, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 638, 3173.019042, 2879.899902, 54.078998, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 2001, 3180.612060, 2903.082031, 53.374000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2001, 3180.612060, 2871.708007, 53.374000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2001, 3180.612060, 2887.403076, 53.374000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2001, 3180.612060, 2879.861083, 53.374000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.465087, 2870.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.465087, 2880.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.465087, 2890.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.465087, 2900.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.465087, 2910.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.445068, 2910.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.445068, 2870.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.445068, 2880.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.445068, 2890.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3175.445068, 2900.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.472900, 2910.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.472900, 2900.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.472900, 2890.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.472900, 2880.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.472900, 2870.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.441894, 2910.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.441894, 2900.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.441894, 2890.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.441894, 2880.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.441894, 2870.861083, 60.937999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3130.649902, 2887.413085, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3140.649902, 2887.413085, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3150.649902, 2887.413085, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.649902, 2887.413085, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3170.649902, 2887.413085, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3180.649902, 2887.413085, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3170.649902, 2887.393066, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3180.649902, 2887.393066, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3160.649902, 2887.393066, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3150.649902, 2887.393066, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3140.649902, 2887.393066, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3130.649902, 2887.393066, 60.958000, 90.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 3988, "civic06_lan", "casinobulb2_128", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3206.428955, 2894.111083, 61.444999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3205.305908, 2894.111083, 65.433998, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.180908, 2894.382080, 51.900001, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.180908, 2880.403076, 51.900001, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.180908, 2880.413085, 61.900001, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.190917, 2880.403076, 59.900001, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.180908, 2894.382080, 61.900001, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3195.190917, 2894.394042, 59.900001, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 19437, 3194.886962, 2888.254882, 57.493999, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19437, 3194.883056, 2886.345947, 57.495998, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 3195.592041, 2887.418945, 62.664001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3196.168945, 2875.896972, 54.415000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3200.020019, 2875.896972, 54.415000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3203.868896, 2875.896972, 54.415000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3200.664062, 2876.389892, 51.900001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3196.168945, 2898.876953, 54.415000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3200.020019, 2898.876953, 54.415000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3203.868896, 2898.876953, 54.415000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3200.664062, 2898.381103, 51.900001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.700927, 2898.896972, 59.897998, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.700927, 2875.895996, 59.897998, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.680908, 2898.906982, 61.897998, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.670898, 2875.895019, 61.897998, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3200.681884, 2898.876953, 59.888000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3200.681884, 2875.904052, 59.888000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3200.746093, 2887.375000, 58.345001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3200.746093, 2887.375000, 53.345001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3198.169921, 2889.885986, 54.415000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3198.169921, 2884.905029, 54.415000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3199.729003, 2885.687988, 54.415000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3199.729003, 2889.097900, 54.415000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3197.021972, 2886.864990, 59.904998, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3197.021972, 2888.035888, 59.907001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3199.021972, 2888.035888, 59.909000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18763, 3199.021972, 2886.864990, 59.907001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
CreateDynamicObject( 869, 3196.104003, 2888.270996, 57.895000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 869, 3196.104003, 2886.949951, 57.895000, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3203.169921, 2884.905029, 54.415000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3203.169921, 2889.885986, 54.415000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 10765, "airportgnd_sfse", "white", -16 );
CreateDynamicObject( 11727, 3198.472900, 2888.979980, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3198.472900, 2885.798095, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3195.202880, 2889.908935, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3195.202880, 2891.908935, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3195.202880, 2893.908935, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3195.202880, 2895.908935, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3195.202880, 2897.908935, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3195.202880, 2884.906005, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3195.202880, 2882.906005, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3195.202880, 2880.906005, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3195.202880, 2878.906005, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3195.202880, 2876.906005, 57.415000, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3198.041992, 2875.916015, 57.384998, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3201.995117, 2875.916015, 57.384998, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3198.041992, 2898.856933, 57.384998, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 11727, 3201.943115, 2898.856933, 57.384998, 90.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3194.061035, 2891.262939, 53.784000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3194.061035, 2893.262939, 53.784000, 0.000000, 0.000000, 24.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3194.061035, 2895.262939, 53.784000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3194.061035, 2897.262939, 53.784000, 0.000000, 0.000000, 45.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3197.302001, 2899.573974, 53.784000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3198.551025, 2899.705078, 53.784000, 0.000000, 0.000000, 30.899999, -1, -1, -1 );
CreateDynamicObject( 2350, 3202.224121, 2899.573974, 53.784000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3194.061035, 2883.510986, 53.784000, 0.000000, 0.000000, 122.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3194.061035, 2881.510986, 53.784000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3194.061035, 2879.510986, 53.784000, 0.000000, 0.000000, 45.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3194.061035, 2877.510986, 53.784000, 0.000000, 0.000000, 45.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3197.361083, 2875.311035, 53.784000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3199.009033, 2875.210937, 53.784000, 0.000000, 0.000000, -36.299999, -1, -1, -1 );
CreateDynamicObject( 2350, 3198.142089, 2875.090087, 53.784000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3201.231933, 2876.131103, 54.794998, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2350, 3202.383056, 2876.131103, 54.794998, 0.000000, 180.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 1542, 3195.688964, 2895.531982, 54.234001, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 1541, 3195.739013, 2896.802978, 54.433998, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 1541, 3195.739013, 2893.423095, 54.433998, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 1542, 3195.688964, 2892.121093, 54.234001, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 1545, 3195.759033, 2882.740966, 54.375000, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 1541, 3195.739013, 2881.292968, 54.433998, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 1545, 3195.759033, 2878.249023, 54.375000, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 1541, 3195.739013, 2879.943115, 54.433998, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
CreateDynamicObject( 1548, 3195.187988, 2892.004882, 54.415000, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 1548, 3195.187988, 2895.085937, 54.415000, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 1548, 3195.187988, 2882.812988, 54.415000, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 1548, 3195.187988, 2878.314941, 54.415000, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 1548, 3195.187988, 2880.643066, 54.415000, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 14565, 3204.690917, 2884.108886, 55.375000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 14565, 3204.690917, 2890.573974, 55.375000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3204.097900, 2892.910888, 51.875000, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -17895696 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3204.097900, 2880.491943, 51.875000, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -17895696 );
CreateDynamicObject( 11686, 3203.916992, 2880.778076, 53.270000, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 11686, 3203.916992, 2893.804931, 53.270000, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 14611, 3200.092041, 2880.576904, 59.959999, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 14611, 3200.092041, 2894.250000, 59.959999, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.177001, 2888.885986, 54.935001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.177001, 2885.904052, 54.935001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.177001, 2886.895019, 58.345001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.177001, 2887.895996, 58.345001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 10765, "airportgnd_sfse", "white", -16 );
CreateDynamicObject( 1491, 3195.846923, 2886.649902, 53.375000, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.178955, 2886.176025, 54.935001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 10765, "airportgnd_sfse", "white", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3196.178955, 2888.666992, 54.935001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 10765, "airportgnd_sfse", "white", -16 );
CreateDynamicObject( 2528, 3197.761962, 2888.893066, 53.404998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19873, 3197.743896, 2889.299072, 54.415000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19873, 3197.604003, 2889.299072, 54.415000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19873, 3197.694091, 2889.299072, 54.534999, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3180.437011, 2910.893066, 52.395000, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 4830, "airport2", "LASLACMA96", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.700927, 2898.866943, 59.897998, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3199.700927, 2875.912109, 59.897998, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 9495, "vict_sfw", "newall10_seamless", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3180.437011, 2864.899902, 52.395000, 0.000000, 90.000000, -90.000000, -1, -1, -1 ), 0, 4830, "airport2", "LASLACMA96", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3165.652099, 2864.927978, 81.424003, 0.000000, 90.000000, -90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3166.947998, 2910.870117, 81.414001, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14625, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3198.177001, 2884.895019, 54.415000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3203.150878, 2884.895019, 54.415000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3198.187011, 2889.886962, 54.415000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3203.142089, 2889.886962, 54.415000, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 12954, "sw_furniture", "CJ_WOOD5", -16 );
CreateDynamicObject( 14493, 3198.009033, 2885.052978, 55.694999, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3197.527099, 2885.581054, 51.674999, 0.000000, 0.000000, -43.099998, -1, -1, -1 ), 0, 1675, "wshxrefhse", "greygreensubuild_128", 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3180.959960, 2898.687988, 53.404998, -90.000000, 0.000000, -90.000000, -1, -1, -1 ), 0, "SLOTS", 130, "Times new Roman", 70, 0, -2987746, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3180.959960, 2891.133056, 53.404998, -90.000000, 0.000000, -90.000000, -1, -1, -1 ), 0, "POKER", 130, "Times New Roman", 70, 0, -2987746, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3180.959960, 2883.635986, 53.404998, -90.000000, 0.000000, -90.000000, -1, -1, -1 ), 0, "BLACKJACK", 130, "Times new Roman", 70, 0, -2987746, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3180.959960, 2876.062988, 53.404998, -90.000000, 0.000000, -90.000000, -1, -1, -1 ), 0, "ROULETTE", 130, "Times new Roman", 70, 0, -2987746, 0, 1 );
CreateDynamicObject( 1978, 3170.070068, 2875.992919, 54.446998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 1978, 3164.070068, 2875.992919, 54.446998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 1978, 3158.070068, 2875.992919, 54.446998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2685, 3197.076904, 2889.364013, 54.604999, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3352, 3175.497070, 2898.697998, 58.275001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, "$100,000,000 PRIZE!", 120, "Arial", 60, 0, -16724736, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 3352, 3160.444091, 2898.697998, 58.275001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, "$50,000,000 PRIZE!", 120, "Arial", 60, 0, -16724736, 0, 1 );
CreateDynamicObject( 19819, 3195.177001, 2896.531005, 54.485000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19822, 3195.106933, 2896.200927, 54.375000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3194.710937, 2880.634033, 59.634998, 0.000000, 0.000000, -90.000000, -1, -1, -1 ), 0, "BAR", 130, "Times New Roman", 110, 0, -2987746, 0, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 19861, 3194.710937, 2894.579101, 59.634998, 0.000000, 0.000000, -90.000000, -1, -1, -1 ), 0, "BAR", 130, "Times New Roman", 110, 0, -2987746, 0, 1 );
tmpVariable = CreateDynamicActor( 252, 3198.350097, 2885.939941, 54.345001, 20.000000, 1, 100.0, -1, -1, -1 );
ApplyDynamicActorAnimation( tmpVariable, "blowjobz", "BJ_COUCH_LOOP_P", 4.1, 1, 1, 1, 1, 0 );
tmpVariable = CreateDynamicActor( 237, 3198.120117, 2886.320068, 55.384998, 215.000000, 1, 100.0, -1, -1, -1 );
ApplyDynamicActorAnimation( tmpVariable, "BLOWJOBZ", "BJ_COUCH_LOOP_W", 4.1, 1, 1, 1, 1, 0 );
CreateDynamicActor( 172, 3196.590087, 2892.739990, 54.415000, 90.000000, 1, 100.0, -1, -1, -1 );
CreateDynamicActor( 172, 3196.590087, 2895.449951, 54.415000, 90.000000, 1, 100.0, -1, -1, -1 );
CreateDynamicActor( 172, 3196.590087, 2882.320068, 54.415000, 90.000000, 1, 100.0, -1, -1, -1 );
CreateDynamicActor( 172, 3196.590087, 2879.510009, 54.415000, 90.000000, 1, 100.0, -1, -1, -1 );
CreateDynamicActor( 163, 3159.459960, 2894.860107, 54.403999, 90.000000, 1, 100.0, -1, -1, -1 );
tmpVariable = CreateDynamicActor( 163, 3159.459960, 2902.409912, 54.403999, 90.000000, 1, 100.0, -1, -1, -1 );
ApplyDynamicActorAnimation( tmpVariable, "DEALER", "DEALER_IDLE", 4.1, 1, 1, 1, 1, 0 );
tmpVariable = CreateDynamicActor( 163, 3159.459960, 2879.870117, 54.403999, 90.000000, 1, 100.0, -1, -1, -1 );
ApplyDynamicActorAnimation( tmpVariable, "COP_AMBIENT", "Coplook_nod", 4.1, 1, 1, 1, 1, 0 );
tmpVariable = CreateDynamicActor( 163, 3159.459960, 2872.320068, 54.403999, 90.000000, 1, 100.0, -1, -1, -1 );
ApplyDynamicActorAnimation( tmpVariable, "DEALER", "DEALER_IDLE", 4.1, 1, 1, 1, 1, 0 );
tmpVariable = CreateDynamicActor( 187, 3194.340087, 2896.699951, 54.465000, 177.600006, 1, 100.0, -1, -1, -1 );
ApplyDynamicActorAnimation( tmpVariable, "misc", "Plyrlean_loop", 4.1, 1, 1, 1, 1, 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3105.908935, 2898.173095, 55.527999, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14390, "dr_gsnew", "mp_motel_carpet1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3125.148925, 2853.114990, 56.500999, 0.000000, 90.000000, 180.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3125.148925, 2922.708984, 56.500999, 0.000000, 90.000000, 180.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3124.666015, 2896.413085, 56.527999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3116.666015, 2896.413085, 56.527999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3105.909912, 2883.181884, 55.527999, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14390, "dr_gsnew", "mp_motel_carpet1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 3125.523925, 2887.237060, 153.826995, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3108.666015, 2896.413085, 56.527999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3100.666015, 2896.413085, 56.527999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3100.666015, 2879.389892, 56.527999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3108.666015, 2879.389892, 56.527999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3124.666015, 2879.389892, 56.527999, 0.000000, 0.000000, 180.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3111.502929, 2898.173095, 64.527999, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14390, "dr_gsnew", "mp_motel_carpet1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19545, 3111.502929, 2883.178955, 64.527999, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14390, "dr_gsnew", "mp_motel_carpet1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 3112.668945, 2908.408935, 59.921001, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 3112.668945, 2867.394042, 59.921001, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3112.666992, 2879.399902, 59.917999, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -1118480 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3112.666992, 2896.403076, 59.917999, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -1118480 );
tmpVariable = CreateDynamicObject( 970, 3111.622070, 2895.927978, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3113.684082, 2895.927978, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3121.733886, 2895.927978, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3119.672119, 2895.927978, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3103.572021, 2895.927978, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3105.634033, 2895.927978, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3111.622070, 2879.868896, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3113.684082, 2879.868896, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3103.572021, 2879.868896, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3105.634033, 2879.868896, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3121.733886, 2879.868896, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
tmpVariable = CreateDynamicObject( 970, 3119.672119, 2879.868896, 60.967998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 6098, "tempo22_law", "newall8-1blue", 0 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "goldPillar", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 14410, 3098.326904, 2877.740966, 57.217998, 0.000000, 0.000000, -90.000000, -1, -1, -1 ), 1, 14624, "mafcasmain", "ab_carpGreenEdge", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3095.433105, 2874.910888, 58.160999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 14410, 3096.274902, 2881.750000, 55.467998, 0.000000, 0.000000, 180.000000, -1, -1, -1 ), 1, 14624, "mafcasmain", "ab_carpGreenEdge", -16 );
tmpVariable = CreateDynamicObject( 14410, 3098.326904, 2898.162109, 57.217998, 0.000000, 0.000000, -90.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "ab_carpGreenEdge", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3095.433105, 2900.900878, 58.160999, 90.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
tmpVariable = CreateDynamicObject( 14410, 3096.074951, 2894.064941, 55.467998, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( tmpVariable, 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( tmpVariable, 1, 14624, "mafcasmain", "ab_carpGreenEdge", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3099.675048, 2896.413085, 47.928001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.424072, 2896.413085, 47.928001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.675048, 2896.415039, 47.930000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3099.675048, 2879.391113, 47.928001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.414062, 2879.391113, 47.930000, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3099.075927, 2879.393066, 47.931999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19890, 3126.132080, 2886.333984, 89.027999, 90.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "cof_wood2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3098.424072, 2896.741943, 53.179000, 0.000000, 55.599998, 90.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.426025, 2891.930908, 44.257999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.426025, 2892.930908, 44.257999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
CreateDynamicObject( 948, 3098.440917, 2892.180908, 56.748001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 3098.424072, 2878.918945, 53.275001, 0.000000, 55.599998, -90.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
CreateDynamicObject( 948, 3098.440917, 2883.577880, 56.748001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.426025, 2883.879882, 44.257999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3098.426025, 2882.879882, 44.257999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
tmpVariable = CreateDynamicObject( 19940, 3098.368896, 2882.499023, 57.138999, -34.299999, 90.000000, 0.000000, -1, -1, -1 );
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, 58.259998, -34.299999, 90.000000, 0.000000, -1, -1, -1 ), 0, 6098, "tempo22_law", "newall8-1blue", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19940, 3098.368896, 2893.346923, 57.195999, -34.299999, 90.000000, 180.000000, -1, -1, -1 ), 0, 6098, "tempo22_law", "newall8-1blue", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19940, 3098.368896, 2895.010009, 58.328998, -34.299999, 90.000000, 180.000000, -1, -1, -1 ), 0, 6098, "tempo22_law", "newall8-1blue", -16 );
CreateDynamicObject( 638, 3099.340087, 2879.381103, 60.729999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
CreateDynamicObject( 638, 3099.340087, 2896.398925, 60.729999, 0.000000, 0.000000, 90.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3123.727050, 2899.356933, 61.085998, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3116.727050, 2899.356933, 61.085998, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3109.727050, 2899.356933, 61.085998, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3102.727050, 2899.356933, 61.085998, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3123.727050, 2876.311035, 61.085998, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3116.727050, 2876.311035, 61.085998, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3109.727050, 2876.311035, 61.085998, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 638, 3102.727050, 2876.311035, 61.085998, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 13691, "bevcunto2_lahills", "adeta", -16 );
CreateDynamicObject( 1702, 3107.250000, 2876.491943, 60.409000, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
CreateDynamicObject( 1702, 3114.250000, 2876.491943, 60.409000, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
CreateDynamicObject( 1702, 3121.250000, 2876.491943, 60.409000, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
CreateDynamicObject( 1702, 3105.278076, 2899.353027, 60.409000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 1702, 3112.278076, 2899.353027, 60.409000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 1702, 3119.278076, 2899.353027, 60.409000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3095.510009, 2887.805908, 57.178001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3095.510009, 2890.326904, 57.178001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3110.603027, 2875.812011, 57.178001, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3113.104003, 2875.812011, 57.178001, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3110.603027, 2899.966064, 57.178001, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19796, 3113.104003, 2899.962890, 57.178001, 0.000000, 0.000000, 90.000000, -1, -1, -1 ), 0, 2946, "sw_doors", "bevdoor03_law", -16 );
CreateDynamicObject( 1726, 3120.103027, 2876.621093, 55.518001, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
CreateDynamicObject( 1726, 3123.292968, 2876.621093, 55.518001, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
CreateDynamicObject( 1726, 3106.415039, 2876.621093, 55.518001, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
CreateDynamicObject( 1727, 3106.420898, 2879.346923, 55.523998, 0.000000, 0.400000, -54.400001, -1, -1, -1 );
CreateDynamicObject( 1727, 3103.358886, 2878.917968, 55.544998, 0.000000, 0.400000, 45.299999, -1, -1, -1 );
CreateDynamicObject( 1727, 3122.888916, 2879.417968, 55.458000, 0.000000, 0.400000, -54.400001, -1, -1, -1 );
CreateDynamicObject( 1727, 3118.091064, 2879.102050, 55.487998, 0.000000, 0.400000, 36.500000, -1, -1, -1 );
CreateDynamicObject( 2315, 3120.025878, 2878.106933, 55.527999, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 1820, 3104.628906, 2877.575927, 55.507999, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 1726, 3118.101074, 2899.156982, 55.518001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 1726, 3121.434082, 2899.156982, 55.518001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 1726, 3104.576904, 2899.156982, 55.518001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 1726, 3102.195068, 2896.812988, 55.518001, 0.000000, 0.000000, 70.500000, -1, -1, -1 );
CreateDynamicObject( 2311, 3104.243896, 2897.230957, 55.527999, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 1433, 3121.701904, 2897.406982, 55.698001, 0.000000, 0.000000, 10.000000, -1, -1, -1 );
CreateDynamicObject( 1433, 3119.587890, 2897.194091, 55.698001, 0.000000, 0.000000, 45.000000, -1, -1, -1 );
CreateDynamicObject( 1727, 3123.112060, 2895.913085, 55.498001, 0.000000, 0.000000, -143.899993, -1, -1, -1 );
CreateDynamicObject( 1727, 3118.779052, 2895.469970, 55.498001, 0.000000, 0.000000, 134.300003, -1, -1, -1 );
CreateDynamicObject( 948, 3116.669921, 2895.537109, 55.507999, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 948, 3108.666015, 2895.537109, 55.507999, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 948, 3108.666015, 2880.134033, 55.507999, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 948, 3116.660888, 2880.134033, 55.507999, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2886.363037, 57.227001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2892.718994, 57.227001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2892.718994, 60.676998, 0.000000, 180.000000, 0.000000, -1, -1, -1 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2889.547119, 60.676998, 0.000000, 180.000000, 0.000000, -1, -1, -1 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2886.358886, 60.676998, 0.000000, 180.000000, 0.000000, -1, -1, -1 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2892.718994, 57.227001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2889.547119, 60.676998, 0.000000, 180.000000, 0.000000, -1, -1, -1 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
SetDynamicObjectMaterial( CreateDynamicObject( 19795, 3125.608886, 2886.363037, 57.227001, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 5785, "melrosetr1_lawn", "711doors1", -268435456 );
CreateDynamicObject( 2001, 3126.614990, 2882.853027, 55.518001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2001, 3126.614990, 2892.996093, 55.518001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3135.653076, 2878.382080, 55.995998, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3133.643066, 2880.384033, 55.998001, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3128.639892, 2881.375000, 55.998001, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3135.653076, 2897.405029, 55.995998, 0.000000, 90.000000, 90.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3133.643066, 2895.395996, 55.998001, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 3128.652099, 2894.395019, 55.998001, 0.000000, 90.000000, 0.000000, -1, -1, -1 ), 0, 14624, "mafcasmain", "marble_wall2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 3133.259033, 2898.172119, 53.591999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 10931, "traingen_sfse", "desgreengrass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 3128.645996, 2897.381103, 53.591999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 10931, "traingen_sfse", "desgreengrass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 3133.259033, 2878.374023, 53.591999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 10931, "traingen_sfse", "desgreengrass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 3128.645996, 2878.378906, 53.591999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 10931, "traingen_sfse", "desgreengrass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 3116.666015, 2879.389892, 56.527999, 0.000000, 0.000000, 0.000000, -1, -1, -1 ), 0, 14777, "int_casinoint3", "GB_midbar01", -16 );
CreateDynamicObject( 869, 3133.541992, 2897.909912, 56.518001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 869, 3128.939941, 2898.900878, 56.518001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 869, 3128.610107, 2896.730957, 56.518001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 869, 3133.541992, 2877.931884, 56.518001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 869, 3129.221923, 2877.041992, 56.518001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 869, 3128.622070, 2879.133056, 56.518001, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2010, 3131.676025, 2881.336914, 55.548000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 2010, 3131.676025, 2894.341064, 55.548000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 1256, 3138.103027, 2906.809082, 56.169998, 0.000000, 0.000000, 180.000000, -1, -1, -1 ), 0, "Visage Casino", 120, "David", 60, 1, -1, -16777216, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 1256, 3138.103027, 2872.770019, 56.169998, 0.000000, 0.000000, 180.000000, -1, -1, -1 ), 0, "Visage Casino", 120, "David", 60, 1, -1, -16777216, 1 );
SetDynamicObjectMaterialText( CreateDynamicObject( 1256, 3138.103027, 2868.766113, 56.169998, 0.000000, 0.000000, 180.000000, -1, -1, -1 ), 0, "Visage Casino", 120, "David", 60, 1, -1, -16777216, 1 );
CreateDynamicObject( 19324, 3141.304931, 2909.555908, 56.152000, 0.000000, 0.000000, 0.000000, -1, -1, -1 );
CreateDynamicObject( 19324, 3141.304931, 2866.250000, 56.152000, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
CreateDynamicObject( 19324, 3144.304931, 2866.251953, 56.152000, 0.000000, 0.000000, 180.000000, -1, -1, -1 );
return 1; return 1;
} }
CMD:visagelol( playerid, params[] ) CMD:visagelol( playerid, params[] )
{ {
RemoveBuildingForPlayer(playerid, 7584, 1947.3828, 1916.1953, 78.1953, 0.25);
RemoveBuildingForPlayer(playerid, 7716, 1947.3828, 1916.1953, 78.1953, 0.25);
return 1; return 1;
} }

View File

@ -22,7 +22,8 @@
#include < a_http > #include < a_http >
/* ** YSI ** */ /* ** YSI ** */
#include < foreach > #include < YSI\y_iterate >
#include < YSI\y_hooks >
#include < YSI\y_va > #include < YSI\y_va >
/* ** Redefinitions ** */ /* ** Redefinitions ** */
@ -90,7 +91,6 @@ native gpci ( playerid, serial[ ], len );
#define IsPlayerInMethlab(%0) (GetPVarInt(%0,"inMethLab")==1&&GetPlayerInterior(%0)==VW_METH) #define IsPlayerInMethlab(%0) (GetPVarInt(%0,"inMethLab")==1&&GetPlayerInterior(%0)==VW_METH)
#define IsPlayerInShamal(%0) (GetPlayerInterior(%0)==VW_SHAMAL) #define IsPlayerInShamal(%0) (GetPlayerInterior(%0)==VW_SHAMAL)
#define IsValidApartment(%0) (0 <= %0 < sizeof(g_apartmentData)) #define IsValidApartment(%0) (0 <= %0 < sizeof(g_apartmentData))
#define GetPlayerCash(%1) p_Cash[%1]
#define GetPlayerXP(%1) p_XP[%1] #define GetPlayerXP(%1) p_XP[%1]
#define hasTickcountPassed(%1,%2) ((GetTickCount()-%1)>(%2)) #define hasTickcountPassed(%1,%2) ((GetTickCount()-%1)>(%2))
#define Ach_Unlock(%0,%1) (%0 >= %1 ?("{6EF83C}"):("{FFFFFF}")) #define Ach_Unlock(%0,%1) (%0 >= %1 ?("{6EF83C}"):("{FFFFFF}"))
@ -3223,62 +3223,6 @@ new
Iterator:business<MAX_BUSINESSES> Iterator:business<MAX_BUSINESSES>
; ;
/* ** Blackjack ** */
#define MAX_BLACKJACK_TABLES ( 32 )
#define MAX_BLACKJACK_CARDS ( 5 )
#define MAX_BLACKJACK_PLAYERS ( 3 )
#define BLACKJACK_DEALER_WAIT ( 500 )
#define BLACKJACK_PLAYER_WAIT ( 10 )
#define BLACKJACK_STATE_NONE ( 0 )
#define BLACKJACK_STATE_TURN ( 1 )
#define BLACKJACK_STATE_BUST ( 2 )
#define BLACKJACK_STATE_STAND ( 3 )
#define BLACKJACK_STATE_WIN ( 4 )
enum E_BLACKJACK_DATA
{
bool: E_GAME_STARTED, E_CARDS_DRAWN, E_GAME_TIMER,
E_PAYOUT,
E_OBJECT, E_ACTOR,
Float: E_X, Float: E_Y, Float: E_Z,
Float: E_ROTATION
};
new
g_blackjackData [ MAX_BLACKJACK_TABLES ] [ E_BLACKJACK_DATA ],
Text: g_blackjackTurnTD [ MAX_BLACKJACK_TABLES ] = { Text: INVALID_TEXT_DRAW, ... },
Text: g_blackjackPlayerCards [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_CARDS ] [ MAX_BLACKJACK_PLAYERS ],
Text: g_blackjackDealerCards [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_CARDS ],
g_blackjackDealerCardIndex [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_CARDS ],
g_blackjackPlayerCardIndex [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_CARDS ] [ MAX_BLACKJACK_PLAYERS ],
g_blackjackPlayerState [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_PLAYERS ],
g_blackjackSlotData [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_PLAYERS ],
p_blackjackTable [ MAX_PLAYERS ] = { -1, ... },
Iterator:blackjacktables<MAX_BLACKJACK_TABLES>
;
/* ** Visage Apartments ** */
#define MAX_VISAGE_APARTMENTS ( 13 )
static const
Float: VISAGE_APARTMENT_ENTRANCE[ 3 ] = { 0.0, 0.0, 0.0 },
Float: VISAGE_APARTMENT_EXIT[ 3 ] = { 0.0, 0.0, 0.0 }
;
enum E_APARTMENT_DATA
{
E_OWNER_ID, E_TITLE[ 30 ], E_PASSCODE[ 4 ],
bool: E_GAMBLING
};
new
g_VisageApartmentData [ MAX_VISAGE_APARTMENTS ] [ E_FLAT_DATA ],
Iterator: visageapartments < MAX_VISAGE_APARTMENTS >
;
/* ** Player Data ** */ /* ** Player Data ** */
new new
bool: p_Spawned [ MAX_PLAYERS char ], bool: p_Spawned [ MAX_PLAYERS char ],
@ -3530,12 +3474,7 @@ new
/* ** Server Data ** */ /* ** Server Data ** */
new new
dbHandle,
g_Checkpoints [ ALL_CHECKPOINTS ], g_Checkpoints [ ALL_CHECKPOINTS ],
szSmallString [ 32 ],
szBigString [ 256 ],
szLargeString [ 1024 ],
szHugeString [ 2048 ],
g_redeemVipWait = 0, g_redeemVipWait = 0,
g_TrolleyVehicles [ 5 ], g_TrolleyVehicles [ 5 ],
engine, lights, doors, bonnet, boot, objective, alarm, panels, tires, engine, lights, doors, bonnet, boot, objective, alarm, panels, tires,
@ -3556,7 +3495,6 @@ new
szReportsLog [ 8 ][ 128 ], szReportsLog [ 8 ][ 128 ],
szQuestionsLog [ 8 ][ 128 ], szQuestionsLog [ 8 ][ 128 ],
g_preloadedObjectCount = 0, g_preloadedObjectCount = 0,
bool: g_ServerLocked = false,
bool: g_CommandLogging = false, bool: g_CommandLogging = false,
bool: g_DialogLogging = false, bool: g_DialogLogging = false,
szRules [ 3300 ], szRules [ 3300 ],
@ -3618,6 +3556,7 @@ stock Float: distanceFromSafe( iPlayer, iRobbery, &Float: fDistance = Float: 0x7
main() main()
{ {
print( "\n" #SERVER_NAME "\n" ); print( "\n" #SERVER_NAME "\n" );
CallRemoteFunction( "InitializeTextDraws", "" );
} }
public OnGameModeInit() public OnGameModeInit()
@ -3638,8 +3577,6 @@ public OnGameModeInit()
//SetServerRule( "mapname", "San Fierro" ); //SetServerRule( "mapname", "San Fierro" );
/* ** Intalize Data ** */ /* ** Intalize Data ** */
InitializeFpsTextdraw( );
initializeTextDraws( );
initializeCheckpoints( ); initializeCheckpoints( );
initializeVehicles( ); initializeVehicles( );
initializeServerObjects( ); initializeServerObjects( );
@ -3669,14 +3606,6 @@ public OnGameModeInit()
CreateDynamicMapIcon( g_informationPickupsData[ i ] [ E_X ], g_informationPickupsData[ i ] [ E_Y ], g_informationPickupsData[ i ] [ E_Z ], 37, 0, -1, -1, -1, 50.0 ); CreateDynamicMapIcon( g_informationPickupsData[ i ] [ E_X ], g_informationPickupsData[ i ] [ E_Y ], g_informationPickupsData[ i ] [ E_Z ], 37, 0, -1, -1, -1, 50.0 );
} }
/* ** Database Configuration ** */
dbHandle = mysql_connect( MYSQL_HOST, MYSQL_USER, MYSQL_DATABASE, MYSQL_PASS );
if ( mysql_errno( dbHandle ) )
print( "[MYSQL]: Couldn't connect to MySQL database." ), g_ServerLocked = true;
else
print( "[MYSQL]: Connection to database is successful." );
/* ** Server Variables ** */ /* ** Server Variables ** */
AddServerVariable( "taxrate", "5.0", GLOBAL_VARTYPE_FLOAT ); AddServerVariable( "taxrate", "5.0", GLOBAL_VARTYPE_FLOAT );
AddServerVariable( "doublexp", "0", GLOBAL_VARTYPE_INT ); AddServerVariable( "doublexp", "0", GLOBAL_VARTYPE_INT );
@ -3968,20 +3897,6 @@ public OnGameModeInit()
CreateRouletteTable( 1963.71094, 1010.11719, 992.507810, 0.000000 ); CreateRouletteTable( 1963.71094, 1010.11719, 992.507810, 0.000000 );
CreateRouletteTable( 1959.39844, 1010.11719, 992.507810, 0.000000 ); CreateRouletteTable( 1959.39844, 1010.11719, 992.507810, 0.000000 );
// Create blackjack tables
CreateBlackjackTable( 25000, 2230.37500, 1602.75000, 1006.15631, 0.00000, 82 );
CreateBlackjackTable( 25000, 2232.18750, 1604.43750, 1006.15631, 90.0000, 82 );
CreateBlackjackTable( 25000, 2228.49219, 1604.45313, 1006.15631, -90.000, 82 );
CreateBlackjackTable( 25000, 2230.37500, 1606.27344, 1006.15631, 180.000, 82 );
CreateBlackjackTable( 100000, 2241.31250, 1602.75000, 1006.15631, 0.00000, 82 );
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 );
CreateBlackjackTable( 1000000, 1960.74829, 1020.31189, 992.46881, -90.0000, 23 );
CreateBlackjackTable( 10000000, 1962.34375, 1020.17969, 992.46881, 90.00000, 23 );
// Houses // Houses
/*CreateEntrance( "[ROOFTOP]", -2440.5149, 820.9702, 35.1838, -2438.1204, 819.7362, 65.5078, 0, 0, false, true ); // Jendral /*CreateEntrance( "[ROOFTOP]", -2440.5149, 820.9702, 35.1838, -2438.1204, 819.7362, 65.5078, 0, 0, false, true ); // Jendral
CreateEntrance( "[ROOFTOP]", -2475.4238, 161.5239, 35.1406, -2476.4043, 155.6541, 64.9332, 0, 0, false, true ); // Queens' Rooftop CreateEntrance( "[ROOFTOP]", -2475.4238, 161.5239, 35.1406, -2476.4043, 155.6541, 64.9332, 0, 0, false, true ); // Queens' Rooftop
@ -5232,7 +5147,6 @@ function lumberjack_RemoveWood( obj ) return StopDynamicObject( obj ), DestroyDy
public OnGameModeExit( ) public OnGameModeExit( )
{ {
mysql_close( );
KillTimer( rl_ServerUpdate ); KillTimer( rl_ServerUpdate );
KillTimer( rl_ZoneUpdate ); KillTimer( rl_ZoneUpdate );
for( new t; t != MAX_TEXT_DRAWS; t++ ) TextDrawDestroy( Text: t ); for( new t; t != MAX_TEXT_DRAWS; t++ ) TextDrawDestroy( Text: t );
@ -6386,9 +6300,6 @@ public OnPlayerConnect( playerid )
if ( textContainsIP( ReturnPlayerName( playerid ) ) ) if ( textContainsIP( ReturnPlayerName( playerid ) ) )
return Kick( playerid ), 1; return Kick( playerid ), 1;
if ( g_ServerLocked )
return SendError( playerid, "The server is locked due to false server configuration. Please wait for the operator." ), KickPlayerTimed( playerid ), 1;
// Ultra fast queries... // Ultra fast queries...
format( Query, sizeof( Query ), "SELECT * FROM `BANS` WHERE (`NAME`='%s' OR `IP`='%s') AND `SERVER`=0 LIMIT 0,1", mysql_escape( ReturnPlayerName( playerid ) ), mysql_escape( ReturnPlayerIP( playerid ) ) ); format( Query, sizeof( Query ), "SELECT * FROM `BANS` WHERE (`NAME`='%s' OR `IP`='%s') AND `SERVER`=0 LIMIT 0,1", mysql_escape( ReturnPlayerName( playerid ) ), mysql_escape( ReturnPlayerIP( playerid ) ) );
mysql_function_query( dbHandle, Query, true, "OnPlayerBanCheck", "i", playerid ); mysql_function_query( dbHandle, Query, true, "OnPlayerBanCheck", "i", playerid );
@ -6629,7 +6540,6 @@ public OnPlayerDisconnect( playerid, reason )
StopPlayerTruckingCourier( playerid ); StopPlayerTruckingCourier( playerid );
RemovePlayerFromRace( playerid ); RemovePlayerFromRace( playerid );
RemovePlayerFromRoulette( playerid ); RemovePlayerFromRoulette( playerid );
RemovePlayerFromBlackjack( playerid );
p_Detained { playerid } = false; p_Detained { playerid } = false;
p_Tied { playerid } = false; p_Tied { playerid } = false;
p_Kidnapped { playerid } = false; p_Kidnapped { playerid } = false;
@ -7580,7 +7490,7 @@ stock getPlayerTax( playerid )
#if defined AC_INCLUDED #if defined AC_INCLUDED
public OnPlayerDeathEx( playerid, killerid, reason, Float: damage, bodypart ) public OnPlayerDeathEx( playerid, killerid, reason, Float: damage, bodypart )
#else #else
public OnPlayerDeath(playerid, killerid, reason) public OnPlayerDeath( playerid, killerid, reason )
#endif #endif
{ {
if ( !p_PlayerLogged{ playerid } ) if ( !p_PlayerLogged{ playerid } )
@ -7623,7 +7533,6 @@ public OnPlayerDeath(playerid, killerid, reason)
RemoveEquippedOre( playerid ); RemoveEquippedOre( playerid );
KillTimer( p_CuffAbuseTimer[ playerid ] ); KillTimer( p_CuffAbuseTimer[ playerid ] );
RemovePlayerFromRoulette( playerid ); RemovePlayerFromRoulette( playerid );
RemovePlayerFromBlackjack( playerid );
PlayerTextDrawHide( playerid, p_LocationTD[ playerid ] ); PlayerTextDrawHide( playerid, p_LocationTD[ playerid ] );
p_Tazed{ playerid } = false; p_Tazed{ playerid } = false;
p_WeaponDealing{ playerid } = false; p_WeaponDealing{ playerid } = false;
@ -8845,47 +8754,6 @@ public OnPlayerCommandReceived(playerid, cmdtext[])
return 1; return 1;
} }
CMD:fireworks( playerid, params[ ] )
{
if ( ! IsPlayerAdmin( playerid ) ) return 0;
new
flares, style, Float: speed, Float: gravity, Float: angle, Float: time_delay, Float: max_height;
// /fireworks 50 0 10 10.8 50 0.2 50 - spiral
if ( sscanf( params, "ddffffF(50.0)", flares, style, speed, gravity, angle, time_delay, max_height ) ) return SendUsage( playerid, "fireworks [FLARES] [STYLE] [SPEED] [GRAVITY] [ANGLE] [TIME_DELAY] [MAX_HEIGHT]" );
else
{
new
Float: X, Float: Y, Float: Z
;
GetPlayerPos( playerid, X, Y, Z );
CreateFireworks( flares, style, X, Y, Z, angle, speed, gravity, time_delay, max_height );
return SendServerMessage( playerid, "Fireworks placed! Use /launchfireworks to launch." );
}
}
CMD:launchfireworks( playerid, params[ ] )
{
if ( ! IsPlayerAdmin( playerid ) ) return 0;
foreach (new f : fireworks) {
LaunchFireworks( f );
}
SendServerMessage( playerid, "Launching" );
return 1;
}
CMD:destroyfireworks( playerid, params[ ] )
{
if ( ! IsPlayerAdmin( playerid ) ) return 0;
for (new f = 0; f < MAX_FIREWORKS; f++ ) {
ResetFirework( f );
}
SendServerMessage( playerid, "Destroyed" );
return 1;
}
CMD:b( playerid, params[ ] ) return cmd_business( playerid, params ); CMD:b( playerid, params[ ] ) return cmd_business( playerid, params );
CMD:business( playerid, params[ ] ) CMD:business( playerid, params[ ] )
{ {
@ -20678,42 +20546,6 @@ public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
if ( IsPlayerInCasino( playerid ) ) if ( IsPlayerInCasino( playerid ) )
{ {
new
blackjack_table = p_blackjackTable[ playerid ];
// Blackjack
if ( blackjack_table != -1 )
{
new
player_index = GetBlackjackPlayerIndex( blackjack_table, playerid );
if ( player_index == -1 )
return SendError( playerid, "You don't seem to be playing any blackjack table." );
if ( PRESSED( KEY_SPRINT ) ) {
if ( ! g_blackjackData[ blackjack_table ] [ E_CARDS_DRAWN ] && g_blackjackData[ blackjack_table ] [ E_GAME_TIMER ] == -1 )
return ( g_blackjackData[ blackjack_table ] [ E_GAME_TIMER ] = SetTimerEx( "BeginBlackJackTurn", BLACKJACK_DEALER_WAIT, false, "d", blackjack_table ) ), 1;
if ( g_blackjackPlayerState[ blackjack_table ] [ player_index ] == BLACKJACK_STATE_TURN ) {
g_blackjackPlayerState[ blackjack_table ] [ player_index ] = BLACKJACK_STATE_STAND;
SendClientMessageToBlackjack( blackjack_table, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has decided to stand.", ReturnPlayerName( playerid ), playerid );
return 1;
}
return 1;
}
if ( PRESSED( KEY_CTRL_BACK ) )
{
if ( g_blackjackPlayerState[ blackjack_table ] [ player_index ] != BLACKJACK_STATE_TURN )
return SendError( playerid, "It's not your turn to hit. Please wait!" );
DrawPlayerBlackjackCard( blackjack_table, player_index );
CheckForBlackjack( blackjack_table );
return 1;
}
}
// Roulette // Roulette
if ( p_RouletteMarkerTimer[ playerid ] != -1 ) if ( p_RouletteMarkerTimer[ playerid ] != -1 )
{ {
@ -20891,83 +20723,6 @@ public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
if ( p_RouletteTable[ playerid ] != -1 ) if ( p_RouletteTable[ playerid ] != -1 )
return RemovePlayerFromRoulette( playerid ); return RemovePlayerFromRoulette( playerid );
if ( p_blackjackTable[ playerid ] != -1 )
return RemovePlayerFromBlackjack( playerid, .reset_cam = 1 );
foreach(new id : blackjacktables)
{
if ( IsPlayerInRangeOfPoint( playerid, 3.0, g_blackjackData[ id ] [ E_X ], g_blackjackData[ id ] [ E_Y ], g_blackjackData[ id ] [ E_Z ] ) ) {
new
player_index;
for ( ; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ )
if ( g_blackjackSlotData[ id ] [ player_index ] == -1 )
break;
if ( player_index >= MAX_BLACKJACK_PLAYERS || g_blackjackSlotData[ id ] [ player_index ] != -1 )
return SendError( playerid, "There are no more vacant slots for this table." );
if ( GetPlayerCash( playerid ) < g_blackjackData[ id ] [ E_PAYOUT ] )
return SendError( playerid, "You don't have any money to wager." );
new
Float: lookatX, Float: lookatY, Float: lookatZ,
Float: tmpX, Float: tmpY, Float: tmpZ
;
GetPlayerCameraPos( playerid, X, Y, Z );
GetPlayerCameraFrontVector( playerid, lookatX, lookatY, lookatZ );
tmpX = g_blackjackData[ id ] [ E_X ] - 1.3 * floatcos( g_blackjackData[ id ] [ E_ROTATION ] + 90.0, degrees );
tmpY = g_blackjackData[ id ] [ E_Y ] - 1.3 * floatsin( g_blackjackData[ id ] [ E_ROTATION ] + 90.0, degrees );
tmpZ = g_blackjackData[ id ] [ E_Z ] + 1.7;
InterpolateCameraPos( playerid, X, Y, Z, tmpX, tmpY, tmpZ, 1000, CAMERA_MOVE );
X += floatmul( lookatX, 20.0 );
Y += floatmul( lookatY, 20.0 );
Z += floatmul( lookatZ, 20.0 );
InterpolateCameraLookAt( playerid, X, Y, Z, g_blackjackData[ id ] [ E_X ], g_blackjackData[ id ] [ E_Y ], g_blackjackData[ id ] [ E_Z ] - 1.0, 1000, CAMERA_MOVE );
p_blackjackTable[ playerid ] = id;
g_blackjackSlotData[ id ] [ player_index ] = playerid;
// reset player cards
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ )
g_blackjackPlayerCardIndex[ id ] [ c ] [ player_index ] = -1;
// show cards to players
for ( new player = 0; player < MAX_BLACKJACK_PLAYERS; player ++ )
{
new
gamerid = g_blackjackSlotData[ id ] [ player ];
// deal only first two cards
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ )
{
TextDrawShowForPlayer( gamerid, g_blackjackDealerCards[ id ] [ c ] );
// show two player cards only
if ( c >= 2 )
continue;
for ( new p = 0; p < GetBlackjackPlayers( id ); p ++ ) {
TextDrawShowForPlayer( gamerid, g_blackjackPlayerCards[ id ] [ c ] [ p ] );
}
}
}
szBigString = "~y~~k~~PED_SPRINT~~w~ - Begin game/Stand~n~~y~~k~~GROUP_CONTROL_BWD~~w~ - Hit~n~~y~~k~~VEHICLE_ENTER_EXIT~~w~ - Exit";
ShowPlayerHelpDialog( playerid, 0, szBigString );
SendServerMessage( playerid, "You have entered the %s hand blackjack table.", ConvertPrice( g_blackjackData[ id ] [ E_PAYOUT ] ) );
ApplyAnimation( playerid, "DEALER", "DEALER_IDLE", 4.1, 1, 1, 1, 1, 0, 1 );
return 1;
}
}
foreach(new id : roulettetables) foreach(new id : roulettetables)
{ {
if ( IsPlayerInRangeOfPoint( playerid, 3.1, g_rouletteTableData[ id ] [ E_X ], g_rouletteTableData[ id ] [ E_Y ], g_rouletteTableData[ id ] [ E_Z ] ) ) { if ( IsPlayerInRangeOfPoint( playerid, 3.1, g_rouletteTableData[ id ] [ E_X ], g_rouletteTableData[ id ] [ E_Y ], g_rouletteTableData[ id ] [ E_Z ] ) ) {
@ -27398,19 +27153,9 @@ stock SavePlayerData( playerid, bool: logout = false )
return 1; return 1;
} }
stock initializeTextDraws( ) forward InitializeTextDraws( ); public InitializeTextDraws( )
{ {
// reset blackjack data print ("Initialized First");
for ( new i = 0; i < MAX_BLACKJACK_TABLES; i ++ ) {
for ( new x = 0; x < MAX_BLACKJACK_CARDS; x ++ ) {
g_blackjackDealerCards[ i ] [ x ] = Text: INVALID_TEXT_DRAW;
for ( new p = 0; p < MAX_BLACKJACK_PLAYERS; p ++ ) {
g_blackjackPlayerCards[ i ] [ x ] [ p ] = Text: INVALID_TEXT_DRAW;
g_blackjackSlotData[ i ] [ p ] = -1;
}
}
}
g_NotManyPlayersTD = TextDrawCreate(322.000000, 12.000000, "Coin generation increased by 5x as there aren't many players online!"); g_NotManyPlayersTD = TextDrawCreate(322.000000, 12.000000, "Coin generation increased by 5x as there aren't many players online!");
TextDrawAlignment(g_NotManyPlayersTD, 2); TextDrawAlignment(g_NotManyPlayersTD, 2);
TextDrawBackgroundColor(g_NotManyPlayersTD, 0); TextDrawBackgroundColor(g_NotManyPlayersTD, 0);
@ -27792,10 +27537,6 @@ stock initializeTextDraws( )
TextDrawTextSize(g_SlotMachineThreeTD[ playerid ], 66.000000, 77.000000); TextDrawTextSize(g_SlotMachineThreeTD[ playerid ], 66.000000, 77.000000);
} }
if ( playerid < MAX_BLACKJACK_TABLES ) {
initializeBlackjackTextdraws( playerid );
}
p_ProgressBoxOutsideTD[ playerid ] = TextDrawCreate(252.000000, 222.000000, "_"); p_ProgressBoxOutsideTD[ playerid ] = TextDrawCreate(252.000000, 222.000000, "_");
TextDrawBackgroundColor(p_ProgressBoxOutsideTD[ playerid ], 255); TextDrawBackgroundColor(p_ProgressBoxOutsideTD[ playerid ], 255);
TextDrawFont(p_ProgressBoxOutsideTD[ playerid ], 1); TextDrawFont(p_ProgressBoxOutsideTD[ playerid ], 1);
@ -27922,6 +27663,7 @@ stock initializeTextDraws( )
TextDrawTextSize(p_HelpBoxTD[ playerid ], 170.000000, 0.000000); TextDrawTextSize(p_HelpBoxTD[ playerid ], 170.000000, 0.000000);
TextDrawSetSelectable(p_HelpBoxTD[ playerid ], 0); TextDrawSetSelectable(p_HelpBoxTD[ playerid ], 0);
} }
return Y_HOOKS_CONTINUE_RETURN_1;
} }
stock initializePlayerTextDraws( playerid ) stock initializePlayerTextDraws( playerid )
@ -28020,6 +27762,7 @@ stock initializePlayerTextDraws( playerid )
PlayerTextDrawSetOutline(playerid, p_RobberyAmountTD[ playerid ], 1); PlayerTextDrawSetOutline(playerid, p_RobberyAmountTD[ playerid ], 1);
PlayerTextDrawSetProportional(playerid, p_RobberyAmountTD[ playerid ], 1); PlayerTextDrawSetProportional(playerid, p_RobberyAmountTD[ playerid ], 1);
PlayerTextDrawSetSelectable(playerid, p_RobberyAmountTD[ playerid ], 0); PlayerTextDrawSetSelectable(playerid, p_RobberyAmountTD[ playerid ], 0);
return 1;
} }
stock SendClientMessageToGang( gangid, colour, format[ ], va_args<> ) // Conversion to foreach 14 stuffed the define, not sure how... stock SendClientMessageToGang( gangid, colour, format[ ], va_args<> ) // Conversion to foreach 14 stuffed the define, not sure how...
@ -28468,6 +28211,8 @@ stock ClearPlayerWantedLevel( playerid )
SetPlayerColorToTeam( playerid ); SetPlayerColorToTeam( playerid );
} }
stock GetPlayerCash( playerid ) return p_Cash[ playerid ];
stock GivePlayerCash( playerid, money, bool: force_save = false ) stock GivePlayerCash( playerid, money, bool: force_save = false )
{ {
p_Cash[ playerid ] += money; p_Cash[ playerid ] += money;
@ -31370,23 +31115,6 @@ stock IsVehicleOccupied( vehicleid, bool: include_vehicle_interior = false ) {
return false; return false;
} }
stock ConvertPrice( iValue, iCashSign = 1 )
{
static
szNum[ 32 ];
format( szNum, sizeof( szNum ), "%d", iValue < 0 ? -iValue : iValue );
for( new i = strlen( szNum ) - 3; i > 0; i -= 3 ) {
strins( szNum, ",", i, sizeof( szNum ) );
}
if ( iCashSign ) strins( szNum, "$", 0 );
if ( iValue < 0 ) strins( szNum, "-", 0, sizeof( szNum ) );
return szNum;
}
stock RedirectAmmunation( playerid, listitem, custom_title[ ] = "{FFFFFF}Ammu-Nation", custom_dialogid = DIALOG_AMMU_BUY, Float: custom_multplier = 1.0, bool: unlimited_ammo = false ) stock RedirectAmmunation( playerid, listitem, custom_title[ ] = "{FFFFFF}Ammu-Nation", custom_dialogid = DIALOG_AMMU_BUY, Float: custom_multplier = 1.0, bool: unlimited_ammo = false )
{ {
new new
@ -34923,7 +34651,7 @@ thread OnSlotMachinesLoad( )
// 3d Text // 3d Text
fOffsetX = 1.0 * floatsin( -rZ, degrees ); fOffsetX = 1.0 * floatsin( -rZ, degrees );
fOffsetY = 1.0 * floatcos( -rZ, degrees ); fOffsetY = 1.0 * floatcos( -rZ, degrees );
CreateDynamic3DTextLabel( sprintf( "Press ENTER to use\n"COL_WHITE"%s Minimum", ConvertPrice( g_slotmachineData[ id ] [ E_ENTRY_FEE ] ) ), COLOR_GREY, X + fOffsetX, Y + fOffsetY, Z - 0.1, 5.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, .testlos = 1 ); CreateDynamic3DTextLabel( sprintf( "Press ENTER To Play\n"COL_WHITE"%s Minimum", ConvertPrice( g_slotmachineData[ id ] [ E_ENTRY_FEE ] ) ), COLOR_GREY, X + fOffsetX, Y + fOffsetY, Z - 0.1, 5.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, .testlos = 1 );
// Misc variables // Misc variables
g_slotmachineData[ id ] [ E_TIMER ] = -1; g_slotmachineData[ id ] [ E_TIMER ] = -1;
@ -36886,7 +36614,7 @@ stock CreateRouletteTable( Float: X, Float: Y, Float: Z, Float: Angle )
X += 1.365 * floatcos( Angle + 98.0, degrees ); X += 1.365 * floatcos( Angle + 98.0, degrees );
Y += 1.365 * floatsin( Angle + 98.0, degrees ); Y += 1.365 * floatsin( Angle + 98.0, degrees );
CreateDynamic3DTextLabel( "Press ENTER to use\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\n"COL_WHITE"$1,000 Minimum", COLOR_GREY, X, Y, Z + 0.02, 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, .testlos = 0 );
g_rouletteTableData[ id ] [ E_SPINNER_OBJECT ] = CreateDynamicObject( 1979, X, Y, Z - 0.02, 0.00000, 0.00000, 0.0 ); g_rouletteTableData[ id ] [ E_SPINNER_OBJECT ] = CreateDynamicObject( 1979, X, Y, Z - 0.02, 0.00000, 0.00000, 0.0 );
Iter_Add( roulettetables, id ); Iter_Add( roulettetables, id );
@ -38410,488 +38138,5 @@ stock GetBusinessAirModelIndex( modelid ) {
return index; return index;
} }
stock CreateBlackjackTable( payout, Float: X, Float: Y, Float: Z, Float: Angle, world = 0 ) stock GetPlayerAccountID( playerid )
{ return p_AccountID[ playerid ];
new
id = Iter_Free(blackjacktables);
if ( id != ITER_NONE )
{
g_blackjackData[ id ] [ E_X ] = X;
g_blackjackData[ id ] [ E_Y ] = Y;
g_blackjackData[ id ] [ E_Z ] = Z;
g_blackjackData[ id ] [ E_ROTATION ] = Angle;
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 );
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 use\n"COL_WHITE"%s Minimum", ConvertPrice( payout ) ), COLOR_GREY, X, Y, Z + 0.25, 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, .testlos = 0 );
SetActorInvulnerable( g_blackjackData[ id ] [ E_ACTOR ], true );
SetActorVirtualWorld( g_blackjackData[ id ] [ E_ACTOR ], world );
ResetBlackjackTable( id );
Iter_Add( blackjacktables, id );
}
return 1;
}
function DrawPlayerBlackjackCard( tableid, player_index )
{
new
randomCard = random( sizeof( g_blackjackDealerCards ) );
for ( new cardid = 0; cardid < MAX_BLACKJACK_CARDS; cardid ++ ) if ( g_blackjackPlayerCardIndex[ tableid ] [ cardid ] [ player_index ] == -1 ) {
TextDrawSetString( g_blackjackPlayerCards[ tableid ] [ cardid ] [ player_index ], g_cardTextdrawData[ randomCard ] );
foreach (new gamerid : Player) if ( p_blackjackTable[ gamerid ] == tableid ) {
TextDrawShowForPlayer( gamerid, g_blackjackPlayerCards[ tableid ] [ cardid ] [ player_index ] );
PlayerPlaySound( gamerid, 1145, 0.0, 0.0, 0.0 );
}
g_blackjackPlayerCardIndex[ tableid ] [ cardid ] [ player_index ] = randomCard;
break;
}
return randomCard;
}
function BeginBlackJackTurn( tableid )
{
new
cardid = g_blackjackData[ tableid ] [ E_CARDS_DRAWN ] ++;
if ( cardid >= MAX_BLACKJACK_CARDS ) {
ResetBlackjackTable( tableid );
return;
}
new
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 );
TextDrawSetString( g_blackjackDealerCards[ tableid ] [ cardid ], g_cardTextdrawData[ randomCard ] );
g_blackjackDealerCardIndex[ tableid ] [ cardid ] = randomCard;
// noise
foreach (new gamerid : Player) if ( p_blackjackTable[ gamerid ] != -1 ) {
PlayerPlaySound( gamerid, 1145, 0.0, 0.0, 0.0 );
}
// deal player first card
if ( cardid == 0 )
{
new
bet_amount = 0;
for ( new player_index = 0; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ ) if ( g_blackjackSlotData[ tableid ] [ player_index ] != -1 )
{
new
gamerid = g_blackjackSlotData[ tableid ] [ player_index ];
if ( GetPlayerCash( gamerid ) < g_blackjackData[ tableid ] [ E_PAYOUT ] ) {
SendError( gamerid, "You don't have any money to wager." );
RemovePlayerFromBlackjack( gamerid, .reset_cam = 1 );
continue;
}
bet_amount += g_blackjackData[ tableid ] [ E_PAYOUT ];
GivePlayerCash( gamerid, -g_blackjackData[ tableid ] [ E_PAYOUT ] );
DrawPlayerBlackjackCard( tableid, player_index );
if ( cardid < 1 ) { // distribute first two cards to players
SetTimerEx( "DrawPlayerBlackjackCard", BLACKJACK_DEALER_WAIT, false, "dd", tableid, player_index );
}
}
UpdateServerVariable( "blackjack_bets", 0, GetGVarFloat( "blackjack_bets" ) + ( float( bet_amount ) / 1000000.0 ), "", GLOBAL_VARTYPE_FLOAT );
// begin turns
new
first_player = GetNextAvailableBlackjackPlayer( tableid ),
first_player_index = GetBlackjackPlayerIndex( tableid, first_player )
;
if ( first_player_index != -1 )
g_blackjackPlayerState[ tableid ] [ first_player_index ] = BLACKJACK_STATE_TURN;
g_blackjackData[ tableid ] [ E_GAME_TIMER ] = SetTimerEx( "BlackjackPlayerTurn", BLACKJACK_DEALER_WAIT + 500, false, "ddd", tableid, first_player, BLACKJACK_PLAYER_WAIT );
}
// check for blackjack on players & bot
new
dealer_score = CheckForBlackjack( tableid );
// pull more cards
if ( cardid >= 1 && dealer_score < 17 )
g_blackjackData[ tableid ] [ E_GAME_TIMER ] = SetTimerEx( "BeginBlackJackTurn", BLACKJACK_DEALER_WAIT, false, "d", tableid );
if ( dealer_score >= 17 ) {
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" Table will reset in 5 seconds as all hands have been dealt." );
SetTimerEx( "ResetBlackjackTable", 5000, false, "d", tableid );
}
}
stock GetNextAvailableBlackjackPlayer( tableid, exclude = INVALID_PLAYER_ID )
{
new
playerid = INVALID_PLAYER_ID;
for ( new player_index = 0; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ ) if ( g_blackjackSlotData[ tableid ] [ player_index ] != -1 && g_blackjackPlayerState[ tableid ] [ player_index ] == BLACKJACK_STATE_NONE && exclude != g_blackjackSlotData[ tableid ] [ player_index ] && g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] != -1 ) {
playerid = g_blackjackSlotData[ tableid ] [ player_index ];
break;
}
return playerid;
}
function BlackjackPlayerTurn( tableid, playerid, seconds_left )
{
new
player_index = GetBlackjackPlayerIndex( tableid, playerid );
if ( IsPlayerConnected( playerid ) && player_index != -1 && seconds_left >= 0 && g_blackjackPlayerState[ tableid ] [ player_index ] == BLACKJACK_STATE_TURN )
{
foreach (new gamerid : Player) if ( p_blackjackTable[ gamerid ] == tableid ) {
TextDrawSetString( g_blackjackTurnTD[ tableid ], sprintf( "%s has %d seconds left", ReturnPlayerName( playerid ), seconds_left ) );
TextDrawShowForPlayer( gamerid, g_blackjackTurnTD[ tableid ] );
}
g_blackjackData[ tableid ] [ E_GAME_TIMER ] = SetTimerEx( "BlackjackPlayerTurn", 960, false, "ddd", tableid, playerid, seconds_left - 1 );
}
else
{
new
next_player = GetNextAvailableBlackjackPlayer( tableid, playerid );
if ( next_player == INVALID_PLAYER_ID )
{
TextDrawHideForAll( g_blackjackTurnTD[ tableid ] );
g_blackjackData[ tableid ] [ E_GAME_TIMER ] = SetTimerEx( "BeginBlackJackTurn", BLACKJACK_DEALER_WAIT, false, "d", tableid );
}
else
{
new
next_player_index = GetBlackjackPlayerIndex( tableid, next_player );
// otherwise winning hands will get reissued prizes
if ( player_index != -1 && g_blackjackPlayerState[ tableid ] [ player_index ] != BLACKJACK_STATE_WIN && g_blackjackPlayerState[ tableid ] [ player_index ] != BLACKJACK_STATE_BUST )
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_STAND;
g_blackjackPlayerState[ tableid ] [ next_player_index ] = BLACKJACK_STATE_TURN;
g_blackjackData[ tableid ] [ E_GAME_TIMER ] = SetTimerEx( "BlackjackPlayerTurn", 960, false, "ddd", tableid, next_player, BLACKJACK_PLAYER_WAIT );
}
}
}
function ResetBlackjackTable( tableid )
{
if ( tableid == -1 )
return;
// variables
KillTimer( g_blackjackData[ tableid ] [ E_GAME_TIMER ] ), g_blackjackData[ tableid ] [ E_GAME_TIMER ] = -1;
g_blackjackData[ tableid ] [ E_CARDS_DRAWN ] = 0;
// card data
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ ) {
g_blackjackDealerCardIndex[ tableid ] [ c ] = -1;
TextDrawSetString( g_blackjackDealerCards[ tableid ] [ c ], "ld_card:cdback" );
for ( new p = 0; p < MAX_BLACKJACK_PLAYERS; p ++ ) {
g_blackjackPlayerState[ tableid ] [ p ] = BLACKJACK_STATE_NONE;
g_blackjackPlayerCardIndex[ tableid ] [ c ] [ p ] = -1;
TextDrawSetString( g_blackjackPlayerCards[ tableid ] [ c ] [ p ], "ld_card:cdback" );
if ( c > 1 ) TextDrawHideForAll( g_blackjackPlayerCards[ tableid ] [ c ] [ p ] );
}
}
// reshow textdraws to players
for ( new player_index = 0; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ ) if ( g_blackjackSlotData[ tableid ] [ player_index ] != -1 )
{
new
gamerid = g_blackjackSlotData[ tableid ] [ player_index ];
// deal only first two cards
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ )
{
TextDrawShowForPlayer( gamerid, g_blackjackDealerCards[ tableid ] [ c ] );
// show two player cards only
if ( c >= 2 )
continue;
for ( new p = 0; p < GetBlackjackPlayers( tableid ); p ++ ) {
TextDrawShowForPlayer( gamerid, g_blackjackPlayerCards[ tableid ] [ c ] [ p ] );
}
}
}
}
stock CheckForBlackjack( tableid )
{
new
dealer_score = 0;
//if ( g_blackjackData[ tableid ] [ E_CARDS_DRAWN ] <= 1 )
// return dealer_score;
// calculate dealer score
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ ) if ( g_blackjackDealerCardIndex[ tableid ] [ c ] != -1 )
{
new
card_value = GetBlackjackCardValue( g_blackjackDealerCardIndex[ tableid ] [ c ] );
// printf("%d Card = %d", c, card_value);
if ( card_value == 1 ) {
if ( dealer_score >= 11 ) dealer_score += 1;
else dealer_score += 11;
}
else dealer_score += card_value;
}
//printf("The Dealer score is %d", dealer_score );
// calculate player score
for ( new player_index = 0; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ ) if ( g_blackjackSlotData[ tableid ] [ player_index ] != -1 && g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] != -1 )
{
new
playerid = g_blackjackSlotData[ tableid ] [ player_index ], player_score = 0;
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ ) if ( g_blackjackPlayerCardIndex[ tableid ] [ c ] [ player_index ] != -1 )
{
new
card_value = GetBlackjackCardValue( g_blackjackPlayerCardIndex[ tableid ] [ c ] [ player_index ] );
if ( card_value == 1 ) {
if ( player_score >= 11 ) player_score += 1;
else player_score += 11;
}
else player_score += card_value;
}
if ( g_blackjackPlayerState[ tableid ] [ player_index ] != BLACKJACK_STATE_BUST && g_blackjackPlayerState[ tableid ] [ player_index ] != BLACKJACK_STATE_WIN )
{
new
payout = floatround( float( g_blackjackData[ tableid ] [ E_PAYOUT ] ) * 2.0 );
// check for win
if ( dealer_score == player_score && dealer_score >= 17 ) {
payout = g_blackjackData[ tableid ] [ E_PAYOUT ];
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_WIN;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has been returned %s due to a push.", ReturnPlayerName( playerid ), playerid, ConvertPrice( payout ) );
GameTextForPlayer( playerid, sprintf( "~n~~n~~g~%s won!", ConvertPrice( payout ) ), 4000, 3 );
GivePlayerCash( playerid, payout );
}
else if ( player_score == 21 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_WIN;
if ( IsPlayerHandBlackjack( tableid, player_index, player_score ) ) {
payout = floatround( float( g_blackjackData[ tableid ] [ E_PAYOUT ] ) * 2.5 );
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" Blackjack! %s(%d) has won %s!", ReturnPlayerName( playerid ), playerid, ConvertPrice( payout ) );
} else {
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has won %s due to a card count of 21!", ReturnPlayerName( playerid ), playerid, ConvertPrice( payout ) );
}
GameTextForPlayer( playerid, sprintf( "~n~~n~~g~%s won!", ConvertPrice( payout ) ), 4000, 3 );
GivePlayerCash( playerid, payout );
}
else if ( dealer_score == 21 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_BUST;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has lost %s due to a dealer %s.", ReturnPlayerName( playerid ), playerid, ConvertPrice( g_blackjackData[ tableid ] [ E_PAYOUT ] ), IsDealerHandBlackjack( tableid, dealer_score ) ? ( "blackjack" ) : ( "21" ) );
GameTextForPlayer( playerid, "~n~~n~~r~No win!", 4000, 3 );
}
else if ( player_score > 21 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_BUST;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has lost %s due to a bust.", ReturnPlayerName( playerid ), playerid, ConvertPrice( g_blackjackData[ tableid ] [ E_PAYOUT ] ) );
GameTextForPlayer( playerid, "~n~~n~~r~No win!", 4000, 3 );
}
else if ( dealer_score > 21 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_WIN;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has won %s due to a dealer bust.", ReturnPlayerName( playerid ), playerid, ConvertPrice( payout ) );
GameTextForPlayer( playerid, sprintf( "~n~~n~~g~%s won!", ConvertPrice( payout ) ), 4000, 3 );
GivePlayerCash( playerid, payout );
}
else if ( player_score < dealer_score && dealer_score >= 17 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_BUST;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has lost %s due to a bust.", ReturnPlayerName( playerid ), playerid, ConvertPrice( g_blackjackData[ tableid ] [ E_PAYOUT ] ) );
GameTextForPlayer( playerid, "~n~~n~~r~No win!", 4000, 3 );
}
else if ( player_score > dealer_score && dealer_score >= 17 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_WIN;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has won %s due to a dealer bust.", ReturnPlayerName( playerid ), playerid, ConvertPrice( g_blackjackData[ tableid ] [ E_PAYOUT ] ) );
GameTextForPlayer( playerid, sprintf( "~n~~n~~g~%s won!", ConvertPrice( payout ) ), 4000, 3 );
GivePlayerCash( playerid, payout );
}
// alert world
if ( g_blackjackPlayerState[ tableid ] [ player_index ] == BLACKJACK_STATE_WIN && payout > g_blackjackData[ tableid ] [ E_PAYOUT ] && payout >= 10000 ) {
UpdateServerVariable( "blackjack_wins", 0, GetGVarFloat( "blackjack_wins" ) + ( float( payout ) / 1000000.0 ), "", GLOBAL_VARTYPE_FLOAT );
SendGlobalMessage( -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from blackjack!", ReturnPlayerName( playerid ), playerid, ConvertPrice( payout ) );
}
}
}
return dealer_score;
}
stock RemovePlayerFromBlackjack( playerid, reset_cam = 0 )
{
new
blackjack_table = p_blackjackTable[ playerid ];
if ( blackjack_table == -1 )
return 0;
// hide textdraws & reset
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ ) {
TextDrawHideForPlayer( playerid, g_blackjackDealerCards[ blackjack_table ] [ c ] );
for ( new p = 0; p < MAX_BLACKJACK_PLAYERS; p ++ ) {
TextDrawHideForPlayer( playerid, g_blackjackPlayerCards[ blackjack_table ] [ c ] [ p ] );
}
}
TextDrawHideForPlayer( playerid, g_blackjackTurnTD[ blackjack_table ] );
// check if it is a player
new
player_index = GetBlackjackPlayerIndex( blackjack_table, playerid );
if ( player_index != -1 )
{
foreach (new i : Player) if ( p_blackjackTable[ i ] == blackjack_table ) {
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ ) {
g_blackjackPlayerCardIndex[ blackjack_table ] [ c ] [ player_index ] = -1;
g_blackjackPlayerState[ blackjack_table ] [ player_index ] = BLACKJACK_STATE_NONE;
TextDrawSetString( g_blackjackPlayerCards[ blackjack_table ] [ c ] [ player_index ], "ld_card:cdback" );
TextDrawHideForPlayer( i, g_blackjackPlayerCards[ blackjack_table ] [ c ] [ player_index ] );
}
}
g_blackjackSlotData[ blackjack_table ] [ player_index ] = -1;
}
// reset camera?
if ( reset_cam ) {
TogglePlayerControllable( playerid, 1 );
ClearAnimations( playerid );
SetCameraBehindPlayer( playerid );
HidePlayerHelpDialog( playerid );
}
// reset variables
p_blackjackTable[ playerid ] = -1;
// reset table just incase empty
if ( GetBlackjackPlayers( blackjack_table ) <= 0 )
ResetBlackjackTable( blackjack_table );
return 1;
}
stock SendClientMessageToBlackjack( tableid, colour, format[ ], va_args<> )
{
static
out[ 144 ];
va_format( out, sizeof( out ), format, va_start<3> );
for(new i = 0; i < 10; i++) if ( p_blackjackTable[ i ] == tableid ) {
SendClientMessage( i, colour, out );
}
return 1;
}
stock initializeBlackjackTextdraws( id )
{
g_blackjackTurnTD[ id ] = TextDrawCreate(330.000000, 204.000000, "Lorenc has 5 seconds");
TextDrawAlignment(g_blackjackTurnTD[ id ], 2);
TextDrawBackgroundColor(g_blackjackTurnTD[ id ], 255);
TextDrawFont(g_blackjackTurnTD[ id ], 1);
TextDrawLetterSize(g_blackjackTurnTD[ id ], 0.260000, 1.200000);
TextDrawColor(g_blackjackTurnTD[ id ], 16711935);
TextDrawSetOutline(g_blackjackTurnTD[ id ], 1);
TextDrawSetProportional(g_blackjackTurnTD[ id ], 1);
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ )
{
g_blackjackDealerCards[ id ] [ c ] = TextDrawCreate(243.000000 + 35.0 * float( c ), 138.000000, "ld_card:cdback");
TextDrawBackgroundColor( g_blackjackDealerCards[ id ] [ c ], 255);
TextDrawFont( g_blackjackDealerCards[ id ] [ c ], 4);
TextDrawLetterSize( g_blackjackDealerCards[ id ] [ c ], 0.500000, 1.000000);
TextDrawUseBox( g_blackjackDealerCards[ id ] [ c ], 1);
TextDrawBoxColor( g_blackjackDealerCards[ id ] [ c ], 255);
TextDrawTextSize( g_blackjackDealerCards[ id ] [ c ], 30.000000, 51.000000);
}
new
Float: g_blackjackPlayerPosition[ MAX_BLACKJACK_PLAYERS ] [ 2 ] = { { 295.0, 334.0 }, { 205.0, 319.0 }, { 390.0, 329.0 } };
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ )
{
for ( new p = 0; p < MAX_BLACKJACK_PLAYERS; p ++ )
{
g_blackjackPlayerCards[ id ] [ c ] [ p ] = TextDrawCreate( g_blackjackPlayerPosition[ p ] [ 0 ] + 10.0 * float( c ), g_blackjackPlayerPosition[ p ] [ 1 ] - 16.0 * float( c ), "ld_card:cdback" );
TextDrawBackgroundColor( g_blackjackPlayerCards[ id ] [ c ] [ p ], 255 );
TextDrawFont( g_blackjackPlayerCards[ id ] [ c ] [ p ], 4 );
TextDrawLetterSize( g_blackjackPlayerCards[ id ] [ c ] [ p ], 0.5, 0.7 );
TextDrawUseBox( g_blackjackPlayerCards[ id ] [ c ] [ p ], 1 );
TextDrawBoxColor( g_blackjackPlayerCards[ id ] [ c ] [ p ], 255 );
TextDrawTextSize( g_blackjackPlayerCards[ id ] [ c ] [ p ], 22.000000, 37.000000 );
}
}
}
stock IsPlayerHandBlackjack( tableid, player_index, card_count )
{
if ( card_count == 21 && ( g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] == 0 || g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] == 13 || g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] == 26 || g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] == 39 ) )
return true;
if ( card_count == 21 && ( g_blackjackPlayerCardIndex[ tableid ] [ 1 ] [ player_index ] == 0 || g_blackjackPlayerCardIndex[ tableid ] [ 1 ] [ player_index ] == 13 || g_blackjackPlayerCardIndex[ tableid ] [ 1 ] [ player_index ] == 26 || g_blackjackPlayerCardIndex[ tableid ] [ 1 ] [ player_index ] == 39 ) )
return true;
return false;
}
stock IsDealerHandBlackjack( tableid, card_count )
{
if ( card_count == 21 && ( g_blackjackDealerCardIndex[ tableid ] [ 0 ] == 0 || g_blackjackDealerCardIndex[ tableid ] [ 0 ] == 13 || g_blackjackDealerCardIndex[ tableid ] [ 0 ] == 26 || g_blackjackDealerCardIndex[ tableid ] [ 0 ] == 39 ) )
return true;
if ( card_count == 21 && ( g_blackjackDealerCardIndex[ tableid ] [ 1 ] == 0 || g_blackjackDealerCardIndex[ tableid ] [ 1 ] == 13 || g_blackjackDealerCardIndex[ tableid ] [ 1 ] == 26 || g_blackjackDealerCardIndex[ tableid ] [ 1 ] == 39 ) )
return true;
return false;
}
stock GetBlackjackCardValue( card_index )
{
new
card_value = 0;
switch ( card_index )
{
case 0, 13, 26, 39: card_value = 1;
case 1, 14, 27, 40: card_value = 2;
case 2, 15, 28, 41: card_value = 3;
case 3, 16, 29, 42: card_value = 4;
case 4, 17, 30, 43: card_value = 5;
case 5, 18, 31, 44: card_value = 6;
case 6, 19, 32, 45: card_value = 7;
case 7, 20, 33, 46: card_value = 8;
case 8, 21, 34, 47: card_value = 9;
case 9, 22, 35, 48, 10, 23, 36, 49, 11, 24, 37, 50, 12, 25, 38, 51: card_value = 10;
}
return card_value;
}
stock GetBlackjackPlayerIndex( tableid, playerid )
{
for ( new player_index = 0; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ ) if ( playerid == g_blackjackSlotData[ tableid ] [ player_index ] ) {
return player_index;
}
return -1;
}
stock GetBlackjackPlayers( tableid ) {
new
count = 0;
for ( new p = 0; p < MAX_BLACKJACK_PLAYERS; p ++ ) if ( g_blackjackSlotData[ tableid ] [ p ] != -1 )
count ++;
return count;
}

View File

@ -5,6 +5,9 @@
* Purpose: fps counter in-game * Purpose: fps counter in-game
*/ */
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** Defines ** */ /* ** Defines ** */
#define GetPlayerFPS(%1) p_FPS[%1] #define GetPlayerFPS(%1) p_FPS[%1]
@ -55,7 +58,8 @@ stock formatFPSCounter( playerid ) {
TextDrawSetString( p_FPSCounterTD[ playerid ], szFPS ); TextDrawSetString( p_FPSCounterTD[ playerid ], szFPS );
} }
stock InitializeFpsTextdraw( ) /* ** Hooks ** */
hook InitializeTextDraws( )
{ {
for(new playerid; playerid != MAX_PLAYERS; playerid ++) for(new playerid; playerid != MAX_PLAYERS; playerid ++)
{ {

View File

@ -0,0 +1,270 @@
/*
* Irresistible Gaming (c) 2018
* Developed by Lorenc Pekaj
* Module: apartments.inc
* Purpose: apartment system for visage
*/
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** Definitions ** */
#define MAX_VISAGE_APARTMENTS 13
#define MAX_PASSCODE 4
// dialogs
#define DIALOG_VISAGE_APTS 17317
#define DIALOG_VISAGE_APT_PW 17318
#define DIALOG_VISAGE_APT_CONFIG 17319
#define DIALOG_VISAGE_APT_TRANSFER 17320
#define DIALOG_VISAGE_APT_TITLE 17321
#define DIALOG_VISAGE_APT_PASSCODE 17322
/* ** Constants ** */
static const
Float: VISAGE_APARTMENT_ENTRANCE[ 3 ] = { 0.0, 0.0, 0.0 },
Float: VISAGE_APARTMENT_EXIT[ 3 ] = { 0.0, 0.0, 0.0 }
;
/* ** Variables ** */
enum E_APARTMENT_DATA
{
E_OWNER_ID, E_TITLE[ 30 ], E_PASSCODE[ MAX_PASSCODE ],
bool: E_GAMBLING, E_EXIT_CP, E_OWNER_NAME[ MAX_PLAYER_NAME ],
E_WORLD, E_INTERIOR
};
new
g_VisageApartmentData [ MAX_VISAGE_APARTMENTS ] [ E_APARTMENT_DATA ],
Iterator: visageapartments < MAX_VISAGE_APARTMENTS >,
p_VisageApartmentSpawn [ MAX_PLAYERS ],
g_entranceCheckpoint = -1
;
/* ** Functions ** */
thread OnVisageApartmentLoad( )
{
new
i, rows, fields;
cache_get_data( rows, fields );
if ( rows )
{
for ( i = 0; i < rows; i ++ )
{
new
handle = Iter_Free( visageapartments );
if ( handle != ITER_NONE )
{
// set variables
g_VisageApartmentData[ handle ] [ E_OWNER_ID ] = cache_get_field_content_int( i, "OWNER_ID", dbHandle );
g_VisageApartmentData[ handle ] [ E_INTERIOR ] = cache_get_field_content_int( i, "INTERIOR", dbHandle );
g_VisageApartmentData[ handle ] [ E_WORLD ] = cache_get_field_content_int( i, "WORLD", dbHandle );
cache_get_field_content( i, "TITLE", g_VisageApartmentData[ handle ] [ E_TITLE ], dbHandle, 30 );
cache_get_field_content( i, "OWNER", g_VisageApartmentData[ handle ] [ E_OWNER_NAME ], dbHandle, MAX_PLAYER_NAME );
cache_get_field_content( i, "PASSCODE", g_VisageApartmentData[ handle ] [ E_PASSCODE ], dbHandle, 4 );
// appearance
CreateDynamic3DTextLabel( "[EXIT]", COLOR_GOLD, VISAGE_APARTMENT_EXIT[ 0 ], VISAGE_APARTMENT_EXIT[ 1 ], VISAGE_APARTMENT_EXIT[ 2 ], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, g_VisageApartmentData[ handle ] [ E_INTERIOR ], g_VisageApartmentData[ handle ] [ E_WORLD ] );
g_VisageApartmentData[ handle ] [ E_EXIT_CP ] = CreateDynamicCP( VISAGE_APARTMENT_EXIT[ 0 ], VISAGE_APARTMENT_EXIT[ 1 ], VISAGE_APARTMENT_EXIT[ 2 ], 1.0, g_VisageApartmentData[ handle ] [ E_INTERIOR ], g_VisageApartmentData[ handle ] [ E_WORLD ], -1, 50.0 );
// add to array
Iter_Add( visageapartments, handle );
}
else print( "[VISAGE APARTMENT ERROR] Visage apartment limit has been breached." );
}
printf( "[VISAGE APARTMENTS]: %d apartments have been loaded.", i );
}
}
/* ** Hooks ** */
hook OnGameModeInit( )
{
// query
mysql_function_query( dbHandle, "SELECT u.`NAME` as `OWNER`, a.* FROM `VISAGE_APARTMENTS` a LEFT JOIN `USERS` u ON a.`OWNER_ID`=u.`ID`", true, "OnVisageApartmentLoad", "" );
// create checkpoints
CreateDynamic3DTextLabel( "[PRIVATE APARTMENTS]", COLOR_GOLD, VISAGE_APARTMENT_ENTRANCE[ 0 ], VISAGE_APARTMENT_ENTRANCE[ 1 ], VISAGE_APARTMENT_ENTRANCE[ 2 ], 20.0 );
g_entranceCheckpoint = CreateDynamicCP( VISAGE_APARTMENT_ENTRANCE[ 0 ], VISAGE_APARTMENT_ENTRANCE[ 1 ], VISAGE_APARTMENT_ENTRANCE[ 2 ], 2.0, 0, -1, -1, 100.0 );
return 1;
}
hook OnPlayerEnterDynamicCP( playerid, checkpointid )
{
if ( checkpointid == g_entranceCheckpoint ) {
return ShowPlayerVisageApartments( playerid ), 1;
}
return 1;
}
hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
{
if ( dialogid == DIALOG_VISAGE_APTS && response )
{
new
x = -1;
foreach ( new handle : visageapartments )
{
if ( x ++ == listitem )
{
new
account_id = GetPlayerAccountID( playerid );
if ( g_VisageApartmentData[ handle ] [ E_OWNER_ID ] != account_id && ! isnull( g_VisageApartmentData[ handle ] [ E_PASSCODE ] ) ) {
SetPVarInt( playerid, "visage_accessing_apt", handle );
return ShowPlayerDialog( playerid, DIALOG_VISAGE_APT_PW, DIALOG_STYLE_INPUT, ""COL_GOLD"Visage Apartments -"COL_RED" Password Restricted", ""COL_WHITE"This apartment requires a passcode to access. Please enter it below.", "Access", "Back" );
} else {
SetPlayerToVisageApartment( playerid, handle );
}
}
}
return 1;
}
else if ( dialogid == DIALOG_VISAGE_APT_PW )
{
if ( ! response )
return ShowPlayerVisageApartments( playerid );
new
handle = GetPVarInt( playerid, "visage_accessing_apt" );
if ( ! Iter_Contains( visageapartments, handle ) )
return SendError( playerid, "You have attempted to access an invalid apartment." );
new
passcode[ MAX_PASSCODE ];
if ( sscanf( inputtext, "s["#MAX_PASSCODE"]", passcode ) ) return ShowPlayerDialog( playerid, DIALOG_VISAGE_APT_PW, DIALOG_STYLE_INPUT, ""COL_GOLD"Visage Apartments -"COL_RED" Password Restricted", ""COL_WHITE"This apartment requires a passcode to access. Please enter it below.", "Access", "Back" );
else if ( ! strmatch( passcode, g_VisageApartmentData[ handle ] [ E_PASSCODE ] ) ) return ShowPlayerDialog( playerid, DIALOG_VISAGE_APT_PW, DIALOG_STYLE_INPUT, ""COL_GOLD"Visage Apartments -"COL_RED" Password Restricted", ""COL_WHITE"This apartment requires a passcode to access. Please enter it below.\n\n"COL_RED"Incorrect passcode! Access denied.", "Access", "Back" );
else SetPlayerToVisageApartment( playerid, handle );
}
else if ( dialogid == DIALOG_VISAGE_APT_CONFIG && response )
{
new
handle = GetPVarInt( playerid, "in_visage_apartment" );
if ( ! Iter_Contains( visageapartments, handle ) )
return SendError( playerid, "You have attempted to modify an invalid apartment." );
if ( g_VisageApartmentData[ handle ] [ E_OWNER_ID ] != GetPlayerAccountID( playerid ) )
return SendError( playerid, "You are not the owner of this apartment." );
switch ( listitem )
{
case 0: ShowPlayerDialog( playerid, DIALOG_VISAGE_APT_TRANSFER, DIALOG_STYLE_INPUT, ""COL_GOLD"Visage Apartment", ""COL_WHITE"Enter the player name or id of the user to transfer apartment ownership to:", "Transfer", "Back" );
case 1: ShowPlayerDialog( playerid, DIALOG_VISAGE_APT_TITLE, DIALOG_STYLE_INPUT, ""COL_GOLD"Visage Apartment", ""COL_WHITE"Enter your new apartment title below:", "Edit", "Back" );
case 2: ShowPlayerDialog( playerid, DIALOG_VISAGE_APT_PASSCODE, DIALOG_STYLE_INPUT, ""COL_GOLD"Visage Apartment", ""COL_WHITE"Enter your new apartment passcode below:", "Edit", "Back" );
}
return 1;
}
else if ( dialogid == DIALOG_VISAGE_APT_TRANSFER )
{
if ( ! response )
return cmd_visage( playerid, "config" );
new
handle = GetPVarInt( playerid, "in_visage_apartment" );
if ( ! Iter_Contains( visageapartments, handle ) )
return SendError( playerid, "You have attempted to modify an invalid apartment." );
if ( g_VisageApartmentData[ handle ] [ E_OWNER_ID ] != GetPlayerAccountID( playerid ) )
return SendError( playerid, "You are not the owner of this apartment." );
// todo
}
else if ( dialogid == DIALOG_VISAGE_APT_TITLE )
{
if ( ! response )
return cmd_visage( playerid, "config" );
new
handle = GetPVarInt( playerid, "in_visage_apartment" );
if ( ! Iter_Contains( visageapartments, handle ) )
return SendError( playerid, "You have attempted to modify an invalid apartment." );
if ( g_VisageApartmentData[ handle ] [ E_OWNER_ID ] != GetPlayerAccountID( playerid ) )
return SendError( playerid, "You are not the owner of this apartment." );
// todo
}
else if ( dialogid == DIALOG_VISAGE_APT_PASSCODE )
{
if ( ! response )
return cmd_visage( playerid, "config" );
new
handle = GetPVarInt( playerid, "in_visage_apartment" );
if ( ! Iter_Contains( visageapartments, handle ) )
return SendError( playerid, "You have attempted to modify an invalid apartment." );
if ( g_VisageApartmentData[ handle ] [ E_OWNER_ID ] != GetPlayerAccountID( playerid ) )
return SendError( playerid, "You are not the owner of this apartment." );
// todo
}
return 1;
}
/* ** Functions ** */
stock ShowPlayerVisageApartments( playerid )
{
szLargeString = ""COL_WHITE"Owner\n"COL_WHITE"Title\n";
foreach ( new handle : visageapartments ) {
format( szLargeString, sizeof ( szLargeString ), "%s"COL_GREY"%s\t%s\n", szLargeString, g_VisageApartmentData[ handle ] [ E_OWNER_NAME ], g_VisageApartmentData[ handle ] [ E_TITLE ] );
}
ShowPlayerDialog( playerid, DIALOG_VISAGE_APTS, DIALOG_STYLE_TABLIST_HEADERS, ""COL_GOLD"Visage Apartment", szLargeString, "Access", "Close" );
return 1;
}
stock SetPlayerToVisageApartment( playerid, handle )
{
// set player position
SetPVarInt( playerid, "in_visage_apartment", handle );
SetPlayerPos( playerid, VISAGE_APARTMENT_EXIT[ 0 ], VISAGE_APARTMENT_EXIT[ 1 ], VISAGE_APARTMENT_EXIT[ 2 ] );
SetPlayerVirtualWorld( playerid, g_VisageApartmentData[ handle ] [ E_WORLD ] );
SetPlayerInterior( playerid, g_VisageApartmentData[ handle ] [ E_INTERIOR ] );
// greeting
SendServerMessage( playerid, "You are now inside of the "COL_GREY"%s"COL_WHITE"'s apartment.", g_VisageApartmentData[ handle ] [ E_TITLE ] );
}
/* ** Commands ** */
CMD:visage( playerid, params[ ] )
{
if ( strmatch( params, "config" ) )
{
new
handle = GetPVarInt( playerid, "in_visage_apartment" );
if ( ! Iter_Contains( visageapartments, handle ) ) return SendError( playerid, "You are not inside of any apartment" );
else if ( g_VisageApartmentData[ handle ] [ E_OWNER_ID ] != GetPlayerAccountID( playerid ) ) return SendError( playerid, "You do not own this apartment." );
else {
ShowPlayerDialog( playerid, DIALOG_VISAGE_APT_CONFIG, DIALOG_STYLE_LIST, ""COL_GOLD"Visage Apartment", "Transfer Ownership\nChange Apartment Title\nChange Apartment Passcode", "Select", "Close" );
}
return 1;
}
else if ( strmatch( params, "spawn" ) )
{
// todo
}
return 1;
}
/* ** Migrations ** */
/*
CREATE TABLE IF NOT EXISTS `VISAGE_APARTMENTS` (
`ID` int(11) primary key auto_increment,
`OWNER_ID` int(11),
`TITLE` varchar(30) DEFAULT "Apartment",
`PASSCODE` varchar(4) DEFAULT NULL,
`INTERIOR` int(11) DEFAULT 1,
`WORLD` int(11) DEFAULT 1,
`GAMBLING` tinyint(1) DEFAULT 0
)
*/

View File

@ -0,0 +1,769 @@
/*
* Irresistible Gaming (c) 2018
* Developed by Lorenc Pekaj
* Module: blackjack.inc
* Purpose: a sa-mp blackjack minigame implementation
*/
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** Definitions ** */
#define MAX_BLACKJACK_TABLES ( 32 )
#define MAX_BLACKJACK_CARDS ( 5 )
#define MAX_BLACKJACK_PLAYERS ( 3 )
#define BLACKJACK_DEALER_WAIT ( 500 )
#define BLACKJACK_PLAYER_WAIT ( 10 )
#define BLACKJACK_STATE_NONE ( 0 )
#define BLACKJACK_STATE_TURN ( 1 )
#define BLACKJACK_STATE_BUST ( 2 )
#define BLACKJACK_STATE_STAND ( 3 )
#define BLACKJACK_STATE_WIN ( 4 )
/* ** Constants ** */
stock const g_cardTextdrawData[ 52 ] [ ] = {
"LD_CARD:cd1c", // A Clubs - 0
"LD_CARD:cd2c", // 2 Clubs - 1
"LD_CARD:cd3c", // 3 Clubs - 2
"LD_CARD:cd4c", // 4 Clubs - 3
"LD_CARD:cd5c", // 5 Clubs - 4
"LD_CARD:cd6c", // 6 Clubs - 5
"LD_CARD:cd7c", // 7 Clubs - 6
"LD_CARD:cd8c", // 8 Clubs - 7
"LD_CARD:cd9c", // 9 Clubs - 8
"LD_CARD:cd10c", // 10 Clubs - 9
"LD_CARD:cd11c", // J Clubs - 10
"LD_CARD:cd12c", // Q Clubs - 11
"LD_CARD:cd13c", // K Clubs - 12
"LD_CARD:cd1d", // A Diamonds - 13
"LD_CARD:cd2d", // 2 Diamonds - 14
"LD_CARD:cd3d", // 3 Diamonds - 15
"LD_CARD:cd4d", // 4 Diamonds - 16
"LD_CARD:cd5d", // 5 Diamonds - 17
"LD_CARD:cd6d", // 6 Diamonds - 18
"LD_CARD:cd7d", // 7 Diamonds - 19
"LD_CARD:cd8d", // 8 Diamonds - 20
"LD_CARD:cd9d", // 9 Diamonds - 21
"LD_CARD:cd10d", // 10 Diamonds - 22
"LD_CARD:cd11d", // J Diamonds - 23
"LD_CARD:cd12d", // Q Diamonds - 24
"LD_CARD:cd13d", // K Diamonds - 25
"LD_CARD:cd1h", // A Heats - 26
"LD_CARD:cd2h", // 2 Heats - 27
"LD_CARD:cd3h", // 3 Heats - 28
"LD_CARD:cd4h", // 4 Heats - 29
"LD_CARD:cd5h", // 5 Heats - 30
"LD_CARD:cd6h", // 6 Heats - 31
"LD_CARD:cd7h", // 7 Heats - 32
"LD_CARD:cd8h", // 8 Heats - 33
"LD_CARD:cd9h", // 9 Heats - 34
"LD_CARD:cd10h", // 10 Heats - 35
"LD_CARD:cd11h", // J Heats - 36
"LD_CARD:cd12h", // Q Heats - 37
"LD_CARD:cd13h", // K Heats - 38
"LD_CARD:cd1s", // A Spades - 39
"LD_CARD:cd2s", // 2 Spades - 40
"LD_CARD:cd3s", // 3 Spades - 41
"LD_CARD:cd4s", // 4 Spades - 42
"LD_CARD:cd5s", // 5 Spades - 43
"LD_CARD:cd6s", // 6 Spades - 44
"LD_CARD:cd7s", // 7 Spades - 45
"LD_CARD:cd8s", // 8 Spades - 46
"LD_CARD:cd9s", // 9 Spades - 47
"LD_CARD:cd10s", // 10 Spades - 48
"LD_CARD:cd11s", // J Spades - 49
"LD_CARD:cd12s", // Q Spades - 50
"LD_CARD:cd13s" // K Spades - 51
};
/* ** Variables ** */
enum E_BLACKJACK_DATA
{
bool: E_GAME_STARTED, E_CARDS_DRAWN, E_GAME_TIMER,
E_PAYOUT,
E_OBJECT, E_ACTOR,
Float: E_X, Float: E_Y, Float: E_Z,
Float: E_ROTATION
};
new
g_blackjackData [ MAX_BLACKJACK_TABLES ] [ E_BLACKJACK_DATA ],
Text: g_blackjackTurnTD [ MAX_BLACKJACK_TABLES ] = { Text: INVALID_TEXT_DRAW, ... },
Text: g_blackjackPlayerCards [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_CARDS ] [ MAX_BLACKJACK_PLAYERS ],
Text: g_blackjackDealerCards [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_CARDS ],
g_blackjackDealerCardIndex [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_CARDS ],
g_blackjackPlayerCardIndex [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_CARDS ] [ MAX_BLACKJACK_PLAYERS ],
g_blackjackPlayerState [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_PLAYERS ],
g_blackjackSlotData [ MAX_BLACKJACK_TABLES ] [ MAX_BLACKJACK_PLAYERS ],
p_blackjackTable [ MAX_PLAYERS ] = { -1, ... },
Iterator: blackjacktables < MAX_BLACKJACK_TABLES >
;
/* ** Hooks ** */
hook OnGameModeInit( )
{
// Reset Textdraw Variables
for ( new i = 0; i < MAX_BLACKJACK_TABLES; i ++ ) {
for ( new x = 0; x < MAX_BLACKJACK_CARDS; x ++ ) {
g_blackjackDealerCards[ i ] [ x ] = Text: INVALID_TEXT_DRAW;
for ( new p = 0; p < MAX_BLACKJACK_PLAYERS; p ++ ) {
g_blackjackPlayerCards[ i ] [ x ] [ p ] = Text: INVALID_TEXT_DRAW;
g_blackjackSlotData[ i ] [ p ] = -1;
}
}
}
// Create blackjack tables
CreateBlackjackTable( 25000, 2230.37500, 1602.75000, 1006.15631, 0.00000, 82 );
CreateBlackjackTable( 25000, 2232.18750, 1604.43750, 1006.15631, 90.0000, 82 );
CreateBlackjackTable( 25000, 2228.49219, 1604.45313, 1006.15631, -90.000, 82 );
CreateBlackjackTable( 25000, 2230.37500, 1606.27344, 1006.15631, 180.000, 82 );
CreateBlackjackTable( 100000, 2241.31250, 1602.75000, 1006.15631, 0.00000, 82 );
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 );
CreateBlackjackTable( 1000000, 1960.74829, 1020.31189, 992.46881, -90.0000, 23 );
CreateBlackjackTable( 10000000, 1962.34375, 1020.17969, 992.46881, 90.00000, 23 );
return 1;
}
hook OnPlayerDisconnect( playerid, reason )
{
RemovePlayerFromBlackjack( playerid );
return 1;
}
#if defined AC_INCLUDED
hook OnPlayerDeathEx( playerid, killerid, reason, Float: damage, bodypart )
#else
hook OnPlayerDeath( playerid, killerid, reason )
#endif
{
RemovePlayerFromBlackjack( playerid );
return 1;
}
hook OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
static
Float: X, Float: Y, Float: Z;
if ( IsPlayerInCasino( playerid ) )
{
new
blackjack_table = p_blackjackTable[ playerid ];
// Blackjack
if ( blackjack_table != -1 )
{
new
player_index = GetBlackjackPlayerIndex( blackjack_table, playerid );
if ( player_index == -1 )
return SendError( playerid, "You don't seem to be playing any blackjack table." );
if ( PRESSED( KEY_SPRINT ) ) {
if ( ! g_blackjackData[ blackjack_table ] [ E_CARDS_DRAWN ] && g_blackjackData[ blackjack_table ] [ E_GAME_TIMER ] == -1 )
return ( g_blackjackData[ blackjack_table ] [ E_GAME_TIMER ] = SetTimerEx( "BeginBlackJackTurn", BLACKJACK_DEALER_WAIT, false, "d", blackjack_table ) ), 1;
if ( g_blackjackPlayerState[ blackjack_table ] [ player_index ] == BLACKJACK_STATE_TURN ) {
g_blackjackPlayerState[ blackjack_table ] [ player_index ] = BLACKJACK_STATE_STAND;
SendClientMessageToBlackjack( blackjack_table, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has decided to stand.", ReturnPlayerName( playerid ), playerid );
return 1;
}
return 1;
}
if ( PRESSED( KEY_CTRL_BACK ) )
{
if ( g_blackjackPlayerState[ blackjack_table ] [ player_index ] != BLACKJACK_STATE_TURN )
return SendError( playerid, "It's not your turn to hit. Please wait!" );
DrawPlayerBlackjackCard( blackjack_table, player_index );
CheckForBlackjack( blackjack_table );
return 1;
}
}
if ( PRESSED( KEY_SECONDARY_ATTACK ) )
{
if ( p_blackjackTable[ playerid ] != -1 )
return RemovePlayerFromBlackjack( playerid, .reset_cam = 1 );
foreach(new id : blackjacktables)
{
if ( IsPlayerInRangeOfPoint( playerid, 3.0, g_blackjackData[ id ] [ E_X ], g_blackjackData[ id ] [ E_Y ], g_blackjackData[ id ] [ E_Z ] ) ) {
new
player_index;
for ( ; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ )
if ( g_blackjackSlotData[ id ] [ player_index ] == -1 )
break;
if ( player_index >= MAX_BLACKJACK_PLAYERS || g_blackjackSlotData[ id ] [ player_index ] != -1 )
return SendError( playerid, "There are no more vacant slots for this table." );
if ( GetPlayerCash( playerid ) < g_blackjackData[ id ] [ E_PAYOUT ] )
return SendError( playerid, "You don't have any money to wager." );
new
Float: lookatX, Float: lookatY, Float: lookatZ,
Float: tmpX, Float: tmpY, Float: tmpZ
;
GetPlayerCameraPos( playerid, X, Y, Z );
GetPlayerCameraFrontVector( playerid, lookatX, lookatY, lookatZ );
tmpX = g_blackjackData[ id ] [ E_X ] - 1.3 * floatcos( g_blackjackData[ id ] [ E_ROTATION ] + 90.0, degrees );
tmpY = g_blackjackData[ id ] [ E_Y ] - 1.3 * floatsin( g_blackjackData[ id ] [ E_ROTATION ] + 90.0, degrees );
tmpZ = g_blackjackData[ id ] [ E_Z ] + 1.7;
InterpolateCameraPos( playerid, X, Y, Z, tmpX, tmpY, tmpZ, 1000, CAMERA_MOVE );
X += floatmul( lookatX, 20.0 );
Y += floatmul( lookatY, 20.0 );
Z += floatmul( lookatZ, 20.0 );
InterpolateCameraLookAt( playerid, X, Y, Z, g_blackjackData[ id ] [ E_X ], g_blackjackData[ id ] [ E_Y ], g_blackjackData[ id ] [ E_Z ] - 1.0, 1000, CAMERA_MOVE );
p_blackjackTable[ playerid ] = id;
g_blackjackSlotData[ id ] [ player_index ] = playerid;
// reset player cards
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ )
g_blackjackPlayerCardIndex[ id ] [ c ] [ player_index ] = -1;
// show cards to players
for ( new player = 0; player < MAX_BLACKJACK_PLAYERS; player ++ )
{
new
gamerid = g_blackjackSlotData[ id ] [ player ];
// deal only first two cards
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ )
{
TextDrawShowForPlayer( gamerid, g_blackjackDealerCards[ id ] [ c ] );
// show two player cards only
if ( c >= 2 )
continue;
for ( new p = 0; p < GetBlackjackPlayers( id ); p ++ ) {
TextDrawShowForPlayer( gamerid, g_blackjackPlayerCards[ id ] [ c ] [ p ] );
}
}
}
szBigString = "~y~~k~~PED_SPRINT~~w~ - Begin game/Stand~n~~y~~k~~GROUP_CONTROL_BWD~~w~ - Hit~n~~y~~k~~VEHICLE_ENTER_EXIT~~w~ - Exit";
ShowPlayerHelpDialog( playerid, 0, szBigString );
SendServerMessage( playerid, "You have entered the %s hand blackjack table.", ConvertPrice( g_blackjackData[ id ] [ E_PAYOUT ] ) );
ApplyAnimation( playerid, "DEALER", "DEALER_IDLE", 4.1, 1, 1, 1, 1, 0, 1 );
return 1;
}
}
}
}
return 1;
}
hook InitializeTextDraws( )
{
for ( new i = 0; i < MAX_BLACKJACK_TABLES; i ++ ) {
initializeBlackjackTextdraws( i );
}
}
/* ** Functions ** */
stock CreateBlackjackTable( payout, Float: X, Float: Y, Float: Z, Float: Angle, world = 0 )
{
new
id = Iter_Free(blackjacktables);
if ( id != ITER_NONE )
{
g_blackjackData[ id ] [ E_X ] = X;
g_blackjackData[ id ] [ E_Y ] = Y;
g_blackjackData[ id ] [ E_Z ] = Z;
g_blackjackData[ id ] [ E_ROTATION ] = Angle;
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 );
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 );
SetActorInvulnerable( g_blackjackData[ id ] [ E_ACTOR ], true );
SetActorVirtualWorld( g_blackjackData[ id ] [ E_ACTOR ], world );
ResetBlackjackTable( id );
Iter_Add( blackjacktables, id );
}
return 1;
}
function DrawPlayerBlackjackCard( tableid, player_index )
{
new
randomCard = random( sizeof( g_blackjackDealerCards ) );
for ( new cardid = 0; cardid < MAX_BLACKJACK_CARDS; cardid ++ ) if ( g_blackjackPlayerCardIndex[ tableid ] [ cardid ] [ player_index ] == -1 ) {
TextDrawSetString( g_blackjackPlayerCards[ tableid ] [ cardid ] [ player_index ], g_cardTextdrawData[ randomCard ] );
foreach (new gamerid : Player) if ( p_blackjackTable[ gamerid ] == tableid ) {
TextDrawShowForPlayer( gamerid, g_blackjackPlayerCards[ tableid ] [ cardid ] [ player_index ] );
PlayerPlaySound( gamerid, 1145, 0.0, 0.0, 0.0 );
}
g_blackjackPlayerCardIndex[ tableid ] [ cardid ] [ player_index ] = randomCard;
break;
}
return randomCard;
}
function BeginBlackJackTurn( tableid )
{
new
cardid = g_blackjackData[ tableid ] [ E_CARDS_DRAWN ] ++;
if ( cardid >= MAX_BLACKJACK_CARDS ) {
ResetBlackjackTable( tableid );
return;
}
new
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 );
TextDrawSetString( g_blackjackDealerCards[ tableid ] [ cardid ], g_cardTextdrawData[ randomCard ] );
g_blackjackDealerCardIndex[ tableid ] [ cardid ] = randomCard;
// noise
foreach (new gamerid : Player) if ( p_blackjackTable[ gamerid ] != -1 ) {
PlayerPlaySound( gamerid, 1145, 0.0, 0.0, 0.0 );
}
// deal player first card
if ( cardid == 0 )
{
new
bet_amount = 0;
for ( new player_index = 0; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ ) if ( g_blackjackSlotData[ tableid ] [ player_index ] != -1 )
{
new
gamerid = g_blackjackSlotData[ tableid ] [ player_index ];
if ( GetPlayerCash( gamerid ) < g_blackjackData[ tableid ] [ E_PAYOUT ] ) {
SendError( gamerid, "You don't have any money to wager." );
RemovePlayerFromBlackjack( gamerid, .reset_cam = 1 );
continue;
}
bet_amount += g_blackjackData[ tableid ] [ E_PAYOUT ];
GivePlayerCash( gamerid, -g_blackjackData[ tableid ] [ E_PAYOUT ] );
DrawPlayerBlackjackCard( tableid, player_index );
if ( cardid < 1 ) { // distribute first two cards to players
SetTimerEx( "DrawPlayerBlackjackCard", BLACKJACK_DEALER_WAIT, false, "dd", tableid, player_index );
}
}
UpdateServerVariable( "blackjack_bets", 0, GetGVarFloat( "blackjack_bets" ) + ( float( bet_amount ) / 1000000.0 ), "", GLOBAL_VARTYPE_FLOAT );
// begin turns
new
first_player = GetNextAvailableBlackjackPlayer( tableid ),
first_player_index = GetBlackjackPlayerIndex( tableid, first_player )
;
if ( first_player_index != -1 )
g_blackjackPlayerState[ tableid ] [ first_player_index ] = BLACKJACK_STATE_TURN;
g_blackjackData[ tableid ] [ E_GAME_TIMER ] = SetTimerEx( "BlackjackPlayerTurn", BLACKJACK_DEALER_WAIT + 500, false, "ddd", tableid, first_player, BLACKJACK_PLAYER_WAIT );
}
// check for blackjack on players & bot
new
dealer_score = CheckForBlackjack( tableid );
// pull more cards
if ( cardid >= 1 && dealer_score < 17 )
g_blackjackData[ tableid ] [ E_GAME_TIMER ] = SetTimerEx( "BeginBlackJackTurn", BLACKJACK_DEALER_WAIT, false, "d", tableid );
if ( dealer_score >= 17 ) {
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" Table will reset in 5 seconds as all hands have been dealt." );
SetTimerEx( "ResetBlackjackTable", 5000, false, "d", tableid );
}
}
stock GetNextAvailableBlackjackPlayer( tableid, exclude = INVALID_PLAYER_ID )
{
new
playerid = INVALID_PLAYER_ID;
for ( new player_index = 0; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ ) if ( g_blackjackSlotData[ tableid ] [ player_index ] != -1 && g_blackjackPlayerState[ tableid ] [ player_index ] == BLACKJACK_STATE_NONE && exclude != g_blackjackSlotData[ tableid ] [ player_index ] && g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] != -1 ) {
playerid = g_blackjackSlotData[ tableid ] [ player_index ];
break;
}
return playerid;
}
function BlackjackPlayerTurn( tableid, playerid, seconds_left )
{
new
player_index = GetBlackjackPlayerIndex( tableid, playerid );
if ( IsPlayerConnected( playerid ) && player_index != -1 && seconds_left >= 0 && g_blackjackPlayerState[ tableid ] [ player_index ] == BLACKJACK_STATE_TURN )
{
foreach (new gamerid : Player) if ( p_blackjackTable[ gamerid ] == tableid ) {
TextDrawSetString( g_blackjackTurnTD[ tableid ], sprintf( "%s has %d seconds left", ReturnPlayerName( playerid ), seconds_left ) );
TextDrawShowForPlayer( gamerid, g_blackjackTurnTD[ tableid ] );
}
g_blackjackData[ tableid ] [ E_GAME_TIMER ] = SetTimerEx( "BlackjackPlayerTurn", 960, false, "ddd", tableid, playerid, seconds_left - 1 );
}
else
{
new
next_player = GetNextAvailableBlackjackPlayer( tableid, playerid );
if ( next_player == INVALID_PLAYER_ID )
{
TextDrawHideForAll( g_blackjackTurnTD[ tableid ] );
g_blackjackData[ tableid ] [ E_GAME_TIMER ] = SetTimerEx( "BeginBlackJackTurn", BLACKJACK_DEALER_WAIT, false, "d", tableid );
}
else
{
new
next_player_index = GetBlackjackPlayerIndex( tableid, next_player );
// otherwise winning hands will get reissued prizes
if ( player_index != -1 && g_blackjackPlayerState[ tableid ] [ player_index ] != BLACKJACK_STATE_WIN && g_blackjackPlayerState[ tableid ] [ player_index ] != BLACKJACK_STATE_BUST )
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_STAND;
g_blackjackPlayerState[ tableid ] [ next_player_index ] = BLACKJACK_STATE_TURN;
g_blackjackData[ tableid ] [ E_GAME_TIMER ] = SetTimerEx( "BlackjackPlayerTurn", 960, false, "ddd", tableid, next_player, BLACKJACK_PLAYER_WAIT );
}
}
}
function ResetBlackjackTable( tableid )
{
if ( tableid == -1 )
return;
// variables
KillTimer( g_blackjackData[ tableid ] [ E_GAME_TIMER ] ), g_blackjackData[ tableid ] [ E_GAME_TIMER ] = -1;
g_blackjackData[ tableid ] [ E_CARDS_DRAWN ] = 0;
// card data
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ ) {
g_blackjackDealerCardIndex[ tableid ] [ c ] = -1;
TextDrawSetString( g_blackjackDealerCards[ tableid ] [ c ], "ld_card:cdback" );
for ( new p = 0; p < MAX_BLACKJACK_PLAYERS; p ++ ) {
g_blackjackPlayerState[ tableid ] [ p ] = BLACKJACK_STATE_NONE;
g_blackjackPlayerCardIndex[ tableid ] [ c ] [ p ] = -1;
TextDrawSetString( g_blackjackPlayerCards[ tableid ] [ c ] [ p ], "ld_card:cdback" );
if ( c > 1 ) TextDrawHideForAll( g_blackjackPlayerCards[ tableid ] [ c ] [ p ] );
}
}
// reshow textdraws to players
for ( new player_index = 0; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ ) if ( g_blackjackSlotData[ tableid ] [ player_index ] != -1 )
{
new
gamerid = g_blackjackSlotData[ tableid ] [ player_index ];
// deal only first two cards
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ )
{
TextDrawShowForPlayer( gamerid, g_blackjackDealerCards[ tableid ] [ c ] );
// show two player cards only
if ( c >= 2 )
continue;
for ( new p = 0; p < GetBlackjackPlayers( tableid ); p ++ ) {
TextDrawShowForPlayer( gamerid, g_blackjackPlayerCards[ tableid ] [ c ] [ p ] );
}
}
}
}
stock CheckForBlackjack( tableid )
{
new
dealer_score = 0;
//if ( g_blackjackData[ tableid ] [ E_CARDS_DRAWN ] <= 1 )
// return dealer_score;
// calculate dealer score
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ ) if ( g_blackjackDealerCardIndex[ tableid ] [ c ] != -1 )
{
new
card_value = GetBlackjackCardValue( g_blackjackDealerCardIndex[ tableid ] [ c ] );
// printf("%d Card = %d", c, card_value);
if ( card_value == 1 ) {
if ( dealer_score >= 11 ) dealer_score += 1;
else dealer_score += 11;
}
else dealer_score += card_value;
}
//printf("The Dealer score is %d", dealer_score );
// calculate player score
for ( new player_index = 0; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ ) if ( g_blackjackSlotData[ tableid ] [ player_index ] != -1 && g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] != -1 )
{
new
playerid = g_blackjackSlotData[ tableid ] [ player_index ], player_score = 0;
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ ) if ( g_blackjackPlayerCardIndex[ tableid ] [ c ] [ player_index ] != -1 )
{
new
card_value = GetBlackjackCardValue( g_blackjackPlayerCardIndex[ tableid ] [ c ] [ player_index ] );
if ( card_value == 1 ) {
if ( player_score >= 11 ) player_score += 1;
else player_score += 11;
}
else player_score += card_value;
}
if ( g_blackjackPlayerState[ tableid ] [ player_index ] != BLACKJACK_STATE_BUST && g_blackjackPlayerState[ tableid ] [ player_index ] != BLACKJACK_STATE_WIN )
{
new
payout = floatround( float( g_blackjackData[ tableid ] [ E_PAYOUT ] ) * 2.0 );
// check for win
if ( dealer_score == player_score && dealer_score >= 17 ) {
payout = g_blackjackData[ tableid ] [ E_PAYOUT ];
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_WIN;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has been returned %s due to a push.", ReturnPlayerName( playerid ), playerid, ConvertPrice( payout ) );
GameTextForPlayer( playerid, sprintf( "~n~~n~~g~%s won!", ConvertPrice( payout ) ), 4000, 3 );
GivePlayerCash( playerid, payout );
}
else if ( player_score == 21 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_WIN;
if ( IsPlayerHandBlackjack( tableid, player_index, player_score ) ) {
payout = floatround( float( g_blackjackData[ tableid ] [ E_PAYOUT ] ) * 2.5 );
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" Blackjack! %s(%d) has won %s!", ReturnPlayerName( playerid ), playerid, ConvertPrice( payout ) );
} else {
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has won %s due to a card count of 21!", ReturnPlayerName( playerid ), playerid, ConvertPrice( payout ) );
}
GameTextForPlayer( playerid, sprintf( "~n~~n~~g~%s won!", ConvertPrice( payout ) ), 4000, 3 );
GivePlayerCash( playerid, payout );
}
else if ( dealer_score == 21 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_BUST;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has lost %s due to a dealer %s.", ReturnPlayerName( playerid ), playerid, ConvertPrice( g_blackjackData[ tableid ] [ E_PAYOUT ] ), IsDealerHandBlackjack( tableid, dealer_score ) ? ( "blackjack" ) : ( "21" ) );
GameTextForPlayer( playerid, "~n~~n~~r~No win!", 4000, 3 );
}
else if ( player_score > 21 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_BUST;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has lost %s due to a bust.", ReturnPlayerName( playerid ), playerid, ConvertPrice( g_blackjackData[ tableid ] [ E_PAYOUT ] ) );
GameTextForPlayer( playerid, "~n~~n~~r~No win!", 4000, 3 );
}
else if ( dealer_score > 21 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_WIN;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has won %s due to a dealer bust.", ReturnPlayerName( playerid ), playerid, ConvertPrice( payout ) );
GameTextForPlayer( playerid, sprintf( "~n~~n~~g~%s won!", ConvertPrice( payout ) ), 4000, 3 );
GivePlayerCash( playerid, payout );
}
else if ( player_score < dealer_score && dealer_score >= 17 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_BUST;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has lost %s due to a bust.", ReturnPlayerName( playerid ), playerid, ConvertPrice( g_blackjackData[ tableid ] [ E_PAYOUT ] ) );
GameTextForPlayer( playerid, "~n~~n~~r~No win!", 4000, 3 );
}
else if ( player_score > dealer_score && dealer_score >= 17 ) {
g_blackjackPlayerState[ tableid ] [ player_index ] = BLACKJACK_STATE_WIN;
SendClientMessageToBlackjack( tableid, COLOR_GREY, "[BLACKJACK]"COL_WHITE" %s(%d) has won %s due to a dealer bust.", ReturnPlayerName( playerid ), playerid, ConvertPrice( g_blackjackData[ tableid ] [ E_PAYOUT ] ) );
GameTextForPlayer( playerid, sprintf( "~n~~n~~g~%s won!", ConvertPrice( payout ) ), 4000, 3 );
GivePlayerCash( playerid, payout );
}
// alert world
if ( g_blackjackPlayerState[ tableid ] [ player_index ] == BLACKJACK_STATE_WIN && payout > g_blackjackData[ tableid ] [ E_PAYOUT ] && payout >= 10000 ) {
UpdateServerVariable( "blackjack_wins", 0, GetGVarFloat( "blackjack_wins" ) + ( float( payout ) / 1000000.0 ), "", GLOBAL_VARTYPE_FLOAT );
SendGlobalMessage( -1, ""COL_GREY"[CASINO]{FFFFFF} %s(%d) has won "COL_GOLD"%s"COL_WHITE" from blackjack!", ReturnPlayerName( playerid ), playerid, ConvertPrice( payout ) );
}
}
}
return dealer_score;
}
stock RemovePlayerFromBlackjack( playerid, reset_cam = 0 )
{
new
blackjack_table = p_blackjackTable[ playerid ];
if ( blackjack_table == -1 )
return 0;
// hide textdraws & reset
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ ) {
TextDrawHideForPlayer( playerid, g_blackjackDealerCards[ blackjack_table ] [ c ] );
for ( new p = 0; p < MAX_BLACKJACK_PLAYERS; p ++ ) {
TextDrawHideForPlayer( playerid, g_blackjackPlayerCards[ blackjack_table ] [ c ] [ p ] );
}
}
TextDrawHideForPlayer( playerid, g_blackjackTurnTD[ blackjack_table ] );
// check if it is a player
new
player_index = GetBlackjackPlayerIndex( blackjack_table, playerid );
if ( player_index != -1 )
{
foreach (new i : Player) if ( p_blackjackTable[ i ] == blackjack_table ) {
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ ) {
g_blackjackPlayerCardIndex[ blackjack_table ] [ c ] [ player_index ] = -1;
g_blackjackPlayerState[ blackjack_table ] [ player_index ] = BLACKJACK_STATE_NONE;
TextDrawSetString( g_blackjackPlayerCards[ blackjack_table ] [ c ] [ player_index ], "ld_card:cdback" );
TextDrawHideForPlayer( i, g_blackjackPlayerCards[ blackjack_table ] [ c ] [ player_index ] );
}
}
g_blackjackSlotData[ blackjack_table ] [ player_index ] = -1;
}
// reset camera?
if ( reset_cam ) {
TogglePlayerControllable( playerid, 1 );
ClearAnimations( playerid );
SetCameraBehindPlayer( playerid );
HidePlayerHelpDialog( playerid );
}
// reset variables
p_blackjackTable[ playerid ] = -1;
// reset table just incase empty
if ( GetBlackjackPlayers( blackjack_table ) <= 0 )
ResetBlackjackTable( blackjack_table );
return 1;
}
stock SendClientMessageToBlackjack( tableid, colour, format[ ], va_args<> )
{
static
out[ 144 ];
va_format( out, sizeof( out ), format, va_start<3> );
for(new i = 0; i < 10; i++) if ( p_blackjackTable[ i ] == tableid ) {
SendClientMessage( i, colour, out );
}
return 1;
}
stock initializeBlackjackTextdraws( id )
{
g_blackjackTurnTD[ id ] = TextDrawCreate(330.000000, 204.000000, "Lorenc has 5 seconds");
TextDrawAlignment(g_blackjackTurnTD[ id ], 2);
TextDrawBackgroundColor(g_blackjackTurnTD[ id ], 255);
TextDrawFont(g_blackjackTurnTD[ id ], 1);
TextDrawLetterSize(g_blackjackTurnTD[ id ], 0.260000, 1.200000);
TextDrawColor(g_blackjackTurnTD[ id ], 16711935);
TextDrawSetOutline(g_blackjackTurnTD[ id ], 1);
TextDrawSetProportional(g_blackjackTurnTD[ id ], 1);
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ )
{
g_blackjackDealerCards[ id ] [ c ] = TextDrawCreate(243.000000 + 35.0 * float( c ), 138.000000, "ld_card:cdback");
TextDrawBackgroundColor( g_blackjackDealerCards[ id ] [ c ], 255);
TextDrawFont( g_blackjackDealerCards[ id ] [ c ], 4);
TextDrawLetterSize( g_blackjackDealerCards[ id ] [ c ], 0.500000, 1.000000);
TextDrawUseBox( g_blackjackDealerCards[ id ] [ c ], 1);
TextDrawBoxColor( g_blackjackDealerCards[ id ] [ c ], 255);
TextDrawTextSize( g_blackjackDealerCards[ id ] [ c ], 30.000000, 51.000000);
}
new
Float: g_blackjackPlayerPosition[ MAX_BLACKJACK_PLAYERS ] [ 2 ] = { { 295.0, 334.0 }, { 205.0, 319.0 }, { 390.0, 329.0 } };
for ( new c = 0; c < MAX_BLACKJACK_CARDS; c ++ )
{
for ( new p = 0; p < MAX_BLACKJACK_PLAYERS; p ++ )
{
g_blackjackPlayerCards[ id ] [ c ] [ p ] = TextDrawCreate( g_blackjackPlayerPosition[ p ] [ 0 ] + 10.0 * float( c ), g_blackjackPlayerPosition[ p ] [ 1 ] - 16.0 * float( c ), "ld_card:cdback" );
TextDrawBackgroundColor( g_blackjackPlayerCards[ id ] [ c ] [ p ], 255 );
TextDrawFont( g_blackjackPlayerCards[ id ] [ c ] [ p ], 4 );
TextDrawLetterSize( g_blackjackPlayerCards[ id ] [ c ] [ p ], 0.5, 0.7 );
TextDrawUseBox( g_blackjackPlayerCards[ id ] [ c ] [ p ], 1 );
TextDrawBoxColor( g_blackjackPlayerCards[ id ] [ c ] [ p ], 255 );
TextDrawTextSize( g_blackjackPlayerCards[ id ] [ c ] [ p ], 22.000000, 37.000000 );
}
}
}
stock IsPlayerHandBlackjack( tableid, player_index, card_count )
{
if ( card_count == 21 && ( g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] == 0 || g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] == 13 || g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] == 26 || g_blackjackPlayerCardIndex[ tableid ] [ 0 ] [ player_index ] == 39 ) )
return true;
if ( card_count == 21 && ( g_blackjackPlayerCardIndex[ tableid ] [ 1 ] [ player_index ] == 0 || g_blackjackPlayerCardIndex[ tableid ] [ 1 ] [ player_index ] == 13 || g_blackjackPlayerCardIndex[ tableid ] [ 1 ] [ player_index ] == 26 || g_blackjackPlayerCardIndex[ tableid ] [ 1 ] [ player_index ] == 39 ) )
return true;
return false;
}
stock IsDealerHandBlackjack( tableid, card_count )
{
if ( card_count == 21 && ( g_blackjackDealerCardIndex[ tableid ] [ 0 ] == 0 || g_blackjackDealerCardIndex[ tableid ] [ 0 ] == 13 || g_blackjackDealerCardIndex[ tableid ] [ 0 ] == 26 || g_blackjackDealerCardIndex[ tableid ] [ 0 ] == 39 ) )
return true;
if ( card_count == 21 && ( g_blackjackDealerCardIndex[ tableid ] [ 1 ] == 0 || g_blackjackDealerCardIndex[ tableid ] [ 1 ] == 13 || g_blackjackDealerCardIndex[ tableid ] [ 1 ] == 26 || g_blackjackDealerCardIndex[ tableid ] [ 1 ] == 39 ) )
return true;
return false;
}
stock GetBlackjackCardValue( card_index )
{
new
card_value = 0;
switch ( card_index )
{
case 0, 13, 26, 39: card_value = 1;
case 1, 14, 27, 40: card_value = 2;
case 2, 15, 28, 41: card_value = 3;
case 3, 16, 29, 42: card_value = 4;
case 4, 17, 30, 43: card_value = 5;
case 5, 18, 31, 44: card_value = 6;
case 6, 19, 32, 45: card_value = 7;
case 7, 20, 33, 46: card_value = 8;
case 8, 21, 34, 47: card_value = 9;
case 9, 22, 35, 48, 10, 23, 36, 49, 11, 24, 37, 50, 12, 25, 38, 51: card_value = 10;
}
return card_value;
}
stock GetBlackjackPlayerIndex( tableid, playerid )
{
for ( new player_index = 0; player_index < MAX_BLACKJACK_PLAYERS; player_index ++ ) if ( playerid == g_blackjackSlotData[ tableid ] [ player_index ] ) {
return player_index;
}
return -1;
}
stock GetBlackjackPlayers( tableid ) {
new
count = 0;
for ( new p = 0; p < MAX_BLACKJACK_PLAYERS; p ++ ) if ( g_blackjackSlotData[ tableid ] [ p ] != -1 )
count ++;
return count;
}

View File

@ -381,3 +381,44 @@ forward FW_UpdateTick(handle); public FW_UpdateTick(handle)
FW_Data[handle][FW_FL_TIME_DELAY_COUNT]++; FW_Data[handle][FW_FL_TIME_DELAY_COUNT]++;
return 1; return 1;
} }
CMD:fireworks( playerid, params[ ] )
{
if ( ! IsPlayerAdmin( playerid ) ) return 0;
new
flares, style, Float: speed, Float: gravity, Float: angle, Float: time_delay, Float: max_height;
// /fireworks 50 0 10 10.8 50 0.2 50 - spiral
if ( sscanf( params, "ddffffF(50.0)", flares, style, speed, gravity, angle, time_delay, max_height ) ) return SendUsage( playerid, "fireworks [FLARES] [STYLE] [SPEED] [GRAVITY] [ANGLE] [TIME_DELAY] [MAX_HEIGHT]" );
else
{
new
Float: X, Float: Y, Float: Z
;
GetPlayerPos( playerid, X, Y, Z );
CreateFireworks( flares, style, X, Y, Z, angle, speed, gravity, time_delay, max_height );
return SendServerMessage( playerid, "Fireworks placed! Use /launchfireworks to launch." );
}
}
CMD:launchfireworks( playerid, params[ ] )
{
if ( ! IsPlayerAdmin( playerid ) ) return 0;
foreach (new f : fireworks) {
LaunchFireworks( f );
}
SendServerMessage( playerid, "Launching" );
return 1;
}
CMD:destroyfireworks( playerid, params[ ] )
{
if ( ! IsPlayerAdmin( playerid ) ) return 0;
for (new f = 0; f < MAX_FIREWORKS; f++ ) {
ResetFirework( f );
}
SendServerMessage( playerid, "Destroyed" );
return 1;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,62 +0,0 @@
/*
* Irresistible Gaming 2018
* Developed by Lorenc Pekaj
* Module: gta\cards.inc
* Purpose: relating to gambling, or cards in gta
*/
/* ** Variables ** */
new const g_cardTextdrawData[ 52 ] [ ] = {
"LD_CARD:cd1c", // A Clubs - 0
"LD_CARD:cd2c", // 2 Clubs - 1
"LD_CARD:cd3c", // 3 Clubs - 2
"LD_CARD:cd4c", // 4 Clubs - 3
"LD_CARD:cd5c", // 5 Clubs - 4
"LD_CARD:cd6c", // 6 Clubs - 5
"LD_CARD:cd7c", // 7 Clubs - 6
"LD_CARD:cd8c", // 8 Clubs - 7
"LD_CARD:cd9c", // 9 Clubs - 8
"LD_CARD:cd10c", // 10 Clubs - 9
"LD_CARD:cd11c", // J Clubs - 10
"LD_CARD:cd12c", // Q Clubs - 11
"LD_CARD:cd13c", // K Clubs - 12
"LD_CARD:cd1d", // A Diamonds - 13
"LD_CARD:cd2d", // 2 Diamonds - 14
"LD_CARD:cd3d", // 3 Diamonds - 15
"LD_CARD:cd4d", // 4 Diamonds - 16
"LD_CARD:cd5d", // 5 Diamonds - 17
"LD_CARD:cd6d", // 6 Diamonds - 18
"LD_CARD:cd7d", // 7 Diamonds - 19
"LD_CARD:cd8d", // 8 Diamonds - 20
"LD_CARD:cd9d", // 9 Diamonds - 21
"LD_CARD:cd10d", // 10 Diamonds - 22
"LD_CARD:cd11d", // J Diamonds - 23
"LD_CARD:cd12d", // Q Diamonds - 24
"LD_CARD:cd13d", // K Diamonds - 25
"LD_CARD:cd1h", // A Heats - 26
"LD_CARD:cd2h", // 2 Heats - 27
"LD_CARD:cd3h", // 3 Heats - 28
"LD_CARD:cd4h", // 4 Heats - 29
"LD_CARD:cd5h", // 5 Heats - 30
"LD_CARD:cd6h", // 6 Heats - 31
"LD_CARD:cd7h", // 7 Heats - 32
"LD_CARD:cd8h", // 8 Heats - 33
"LD_CARD:cd9h", // 9 Heats - 34
"LD_CARD:cd10h", // 10 Heats - 35
"LD_CARD:cd11h", // J Heats - 36
"LD_CARD:cd12h", // Q Heats - 37
"LD_CARD:cd13h", // K Heats - 38
"LD_CARD:cd1s", // A Spades - 39
"LD_CARD:cd2s", // 2 Spades - 40
"LD_CARD:cd3s", // 3 Spades - 41
"LD_CARD:cd4s", // 4 Spades - 42
"LD_CARD:cd5s", // 5 Spades - 43
"LD_CARD:cd6s", // 6 Spades - 44
"LD_CARD:cd7s", // 7 Spades - 45
"LD_CARD:cd8s", // 8 Spades - 46
"LD_CARD:cd9s", // 9 Spades - 47
"LD_CARD:cd10s", // 10 Spades - 48
"LD_CARD:cd11s", // J Spades - 49
"LD_CARD:cd12s", // Q Spades - 50
"LD_CARD:cd13s" // K Spades - 51
};

View File

@ -28,6 +28,10 @@
#define thread function // used to look pretty for mysql #define thread function // used to look pretty for mysql
/* ** Variables ** */ /* ** Variables ** */
stock szSmallString[ 32 ];
stock szBigString[ 256 ];
stock szLargeString[ 1024 ];
stock szHugeString[ 2048 ];
stock g_szSprintfBuffer[ 1024 ]; stock g_szSprintfBuffer[ 1024 ];
stock tmpVariable; stock tmpVariable;
@ -210,3 +214,31 @@ stock strreplace(string[], const search[], const replacement[], bool:ignorecase
/*stock strcpy(dest[], const source[], maxlength=sizeof dest) { /*stock strcpy(dest[], const source[], maxlength=sizeof dest) {
strcat((dest[0] = EOS, dest), source, maxlength); strcat((dest[0] = EOS, dest), source, maxlength);
}*/ }*/
// purpose: get unattached player object index
stock Player_GetUnusedAttachIndex( playerid )
{
for ( new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i ++ )
if ( ! IsPlayerAttachedObjectSlotUsed( playerid, i ) )
return i;
return cellmin;
}
// purpose: convert integer into dollar string
stock ConvertPrice( iValue, iCashSign = 1 )
{
static
szNum[ 32 ];
format( szNum, sizeof( szNum ), "%d", iValue < 0 ? -iValue : iValue );
for( new i = strlen( szNum ) - 3; i > 0; i -= 3 ) {
strins( szNum, ",", i, sizeof( szNum ) );
}
if ( iCashSign ) strins( szNum, "$", 0 );
if ( iValue < 0 ) strins( szNum, "-", 0, sizeof( szNum ) );
return szNum;
}

View File

@ -6,7 +6,7 @@
*/ */
// default // default
#include < irresistible\settings > #include < irresistible\settings > // keep #1
#include < irresistible\security > #include < irresistible\security >
#include < irresistible\helpers > #include < irresistible\helpers >
#include < irresistible\floodcontrol > #include < irresistible\floodcontrol >
@ -18,14 +18,19 @@
// gta related variables // gta related variables
#include < irresistible\gta\map > #include < irresistible\gta\map >
#include < irresistible\gta\cards >
#include < irresistible\gta\vehicles > #include < irresistible\gta\vehicles >
#include < irresistible\gta\weapon_data > #include < irresistible\gta\weapon_data >
// features // features
#include < irresistible\features\fps > #include < irresistible\features\fps >
#include < irresistible\features\radio > #include < irresistible\features\radio >
#include < irresistible\features\fireworks >
// visage casino
#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 >
// static // static
#include < irresistible\static_cnr\actors > #include < irresistible\static_cnr\actors >

View File

@ -6,7 +6,11 @@
*/ */
// mysqldump -u service -p82JA8LDL1JAG2GF69 sa-mp > ~/dump01.sql // mysqldump -u service -p82JA8LDL1JAG2GF69 sa-mp > ~/dump01.sql
// MySQL settings
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** MySQL Settings ** */
#if !defined DEBUG_MODE #if !defined DEBUG_MODE
#define MYSQL_HOST "127.0.0.1" #define MYSQL_HOST "127.0.0.1"
#define MYSQL_USER "service" #define MYSQL_USER "service"
@ -18,3 +22,34 @@
#define MYSQL_PASS "" #define MYSQL_PASS ""
#define MYSQL_DATABASE "sa-mp" #define MYSQL_DATABASE "sa-mp"
#endif #endif
/* ** Variables ** */
stock dbHandle;
stock bool: serverLocked = false;
/* ** Variables ** */
hook OnGameModeInit( )
{
// Attempt to connect to database
if ( mysql_errno( ( dbHandle = mysql_connect( MYSQL_HOST, MYSQL_USER, MYSQL_DATABASE, MYSQL_PASS ) ) ) ) {
print( "[MYSQL]: Couldn't connect to MySQL database." ), serverLocked = true;
} else {
print( "[MYSQL]: Connection to database is successful." );
}
return 1;
}
hook OnGameModeExit( )
{
mysql_close( );
return 1;
}
hook OnPlayerConnect( playerid )
{
if ( serverLocked ) {
SendClientMessage( playerid, 0xa9c4e4ff, "The server is locked due to false server configuration. Please wait for the operator." );
return KickPlayerTimed( playerid ), 1;
}
return 1;
}

View File

@ -331,6 +331,18 @@ stock removeExcessiveBuildings( playerid )
RemoveBuildingForPlayer(playerid, 1978, 2241.4453, 1619.6094, 1006.2266, 10000.0); RemoveBuildingForPlayer(playerid, 1978, 2241.4453, 1619.6094, 1006.2266, 10000.0);
RemoveBuildingForPlayer(playerid, 2188, 2241.3125, 1602.7500, 1006.1563, 10000.0); RemoveBuildingForPlayer(playerid, 2188, 2241.3125, 1602.7500, 1006.1563, 10000.0);
// Remove all poker machines
RemoveBuildingForPlayer(playerid, 2786, 2259.2188, 1596.4844, 1006.0156, 10000.0);
RemoveBuildingForPlayer(playerid, 2785, 2258.2578, 1596.4766, 1006.0156, 10000.0);
RemoveBuildingForPlayer(playerid, 2098, 1941.5234, 1006.3828, 993.4141, 0.25);
RemoveBuildingForPlayer(playerid, 2098, 1940.3906, 1014.2031, 993.4141, 0.25);
RemoveBuildingForPlayer(playerid, 2098, 1940.3906, 1021.4141, 993.4141, 0.25);
RemoveBuildingForPlayer(playerid, 2098, 1968.0938, 1006.3594, 993.4063, 0.25);
RemoveBuildingForPlayer(playerid, 2098, 1968.0938, 1013.9844, 993.4063, 0.25);
RemoveBuildingForPlayer(playerid, 2098, 1968.0938, 1021.6797, 993.4063, 0.25);
RemoveBuildingForPlayer(playerid, 2098, 1941.2188, 1029.2969, 993.4141, 0.25);
RemoveBuildingForPlayer(playerid, 2098, 1968.0938, 1029.5391, 993.4063, 0.25);
// TDK HQ // TDK HQ
RemoveBuildingForPlayer(playerid, 6937, 2572.2422, 2703.9609, 19.0234, 0.25); RemoveBuildingForPlayer(playerid, 6937, 2572.2422, 2703.9609, 19.0234, 0.25);
RemoveBuildingForPlayer(playerid, 7038, 2527.8203, 2703.9609, 10.8203, 0.25); RemoveBuildingForPlayer(playerid, 7038, 2527.8203, 2703.9609, 10.8203, 0.25);

View File

@ -6507,123 +6507,4 @@ stock initializeServerObjects( )
CreateDynamicObject( 19324, 1989.635253, 1032.391113, 994.097290, 0.000000, 0.000000, 0.000000 ); CreateDynamicObject( 19324, 1989.635253, 1032.391113, 994.097290, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19324, 2241.676269, 1647.986816, 1007.979003, 0.000000, 0.000000, -90.000000 ); CreateDynamicObject( 19324, 2241.676269, 1647.986816, 1007.979003, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 19324, 2230.132324, 1649.486816, 1007.979003, 0.000000, 0.000000, 90.000000 ); CreateDynamicObject( 19324, 2230.132324, 1649.486816, 1007.979003, 0.000000, 0.000000, 90.000000 );
// Visage Apartment
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 2008.661743, 1914.424804, 79.601951, 0.000000, 0.000000, 0.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1994.449218, 1884.952758, 79.601951, 0.000000, 0.000000, 0.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 2004.888793, 1884.992919, 85.264495, 0.000000, 0.000000, 90.000000 ), 0, 11631, "mp_ranchcut", "CJ_FRAME_Glass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1982.909790, 1913.835815, 83.722656, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1995.665649, 1915.413085, 84.282653, 0.000000, 0.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1979.837280, 1895.915283, 84.282653, 0.000000, 0.000000, 0.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1993.625000, 1901.715698, 78.544792, 0.000000, 90.000000, 90.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1991.619384, 1903.713989, 83.722656, 0.000000, 90.000000, 0.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1993.621337, 1901.721191, 83.722656, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1982.911743, 1909.958740, 88.692619, 0.000000, 0.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1991.613647, 1903.726074, 78.544792, 0.000000, 90.000000, 0.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1982.909790, 1905.994750, 83.722656, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
CreateDynamicObject( 19273, 1983.361083, 1911.785644, 84.628677, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 948, 1983.600341, 1914.543701, 83.288696, 0.000000, 0.000000, 0.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1981.448242, 1893.984619, 84.282653, 0.000000, 0.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1993.454833, 1887.915161, 78.544792, 0.000000, 90.000000, 90.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1993.446777, 1887.917114, 78.544792, 0.000000, 90.000000, 90.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1981.458862, 1893.979125, 83.034774, 0.000000, 90.000000, 0.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1981.468872, 1893.989135, 83.034774, 0.000000, 90.000000, 0.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1993.621337, 1896.980468, 92.282592, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1986.308105, 1903.982910, 89.782653, 0.000000, 0.000000, 0.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
CreateDynamicObject( 2137, 1980.834960, 1895.928710, 83.250732, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 2305, 1980.834960, 1894.977783, 83.250732, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 2137, 1980.834960, 1896.908447, 83.250732, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 2135, 1980.834960, 1897.899414, 83.250732, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 2135, 1980.834960, 1898.888183, 83.250732, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 2137, 1981.825927, 1894.976562, 83.250732, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 2137, 1982.806640, 1894.976562, 83.250732, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 2136, 1984.778564, 1894.976562, 83.250732, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 2137, 1984.776855, 1894.976562, 83.250732, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 2137, 1980.834960, 1899.878417, 83.250732, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 2137, 1980.834960, 1900.869384, 83.250732, 0.000000, 0.000000, 90.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1985.770263, 1894.721191, 71.800598, 0.000000, 0.000000, 180.000000 ), 0, 14424, "dr_gsnew", "mp_gs_kitchwall", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1985.770263, 1895.721191, 71.800598, 0.000000, 0.000000, 180.000000 ), 0, 14424, "dr_gsnew", "mp_gs_kitchwall", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1985.770263, 1896.721191, 71.800598, 0.000000, 0.000000, 180.000000 ), 0, 14424, "dr_gsnew", "mp_gs_kitchwall", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1985.770263, 1897.721191, 71.800598, 0.000000, 0.000000, 180.000000 ), 0, 14424, "dr_gsnew", "mp_gs_kitchwall", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1985.770263, 1898.721191, 71.800598, 0.000000, 0.000000, 180.000000 ), 0, 14424, "dr_gsnew", "mp_gs_kitchwall", -16 );
CreateDynamicObject( 1739, 1986.796630, 1898.349609, 84.180664, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1739, 1986.796630, 1897.000000, 84.170654, 0.000000, 0.000000, 12.399991 );
CreateDynamicObject( 1739, 1986.796630, 1895.768798, 84.180664, 0.000000, 0.000000, -22.099998 );
CreateDynamicObject( 2139, 1984.762695, 1898.737792, 83.230712, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 2139, 1984.762695, 1897.768066, 83.230712, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 2139, 1984.762695, 1896.787353, 83.230712, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 2139, 1984.762695, 1895.806640, 83.230712, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 2139, 1984.762695, 1894.827148, 83.230712, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 2140, 1982.893066, 1902.996582, 83.292724, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 2140, 1981.561767, 1902.996582, 83.292724, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 11744, 1986.031005, 1898.284179, 84.330688, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 11744, 1986.031005, 1897.073974, 84.330688, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 11744, 1986.031005, 1895.782958, 84.330688, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 11707, 1984.501708, 1897.107910, 84.120666, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 19940, 1992.918212, 1900.991699, 84.790649, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19940, 1990.614746, 1903.052856, 84.790649, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 19822, 1992.904296, 1900.227783, 84.790649, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19821, 1992.904296, 1900.448242, 84.790649, 0.000000, 0.000000, 43.199996 );
CreateDynamicObject( 19820, 1992.892089, 1900.710937, 84.790649, 0.000000, 0.000000, 43.199996 );
CreateDynamicObject( 19822, 1992.904296, 1901.708496, 84.790649, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19824, 1992.904296, 1901.508300, 84.800659, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19822, 1989.802978, 1903.079833, 84.790649, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19824, 1990.043212, 1903.019775, 84.790649, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19820, 1990.343505, 1903.059814, 84.790649, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19821, 1990.864013, 1903.079833, 84.790649, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19824, 1991.333251, 1903.079833, 84.790649, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1544, 1992.956298, 1901.189453, 84.790588, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1543, 1992.956298, 1900.969238, 84.790588, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1544, 1990.605468, 1903.050048, 84.790588, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1543, 1991.135986, 1903.100097, 84.790588, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1808, 1988.953369, 1894.689208, 83.272491, 0.000000, 0.000000, 180.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1993.451171, 1887.909912, 83.722656, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 2008.661743, 1884.971435, 79.601951, 0.000000, 0.000000, 0.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 1998.248657, 1884.992919, 85.264495, 0.000000, 0.000000, 90.000000 ), 0, 11631, "mp_ranchcut", "CJ_FRAME_Glass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 2008.669921, 1888.752929, 85.264495, 0.000000, 0.000000, 0.000000 ), 0, 11631, "mp_ranchcut", "CJ_FRAME_Glass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 2008.669921, 1910.636108, 85.264495, 0.000000, 0.000000, 0.000000 ), 0, 11631, "mp_ranchcut", "CJ_FRAME_Glass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 2008.669921, 1895.393188, 85.264495, 0.000000, 0.000000, 0.000000 ), 0, 11631, "mp_ranchcut", "CJ_FRAME_Glass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 2008.669921, 1903.994750, 85.264495, 0.000000, 0.000000, 0.000000 ), 0, 11631, "mp_ranchcut", "CJ_FRAME_Glass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 2008.671508, 1899.891967, 85.841941, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1996.665649, 1896.968994, 87.758689, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1996.665649, 1921.847900, 87.758689, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1971.665649, 1896.968994, 87.758689, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1971.665649, 1921.847900, 87.758689, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19454, 2008.238403, 1899.906250, 84.982055, 90.000000, 0.000000, 0.000000 ), 0, 18029, "genintintsmallrest", "GB_restaursmll05", -69904 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 1990.859985, 1884.992919, 85.264495, 0.000000, 0.000000, 90.000000 ), 0, 11631, "mp_ranchcut", "CJ_FRAME_Glass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 1984.218017, 1884.992919, 85.264495, 0.000000, 0.000000, 90.000000 ), 0, 11631, "mp_ranchcut", "CJ_FRAME_Glass", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1980.809814, 1884.961425, 79.601959, 0.000000, 0.000000, 0.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
CreateDynamicObject( 11727, 2008.314941, 1904.036865, 87.240608, 90.000000, 90.000000, 0.000000 );
CreateDynamicObject( 11727, 2008.314941, 1907.036865, 87.240608, 90.000000, 90.000000, 0.000000 );
CreateDynamicObject( 11727, 2008.314941, 1910.036865, 87.240608, 90.000000, 90.000000, 0.000000 );
CreateDynamicObject( 11727, 2008.314941, 1913.036865, 87.240608, 90.000000, 90.000000, 0.000000 );
CreateDynamicObject( 11727, 2008.314941, 1895.664550, 87.240608, 90.000000, 90.000000, 0.000000 );
CreateDynamicObject( 11727, 2008.314941, 1892.664550, 87.240608, 90.000000, 90.000000, 0.000000 );
CreateDynamicObject( 11727, 2008.314941, 1889.664550, 87.240608, 90.000000, 90.000000, 0.000000 );
CreateDynamicObject( 11727, 2008.314941, 1886.664550, 87.240608, 90.000000, 90.000000, 0.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1980.878051, 1904.002807, 83.722656, 0.000000, 90.000000, 0.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
CreateDynamicObject( 638, 1983.773315, 1905.277221, 83.990600, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 18756, 1985.204223, 1909.457153, 85.249107, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 18757, 1985.200561, 1909.448852, 85.244979, 0.000000, 0.000000, 0.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1992.364257, 1902.420532, 82.782791, 0.000000, 90.000000, 0.000000 ), 0, 15048, "labigsave", "ah_carp1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1996.164916, 1902.420532, 82.776794, 0.000000, 90.000000, 0.000000 ), 0, 15048, "labigsave", "ah_carp1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1996.164916, 1897.489624, 82.772796, 0.000000, 90.000000, 0.000000 ), 0, 15048, "labigsave", "ah_carp1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1992.364257, 1897.498657, 82.784790, 0.000000, 90.000000, 0.000000 ), 0, 15048, "labigsave", "ah_carp1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1995.770019, 1915.411010, 83.034774, 0.000000, 90.000000, 0.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1982.918823, 1915.986816, 83.034774, 0.000000, 90.000000, 90.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1979.847045, 1907.206665, 83.034774, 0.000000, 90.000000, 90.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 2008.652221, 1902.449829, 83.026802, 0.000000, 90.000000, 90.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 2008.654174, 1897.488403, 83.028800, 0.000000, 90.000000, 90.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1995.774536, 1884.966796, 83.028800, 0.000000, 90.000000, 0.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1970.775024, 1884.966796, 83.028800, 0.000000, 90.000000, 0.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1993.734741, 1884.956787, 83.032798, 0.000000, 90.000000, 0.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1995.676635, 1884.956787, 83.036796, 0.000000, 90.000000, 0.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 2008.664184, 1897.918579, 83.038803, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 2008.664184, 1922.916625, 83.038803, 0.000000, 90.000000, 90.000000 ), 0, 16150, "ufo_bar", "GEwhite1_64", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1979.838256, 1897.928344, 83.028800, 0.000000, 90.000000, 90.000000 ), 0, 14388, "dr_gsnew", "AH_flroortile12", -16 );
// SetDynamicObjectMaterial( CreateDynamicObject( 19325, 2008.666381, 1910.623046, 88.076812, 0.000000, 0.000000, 0.000000 ), 0, 14902, "gen_pol_vegas", "pol_win_kb", -16 );
// SetDynamicObjectMaterial( CreateDynamicObject( 19325, 2008.666381, 1904.011840, 85.476821, 0.000000, 0.000000, 0.000000 ), 0, 14902, "gen_pol_vegas", "pol_win_kb", -16 );
// SetDynamicObjectMaterial( CreateDynamicObject( 19325, 2008.666381, 1888.762329, 87.976814, 0.000000, 0.000000, 0.000000 ), 0, 14902, "gen_pol_vegas", "pol_win_kb", -16 );
// SetDynamicObjectMaterial( CreateDynamicObject( 19325, 2008.666381, 1895.392089, 85.476814, 0.000000, 0.000000, 0.000000 ), 0, 14902, "gen_pol_vegas", "pol_win_kb", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19454, 1994.047973, 1901.686523, 85.392059, 90.000000, 0.000000, 0.000000 ), 0, 18029, "genintintsmallrest", "GB_restaursmll05", -69904 );
} }

View File

@ -5,7 +5,7 @@ maxplayers 325
port 7777 port 7777
hostname » Call of Duty For SA-MP (0.3.7) « hostname » Call of Duty For SA-MP (0.3.7) «
gamemode0 sf-cnr 1 gamemode0 sf-cnr 1
filterscripts poker filterscripts
announce 0 announce 0
query 1 query 1
weburl www.sa-mp.com weburl www.sa-mp.com
@ -14,7 +14,7 @@ incar_rate 40
weapon_rate 40 weapon_rate 40
stream_distance 300.0 stream_distance 300.0
stream_rate 1000 stream_rate 1000
plugins crashdetect mysql Whirlpool regex gvar FileManager FCNPC mapandreas RouteConnectorPlugin sampac sscanf streamer TPoker plugins crashdetect mysql Whirlpool regex gvar FileManager FCNPC mapandreas sscanf streamer sampac RouteConnectorPlugin TPoker
maxnpc 200 maxnpc 200
logtimeformat [%H:%M:%S] logtimeformat [%H:%M:%S]
language All language All