This commit is contained in:
Lorenc 2017-04-16 05:49:38 +10:00
parent b146aa9dae
commit fb573066db
4 changed files with 2208 additions and 1459 deletions

View File

@ -13,308 +13,29 @@ stock tmpVariable;
public OnFilterScriptInit() public OnFilterScriptInit()
{ {
// Liv Entrance // Zach Garage
SetDynamicObjectMaterial( CreateDynamicObject( 18981, -1620.385498, 1074.161499, 7.046798, 0.000000, 0.000000, 0.000000 ), 0, 12923, "sw_block05", "sw_wallbrick_06", 0 ); SetDynamicObjectMaterialText(CreateDynamicObject(17072, -41.19690, -1113.12695, 4.62810, 0.00000, 0.00000, -24.00000), 3, " ", 140, "Arial", 64, 1, -32256, 0, 1);
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1030.832885, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 ); return 1;
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1031.822875, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 ); }
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1038.794921, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1039.785888, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1046.796630, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1047.786865, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1054.790527, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1055.771484, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.155029, 1043.545776, 13.317501, 0.000000, -90.000000, 90.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
CreateDynamicObject( 3525, -1619.450927, 1031.315917, 7.839063, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3471, -1618.692260, 1047.278442, 7.149063, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3471, -1618.692260, 1039.217163, 7.149063, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3525, -1619.450927, 1055.288818, 7.839063, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 17951, -1619.889282, 1083.247680, 7.927502, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 17951, -1619.889282, 1075.208618, 7.927502, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 17951, -1619.889282, 1067.257934, 7.927502, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 17951, -1619.889282, 1059.277832, 7.927502, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 17951, -1619.889282, 1027.337402, 7.927502, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 17951, -1619.889282, 1019.317565, 7.927502, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 17951, -1619.889282, 1011.277709, 7.927502, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 638, -1617.368774, 1039.254516, 6.609055, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 638, -1618.989257, 1038.293579, 6.609055, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 638, -1618.989257, 1040.265136, 6.609055, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 638, -1617.368774, 1047.306274, 6.609055, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 638, -1618.989257, 1046.327880, 6.609055, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 638, -1618.989257, 1048.289428, 6.609055, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 1491, -1619.903198, 1041.870849, 6.146790, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 1491, -1619.923217, 1044.891845, 6.146790, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 1557, -1619.884277, 1033.802978, 6.159057, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 1557, -1619.884277, 1036.822875, 6.159057, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 1557, -1619.884277, 1052.964721, 6.159057, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 1557, -1619.884277, 1049.952758, 6.159057, 0.000000, 0.000000, 90.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1022.822387, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1023.802978, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1015.752441, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1014.771728, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1007.770263, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1062.775268, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1063.765991, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1070.746582, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1071.727172, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1078.738159, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1079.728759, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.121459, 1086.759521, 1.209059, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.145019, 1018.465515, 13.317501, 0.000000, -90.000000, 90.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.145019, 1074.493164, 13.317501, 0.000000, -90.000000, 90.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, -1620.145019, 1049.504028, 13.317501, 0.000000, -90.000000, 90.000000 ), 0, 13691, "bevcunto2_lahills", "stonewall3_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, -1620.385498, 1049.161376, 7.046798, 0.000000, 0.000000, 0.000000 ), 0, 12923, "sw_block05", "sw_wallbrick_06", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, -1620.385498, 1024.181884, 7.046798, 0.000000, 0.000000, 0.000000 ), 0, 12923, "sw_block05", "sw_wallbrick_06", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, -1620.385498, 999.192260, 7.046798, 0.000000, 0.000000, 0.000000 ), 0, 12923, "sw_block05", "sw_wallbrick_06", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19369, -1618.217163, 1043.370361, 6.099058, 0.000000, -90.000000, 0.000000 ), 0, 8839, "vgsecarshow", "lightred2_32", -4012 );
CreateDynamicObject( 3525, -1619.731201, 1041.104370, 7.839063, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3525, -1619.731201, 1045.614990, 7.839063, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3525, -1619.450927, 1023.255676, 7.839063, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3525, -1619.450927, 1015.263854, 7.839063, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3525, -1619.450927, 1063.247802, 7.839063, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3525, -1619.450927, 1071.229125, 7.839063, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3525, -1619.450927, 1079.239379, 7.839063, 0.000000, 0.000000, 90.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, -1621.487304, 1043.385253, 6.387504, 0.000000, 0.000000, 0.000000 ), 0, 0, "0", "0", 0 );
CreateDynamicObject( 3850, -1618.161621, 1044.973388, 6.709060, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3850, -1618.161621, 1041.783935, 6.709060, 0.000000, 0.000000, 90.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, -1621.370361, 1041.890258, 4.809062, 0.000000, 0.000000, 0.000000 ), 0, 0, "0", "0", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, -1621.370361, 1044.941406, 4.809062, 0.000000, 0.000000, 0.000000 ), 0, 0, "0", "0", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19369, -1614.716796, 1043.370361, 6.099058, 0.000000, -90.000000, 0.000000 ), 0, 8839, "vgsecarshow", "lightred2_32", -4012 );
SetDynamicObjectMaterial( CreateDynamicObject( 19369, -1613.205444, 1043.370361, 6.109057, 0.000000, -90.000000, 0.000000 ), 0, 8839, "vgsecarshow", "lightred2_32", -4012 );
CreateDynamicObject( 19590, -1619.729370, 1043.269775, 8.927329, -45.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19590, -1619.729370, 1043.516845, 8.920262, -135.000000, 180.000000, 0.000000 );
CreateDynamicObject( 18649, -1620.009277, 1041.581542, 6.199059, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 18649, -1619.959228, 1044.972778, 6.199059, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 18649, -1620.029296, 1043.381713, 6.199059, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 18647, -1619.946533, 1041.327270, 12.799061, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 18647, -1619.926635, 1043.317626, 12.799061, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 18647, -1619.986572, 1045.297241, 12.799061, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 18850, -1640.320800, 1047.854003, 57.403545, 0.000000, 0.000000, 0.000000 );
// Tiziano Ammunation Rooftop CMD:cakeiscool( playerid, params[] )
CreateDynamicObject( 1557, 1426.383789, -1296.077636, 12.514680, 0.000000, 0.000000, 90.000000 ); {
CreateDynamicObject( 1557, 1426.383789, -1293.057128, 12.514680, 0.000000, 0.000000, -90.000000 ); RemoveBuildingForPlayer(playerid, 9968, -1683.1406, 786.0938, 38.8203, 0.25);
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 1394.601928, -1255.077758, 33.518424, 0.000000, 0.000000, 0.000000 ), 0, 5134, "wasteland_las2", "ws_bigstones", 0 ); RemoveBuildingForPlayer(playerid, 10057, -1669.2188, 723.4688, 57.5469, 0.25);
CreateDynamicObject( 1557, 1393.096069, -1257.535522, 32.542095, 0.000000, 0.000000, 0.000000 ); RemoveBuildingForPlayer(playerid, 10049, -1683.1406, 786.0938, 38.8203, 0.25);
CreateDynamicObject( 1557, 1396.117675, -1257.535522, 32.542095, 0.000000, 0.000000, 180.000000 ); return 1;
CreateDynamicObject( 3528, 1435.123779, -1294.101074, 41.968952, 0.000000, 0.000000, 155.900039 ); }
CreateDynamicObject( 3934, 1406.011108, -1269.684448, 32.557853, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3934, 1406.011108, -1285.165161, 32.557853, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3934, 1382.091064, -1269.684448, 32.557853, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3934, 1382.051147, -1285.165161, 32.557853, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 16644, 1411.750122, -1276.751708, 31.736734, 0.000000, -14.400001, 3.000000 );
CreateDynamicObject( 3934, 1433.513061, -1263.266479, 34.275009, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3934, 1433.513061, -1275.865722, 34.275009, 0.000000, 0.000000, 0.000000 );
// iTrippy LS HQ CMD:warehouseshit(playerid, params[])
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1284.359985, -2034.327392, 53.861305, 0.000000, 0.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 ); {
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1284.360961, -2015.122314, 53.862304, 0.000000, 0.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 ); RemoveBuildingForPlayer(playerid, 17350, -54.9922, -1130.7266, 4.5781, 0.25);
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1272.362060, -2003.090576, 53.862304, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 ); RemoveBuildingForPlayer(playerid, 17072, -54.9922, -1130.7266, 4.5781, 0.25);
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1247.422119, -2003.109619, 53.863304, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 ); RemoveBuildingForPlayer(playerid, 17073, -56.1250, -1130.1719, 4.4922, 0.25);
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1228.301513, -2003.109619, 59.183357, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 ); RemoveBuildingForPlayer(playerid, 1415, -68.3516, -1104.9922, 0.2188, 0.25);
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1137.463134, -2001.107177, 71.654350, 0.000000, 90.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 ); RemoveBuildingForPlayer(playerid, 1462, -60.3594, -1116.9375, 0.2578, 0.25);
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1137.463134, -1995.656982, 71.654350, 0.000000, 90.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 ); RemoveBuildingForPlayer(playerid, 1438, -63.6719, -1125.6953, 0.0469, 0.25);
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1137.464111, -1997.866210, 71.654350, 0.000000, 90.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 ); RemoveBuildingForPlayer(playerid, 1438, -63.4141, -1115.4141, 0.0469, 0.25);
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1116.150146, -1993.640502, 64.204544, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 ); RemoveBuildingForPlayer(playerid, 1415, -63.8125, -1106.4219, 0.2188, 0.25);
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1104.151611, -1996.617919, 71.654350, 0.000000, 90.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1104.150024, -2011.623413, 64.164337, 0.000000, 0.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1102.151245, -2024.489379, 71.654350, 0.000000, 90.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1098.030273, -2024.488403, 71.655349, 0.000000, 90.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 1094.741943, -2024.673583, 69.657852, 0.000000, 0.000000, 90.000000 ), 0, 16646, "a51_alpha", "stanwind_nt", -16777216 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 1088.500976, -2026.252929, 69.657852, 0.000000, 0.000000, 118.399963 ), 0, 16646, "a51_alpha", "stanwind_nt", -16777216 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 1084.568725, -2029.871215, 68.407859, 90.000000, 0.000000, 146.400024 ), 0, 16646, "a51_alpha", "stanwind_nt", -16777216 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 1082.483520, -2034.487915, 68.407859, 90.000000, 0.000000, 163.200012 ), 0, 16646, "a51_alpha", "stanwind_nt", -16777216 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 1082.481445, -2039.773071, 68.407859, 90.000000, 0.000000, -162.599929 ), 0, 16646, "a51_alpha", "stanwind_nt", -16777216 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 1084.553588, -2044.410888, 68.407859, 90.000000, 0.000000, -146.799987 ), 0, 16646, "a51_alpha", "stanwind_nt", -16777216 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 1088.521484, -2048.040039, 68.407859, 90.000000, 25.900003, -144.099884 ), 0, 16646, "a51_alpha", "stanwind_nt", -16777216 );
SetDynamicObjectMaterial( CreateDynamicObject( 19325, 1094.186645, -2049.667724, 68.407859, 90.000000, 25.900003, -115.200065 ), 0, 16646, "a51_alpha", "stanwind_nt", -16777216 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1215.571166, -2003.109619, 64.203346, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1190.571655, -2003.109619, 64.203346, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1165.591918, -2003.109619, 64.203346, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 1258.572753, -2029.714233, 57.592128, 0.000000, 0.000000, 0.000000 ), 0, 13724, "docg01_lahills", "concretenewb256", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 1258.572753, -2029.714233, 57.593128, 0.000000, 0.000000, 22.500000 ), 0, 13724, "docg01_lahills", "concretenewb256", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 1258.572753, -2029.714233, 57.594127, 0.000000, 0.000000, -22.500000 ), 0, 13724, "docg01_lahills", "concretenewb256", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 1258.572753, -2029.714233, 57.596126, 0.000000, 0.000000, -45.000000 ), 0, 13724, "docg01_lahills", "concretenewb256", -16 );
CreateDynamicObject( 1622, 1123.066162, -2040.592529, 74.046661, 0.000000, -10.399991, 171.200057 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1147.352905, -2011.207763, 66.277725, 0.000000, 0.000000, 90.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1156.982666, -2011.207763, 66.277725, 0.000000, 0.000000, 90.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1161.713989, -2015.948120, 66.277725, 0.000000, 0.000000, 0.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19387, 1161.713989, -2022.368530, 69.787742, 0.000000, 0.000000, 0.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1156.982666, -2023.887939, 66.277725, 0.000000, 0.000000, 90.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1151.371582, -2019.147094, 66.277725, 0.000000, 0.000000, 0.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1147.352905, -2014.399414, 66.277725, 0.000000, 0.000000, 90.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19387, 1142.624023, -2012.778808, 69.757743, 0.000000, 0.000000, 0.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19355, 1144.299560, -2012.822998, 67.947761, 0.000000, 90.000000, 0.000000 ), 0, 3267, "milbase", "sam_camo", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19355, 1150.581542, -2012.822998, 67.947761, 0.000000, 90.000000, 0.000000 ), 0, 3267, "milbase", "sam_camo", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19355, 1147.529296, -2012.822998, 67.948760, 0.000000, 90.000000, 0.000000 ), 0, 3267, "milbase", "sam_camo", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1156.539672, -2019.144775, 67.947761, 0.000000, 90.000000, 0.000000 ), 0, 3267, "milbase", "sam_camo", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1156.102661, -2023.897705, 66.277923, 0.000000, 0.000000, 90.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1156.539672, -2016.053100, 67.948760, 0.000000, 90.000000, 0.000000 ), 0, 3267, "milbase", "sam_camo", -16 );
CreateDynamicObject( 3525, 1161.922607, -2021.151977, 69.510604, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3525, 1161.922607, -2023.603027, 69.510604, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 638, 1158.424926, -2024.346191, 68.680618, 0.000000, 0.000000, 90.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1149.472412, -2003.108642, 64.204345, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
CreateDynamicObject( 3471, 1130.117309, -2043.335815, 69.027816, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3471, 1130.135986, -2030.755371, 69.007812, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3934, 1115.808715, -2021.224121, 73.419700, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 2985, 1125.351684, -2043.779907, 74.819656, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 2985, 1125.416137, -2029.651855, 74.789695, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1569, 1114.583251, -2043.170776, 73.409652, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3092, 1161.888671, -2075.983154, 68.990196, 0.000000, -0.199999, -148.300033 );
SetDynamicObjectMaterial( CreateDynamicObject( 19387, 1193.974853, -2052.418457, 69.770614, 0.000000, 0.000000, 0.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1198.740112, -2053.925048, 66.250625, 0.000000, 0.000000, 90.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1193.985717, -2045.997802, 66.277832, 0.000000, 0.000000, 180.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1198.723022, -2041.259399, 66.277725, 0.000000, 0.000000, 90.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1203.488159, -2049.088867, 66.217834, 0.000000, 0.000000, 0.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1203.486694, -2046.124023, 66.227821, 0.000000, 0.000000, 0.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1198.744262, -2046.482177, 67.927772, 0.000000, 90.000000, 90.000000 ), 0, 18265, "w_town3cs_t", "boardwalk_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1198.744018, -2048.715332, 67.933670, 0.000000, 90.000000, 90.000000 ), 0, 18265, "w_town3cs_t", "boardwalk_la", 0 );
CreateDynamicObject( 16151, 1199.037353, -2042.617919, 68.379638, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 1491, 1193.929931, -2051.630859, 68.007720, -0.099999, 0.000000, -91.499984 );
CreateDynamicObject( 1895, 1194.191650, -2048.378173, 69.899627, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 2188, 1195.175903, -2048.400390, 69.029624, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 1819, 1201.864501, -2053.385742, 68.029594, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1575, 1202.444213, -2053.011230, 68.569633, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1575, 1202.378540, -2052.599121, 68.569633, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1828, 1198.631225, -2048.697998, 67.999633, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1775, 1202.923583, -2047.916259, 69.019645, 0.000000, 0.000000, 270.000000 );
CreateDynamicObject( 956, 1202.987792, -2050.258300, 68.409629, 0.000000, 0.000000, 270.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1198.744018, -2048.715332, 71.523612, 0.000000, 90.000000, 90.000000 ), 0, 9583, "bigshap_sfw", "shipceiling_sfw", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1198.744018, -2046.423217, 71.513610, 0.000000, 90.000000, 90.000000 ), 0, 9583, "bigshap_sfw", "shipceiling_sfw", 0 );
CreateDynamicObject( 1550, 1202.343139, -2043.241210, 69.379615, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 2690, 1194.201904, -2050.489013, 69.849601, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 8572, 1192.987304, -2044.162109, 70.187828, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 3525, 1193.716430, -2049.965820, 69.007812, 0.000000, 0.000000, 270.000000 );
CreateDynamicObject( 3934, 1198.575439, -2046.971923, 71.599563, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 2714, 1193.846069, -2052.421875, 70.927780, 0.000000, 0.000000, 270.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1198.744018, -2059.204833, 71.523612, 0.000000, 90.000000, 90.000000 ), 0, 9385, "bigshap_sfw", "shipceiling_sfw", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1189.121093, -2059.204833, 71.523612, 0.000000, 90.000000, 90.000000 ), 0, 9385, "bigshap_sfw", "shipceiling_sfw", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1198.744018, -2059.185791, 67.933670, 0.000000, 90.000000, 90.000000 ), 0, 18265, "w_town3cs_t", "boardwalk_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1189.111938, -2059.195800, 67.923675, 0.000000, 90.000000, 90.000000 ), 0, 18265, "w_town3cs_t", "boardwalk_la", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1198.740112, -2064.361083, 66.360572, 0.000000, 0.000000, 90.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1189.106323, -2064.361083, 66.360572, 0.000000, 0.000000, 90.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1203.488281, -2058.729003, 66.360572, 0.000000, 0.000000, 0.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1203.478271, -2059.629882, 66.360572, 0.000000, 0.000000, 0.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", 0 );
CreateDynamicObject( 638, 1154.524780, -2024.346191, 68.680618, 0.000000, 0.000000, 90.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1116.177856, -1993.640747, 64.204345, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1149.670043, -2071.650146, 64.553291, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 1286.793823, -2063.970703, 54.102241, 0.000000, 90.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
CreateDynamicObject( 8550, 1153.991699, -2052.855224, 72.166267, 0.000000, 0.000000, 0.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18762, 1184.808105, -2054.455078, 68.937812, 0.000000, 0.000000, 0.000000 ), 0, 12962, "sw_apartflat", "newall10_seamless", -1 );
CreateDynamicObject( 3934, 1189.585449, -2059.315185, 71.599563, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1723, 1158.592773, -2012.386962, 67.974716, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1569, 1117.574707, -2043.170776, 73.409652, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 1723, 1160.602661, -2017.027832, 67.974716, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 1723, 1156.712646, -2015.747924, 67.974716, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 19786, 1161.685424, -2014.651489, 69.684707, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 19831, 1153.091186, -2023.487426, 68.024688, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 19831, 1151.750366, -2022.226806, 68.024688, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 18693, 1151.840454, -2022.066650, 67.274703, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 18693, 1151.840454, -2022.386840, 67.274703, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 18693, 1152.921020, -2023.487426, 67.254707, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 18693, 1153.291381, -2023.487426, 67.254707, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 19319, 1161.630493, -2019.519653, 69.819595, 0.000000, -45.000000, -90.000000 );
CreateDynamicObject( 19319, 1161.630493, -2019.335693, 69.734733, 0.000000, 45.000000, -90.000000 );
CreateDynamicObject( 2332, 1161.279052, -2018.952148, 68.484657, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 2332, 1161.279052, -2019.772094, 68.484657, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 19937, 1151.688476, -2015.266723, 67.984626, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19937, 1152.428955, -2014.526000, 67.985626, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 19937, 1153.189086, -2015.266723, 67.984626, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19937, 1151.688476, -2017.166503, 67.984626, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19937, 1151.688476, -2019.076538, 67.984626, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19937, 1153.189086, -2017.166381, 67.984626, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 19937, 1153.189086, -2019.057006, 67.984626, 0.000000, 0.000000, 0.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 2662, 1151.497680, -2015.371826, 69.464660, 0.000000, 0.000000, 90.000000 ), 0, 10631, "queensammo_sfs", "ammu_boots", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 2662, 1151.497680, -2017.121948, 69.464660, 0.000000, 0.000000, 90.000000 ), 0, 10631, "queensammo_sfs", "ammu_gunboard3", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 2662, 1151.497680, -2015.371826, 70.434661, 0.000000, 0.000000, 90.000000 ), 0, 10631, "queensammo_sfs", "ammu_gunboard3", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 2662, 1151.497680, -2017.121948, 70.434661, 0.000000, 0.000000, 90.000000 ), 0, 10631, "queensammo_sfs", "ammu_gunboard3", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 2662, 1151.497680, -2018.892456, 70.434661, 0.000000, 0.000000, 90.000000 ), 0, 10631, "queensammo_sfs", "ammu_gunboard3", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 2662, 1151.497680, -2018.891967, 69.479660, 0.000000, 0.000000, 90.000000 ), 0, 10631, "queensammo_sfs", "ammu_boots", -16 );
CreateDynamicObject( 2040, 1153.144409, -2018.308105, 69.154701, 0.000000, 0.000000, 10.800000 );
CreateDynamicObject( 2040, 1153.209960, -2018.769042, 69.154701, 0.000000, 0.000000, -6.799999 );
CreateDynamicObject( 18707, 1174.923095, -2037.049804, 78.076255, 0.000000, 180.000000, 0.000000 );
CreateDynamicObject( 18707, 1174.923095, -2037.049804, 78.076255, 0.000000, 180.000000, 180.000000 );
CreateDynamicObject( 357, 1153.138061, -2017.395019, 69.034706, 90.000000, 90.000000, 0.000000 );
CreateDynamicObject( 2985, 1153.372070, -2020.444580, 67.964965, -13.899995, 0.000000, 20.899997 );
CreateDynamicObject( 1502, 1161.759521, -2021.591186, 68.047828, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 1502, 1142.579101, -2011.989990, 68.047828, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 638, 1162.255004, -2017.861206, 68.757804, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 638, 1162.255004, -2015.201904, 68.757804, 0.000000, 0.000000, 0.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1156.539672, -2019.144775, 71.397773, 0.000000, 90.000000, 0.000000 ), 0, 8954, "vgsespras", "sf_spray_floor2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19377, 1156.539672, -2016.013916, 71.395774, 0.000000, 90.000000, 0.000000 ), 0, 8954, "vgsespras", "sf_spray_floor2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19355, 1149.548217, -2012.813476, 71.395774, 0.000000, 90.000000, 0.000000 ), 0, 8954, "vgsespras", "sf_spray_floor2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19355, 1146.067382, -2012.813476, 71.395774, 0.000000, 90.000000, 0.000000 ), 0, 8954, "vgsespras", "sf_spray_floor2", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 19355, 1144.368164, -2012.813476, 71.394775, 0.000000, 90.000000, 0.000000 ), 0, 8954, "vgsespras", "sf_spray_floor2", -16 );
CreateDynamicObject( 8614, 1150.385375, -2018.995849, 70.287780, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 8550, 1195.902465, -2019.155517, 72.166267, 0.000000, 0.000000, 0.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1248.257568, -2016.025756, 58.688190, 0.000000, 90.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "ws_patio1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1275.203002, -2065.971435, 53.862304, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1255.402709, -2065.970458, 53.863304, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1243.381835, -2068.964355, 61.372390, 0.000000, 90.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1231.389404, -2071.651123, 53.862304, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1224.881591, -2071.650146, 59.783348, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1215.979980, -2071.651123, 64.552291, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1191.000854, -2071.651123, 64.552291, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1166.012695, -2071.651123, 64.552291, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1137.660766, -2074.403564, 72.052391, 0.000000, 90.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1137.661743, -2078.326416, 72.052391, 0.000000, 90.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1116.652343, -2080.329101, 64.552291, 0.000000, 0.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1104.150634, -2068.333007, 64.552291, 0.000000, 0.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1104.151611, -2062.347656, 64.552291, 0.000000, 0.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1099.362060, -2049.476074, 68.032241, 0.000000, 90.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1102.144287, -2049.476074, 72.042228, 0.000000, 90.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18766, 1099.362792, -2049.475097, 72.043228, 0.000000, 90.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1272.353759, -2016.025756, 58.688587, 0.000000, 90.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "ws_patio1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1248.257568, -2053.904296, 58.688190, 0.000000, 90.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "ws_patio1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1248.257568, -2035.135986, 58.692188, 0.000000, 90.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "ws_patio1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 1240.444091, -2068.856933, 56.682373, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "ws_patio1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 1235.482543, -2068.856933, 56.682373, 0.000000, 0.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "ws_patio1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1272.108276, -2053.904296, 58.679187, 0.000000, 90.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "ws_patio1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18981, 1271.849487, -2040.430908, 58.690189, 0.000000, 90.000000, 0.000000 ), 0, 13691, "bevcunto2_lahills", "ws_patio1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 1288.952880, -2056.468505, 55.624454, 0.000000, 12.500012, 0.000000 ), 0, 13691, "bevcunto2_lahills", "ws_patio1", -16 );
SetDynamicObjectMaterial( CreateDynamicObject( 18765, 1286.793823, -2049.237060, 54.182228, 0.000000, 90.000000, 90.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
CreateDynamicObject( 3749, 1285.963989, -2056.615234, 64.966087, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 638, 1286.209960, -2051.221923, 59.868209, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 638, 1286.209960, -2061.969726, 59.768226, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3471, 1289.913085, -2064.375488, 60.420085, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3471, 1289.913085, -2048.934082, 60.420085, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 14469, 1289.016845, -2048.882812, 59.266265, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 14469, 1289.016845, -2063.995849, 59.266265, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 14467, 1238.959594, -2008.467895, 61.868148, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3939, 1247.439086, -2006.402343, 60.948215, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 3939, 1253.339111, -2006.402343, 60.948215, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 3939, 1259.239135, -2006.402343, 60.948215, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 3939, 1265.139160, -2006.402343, 60.948215, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 3939, 1270.998779, -2006.402343, 60.948215, 0.000000, 0.000000, -90.000000 );
CreateDynamicObject( 3939, 1281.031494, -2015.442749, 60.948215, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 3939, 1281.031494, -2021.342773, 60.948215, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 3939, 1281.031494, -2027.242797, 60.948215, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 3939, 1281.031494, -2033.142822, 60.948215, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 3279, 1238.251831, -2066.914306, 59.080020, 0.000000, 0.000000, 90.000000 );
CreateDynamicObject( 3172, 1240.934448, -2047.759643, 59.178226, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 3172, 1250.744018, -2062.629150, 59.138233, 0.000000, 0.000000, -82.300018 );
CreateDynamicObject( 3172, 1265.802978, -2062.054931, 59.148227, 0.000000, 0.000000, -95.600021 );
CreateDynamicObject( 3934, 1258.680786, -2029.809448, 60.102180, 0.000000, 0.000000, 0.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18764, 1258.572753, -2025.144653, 57.592124, 0.000000, 0.000000, 0.000000 ), 0, 13724, "docg01_lahills", "concretenewb256", -16 );
CreateDynamicObject( 8614, 1256.982788, -2021.731445, 58.852252, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 1569, 1118.373779, -2043.170776, 73.409652, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1569, 1121.375000, -2043.170776, 73.409652, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 1569, 1117.574707, -2030.800048, 73.409652, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 1569, 1114.574951, -2030.800048, 73.409652, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1569, 1118.296142, -2030.800048, 73.409652, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 1569, 1121.284912, -2030.800048, 73.409652, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 718, 1236.321289, -2031.841064, 59.792263, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 718, 1236.321289, -2042.181518, 59.792263, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3461, 1213.602294, -2040.536987, 68.987800, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3461, 1213.602294, -2033.484741, 68.987800, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3461, 1226.962036, -2040.536987, 65.197830, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 3461, 1226.962036, -2033.456054, 65.197830, 0.000000, 0.000000, 0.000000 );
CreateDynamicObject( 14608, 1205.618041, -2052.755615, 69.000610, 0.000000, 0.000000, -135.799865 );
CreateDynamicObject( 3279, 1279.505737, -2042.643188, 59.080020, 0.000000, 0.000000, 180.000000 );
CreateDynamicObject( 3279, 1279.735961, -2007.811645, 59.080020, 0.000000, 0.000000, -90.000000 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1124.487426, -1993.640747, 74.064376, 0.000000, 90.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1124.487426, -1993.640747, 76.194366, 0.000000, 90.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1124.489379, -1993.638793, 74.484413, 0.000000, 90.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
SetDynamicObjectMaterial( CreateDynamicObject( 18980, 1124.488403, -1993.639770, 75.244422, 0.000000, 90.000000, 0.000000 ), 0, 3979, "civic01_lan", "airportwall_256128", 0 );
return 1; return 1;
} }

View File

@ -156,7 +156,7 @@ new bool: False = false, szNormalString[ 144 ];
#define CreateBillboard(%0,%1,%2,%3,%4) SetDynamicObjectMaterialText(CreateDynamicObject(7246,%1,%2,%3,0,0,%4),0,(%0),120,"Arial",24,0,-1,-16777216,1) #define CreateBillboard(%0,%1,%2,%3,%4) SetDynamicObjectMaterialText(CreateDynamicObject(7246,%1,%2,%3,0,0,%4),0,(%0),120,"Arial",24,0,-1,-16777216,1)
/* ** Configuration ** */ /* ** Configuration ** */
#define FILE_BUILD "v10.2.8" #define FILE_BUILD "v10.4.20"
#define SERVER_NAME "San Fierro Cops And Robbers (0.3.7)" #define SERVER_NAME "San Fierro Cops And Robbers (0.3.7)"
#define SERVER_WEBSITE "www.irresistiblegaming.com" #define SERVER_WEBSITE "www.irresistiblegaming.com"
#define SERVER_IP "192.169.82.202:7777" #define SERVER_IP "192.169.82.202:7777"
@ -305,14 +305,14 @@ const
#define DIALOG_FLAT_CONFIG 55 + 1000 #define DIALOG_FLAT_CONFIG 55 + 1000
#define DIALOG_FLAT_CONTROL 56 + 1000 #define DIALOG_FLAT_CONTROL 56 + 1000
#define DIALOG_FLAT_TITLE 57 + 1000 #define DIALOG_FLAT_TITLE 57 + 1000
#define DIALOG_POLICE_TUTORIAL 58 + 1000 // #define DIALOG_POLICE_TUTORIAL 58 + 1000
#define DIALOG_WEAPON_DEAL 59 + 1000 #define DIALOG_WEAPON_DEAL 59 + 1000
#define DIALOG_WEAPON_DEAL_BUY 60 + 1000 #define DIALOG_WEAPON_DEAL_BUY 60 + 1000
#define DIALOG_HOUSE_PW 61 + 1000 #define DIALOG_HOUSE_PW 61 + 1000
#define DIALOG_HOUSE_SET_PW 62 + 1000 #define DIALOG_HOUSE_SET_PW 62 + 1000
#define DIALOG_HOUSE_WEAPONS 63 + 1000 #define DIALOG_HOUSE_WEAPONS 63 + 1000
#define DIALOG_HOUSE_WEAPONS_ADD 64 + 1000 #define DIALOG_HOUSE_WEAPONS_ADD 64 + 1000
#define DIALOG_VIEW_LEO_TUT 65 + 1000 //#define DIALOG_VIEW_LEO_TUT 65 + 1000
#define DIALOG_FURNITURE 66 + 1000 #define DIALOG_FURNITURE 66 + 1000
#define DIALOG_FURNITURE_LIST 67 + 1000 #define DIALOG_FURNITURE_LIST 67 + 1000
#define DIALOG_FURNITURE_OPTION 68 + 1000 #define DIALOG_FURNITURE_OPTION 68 + 1000
@ -575,6 +575,7 @@ new
Text: g_SlotMachineBoxTD [ 2 ] = { Text: INVALID_TEXT_DRAW, ... }, Text: g_SlotMachineBoxTD [ 2 ] = { Text: INVALID_TEXT_DRAW, ... },
Text: g_TopDonorTD = Text: INVALID_TEXT_DRAW, Text: g_TopDonorTD = Text: INVALID_TEXT_DRAW,
Text: g_NotManyPlayersTD = Text: INVALID_TEXT_DRAW, Text: g_NotManyPlayersTD = Text: INVALID_TEXT_DRAW,
Text: g_EasterTD [ 2 ] = { Text: INVALID_TEXT_DRAW, ... },
// Player Textdraws // Player Textdraws
PlayerText: p_LocationTD [ MAX_PLAYERS ] = { PlayerText: INVALID_TEXT_DRAW, ... }, PlayerText: p_LocationTD [ MAX_PLAYERS ] = { PlayerText: INVALID_TEXT_DRAW, ... },
@ -983,6 +984,8 @@ enum E_GATE_DATA
Float: E_MOVE_X, Float: E_MOVE_Y, Float: E_MOVE_Z, Float: E_MOVE_X, Float: E_MOVE_Y, Float: E_MOVE_Z,
Float: E_MOVE_RX, Float: E_MOVE_RY, Float: E_MOVE_RZ, Float: E_MOVE_RX, Float: E_MOVE_RY, Float: E_MOVE_RZ,
E_CLOSE_TIMER
}; };
new new
@ -2356,9 +2359,9 @@ new
#define ENABLED_EASTER_EGG ( true ) #define ENABLED_EASTER_EGG ( true )
#if ENABLED_EASTER_EGG == true #if ENABLED_EASTER_EGG == true
#define EASTEREGG_LABEL "[XMAS BOX]" // "[EASTER EGG]" #define EASTEREGG_LABEL "[EASTER EGG]"
#define EASTEREGG_NAME "Christmas Box" // "Easter Egg" #define EASTEREGG_NAME "Easter Egg"
#define EASTEREGG_MODEL randarg( 19054, 19054, 19056, 19057, 19058 ) // ( 19341 ) #define EASTEREGG_MODEL randarg( 19341, 19342, 19343, 19344, 19345 )
#define MAX_EGGS ( 4 ) #define MAX_EGGS ( 4 )
enum E_EASTEREGG_DATA enum E_EASTEREGG_DATA
@ -2927,7 +2930,7 @@ new
; ;
/* ** Mapping Tax ** */ /* ** Mapping Tax ** */
#define MAX_MAPPING ( 200 ) #define MAX_MAPPING ( 5 )
#define IC_CASH_VALUE ( 17500.0 ) #define IC_CASH_VALUE ( 17500.0 )
enum E_MAPPING_DATA enum E_MAPPING_DATA
@ -3104,9 +3107,9 @@ new
p_AntiSpawnKill [ MAX_PLAYERS ], p_AntiSpawnKill [ MAX_PLAYERS ],
bool: p_AntiSpawnKillEnabled [ MAX_PLAYERS char ], bool: p_AntiSpawnKillEnabled [ MAX_PLAYERS char ],
p_HitsComplete [ MAX_PLAYERS ], p_HitsComplete [ MAX_PLAYERS ],
p_CopTutorial [ MAX_PLAYERS char ], /*p_CopTutorial [ MAX_PLAYERS char ],
p_CopTutorialProgress [ MAX_PLAYERS char ], p_CopTutorialProgress [ MAX_PLAYERS char ],
p_CopTutorialTick [ MAX_PLAYERS ], p_CopTutorialTick [ MAX_PLAYERS ],*/
p_WeaponDealTick [ MAX_PLAYERS ], p_WeaponDealTick [ MAX_PLAYERS ],
p_WeaponDealer [ MAX_PLAYERS ] = { INVALID_PLAYER_ID, ... }, p_WeaponDealer [ MAX_PLAYERS ] = { INVALID_PLAYER_ID, ... },
p_WeaponDealMenu [ MAX_PLAYERS char ], p_WeaponDealMenu [ MAX_PLAYERS char ],
@ -3353,7 +3356,7 @@ public OnGameModeInit()
AddServerVariable( "vip_discount", "1.0", GLOBAL_VARTYPE_FLOAT ); AddServerVariable( "vip_discount", "1.0", GLOBAL_VARTYPE_FLOAT );
AddServerVariable( "vip_bonus", "0.0", GLOBAL_VARTYPE_FLOAT ); AddServerVariable( "vip_bonus", "0.0", GLOBAL_VARTYPE_FLOAT );
AddServerVariable( "proxyban", "0", GLOBAL_VARTYPE_INT ); AddServerVariable( "proxyban", "0", GLOBAL_VARTYPE_INT );
AddServerVariable( "connectsong", "http://irresistiblegaming.com/game_sounds/Stevie%20Wonder%20-%20Skeletons.mp3", GLOBAL_VARTYPE_STRING ); AddServerVariable( "connectsong", "http://files.irresistiblegaming.com/game_sounds/Stevie%20Wonder%20-%20Skeletons.mp3", GLOBAL_VARTYPE_STRING );
mysql_function_query( dbHandle, "SELECT * FROM `SERVER`", true, "OnLoadServerVariables", "" ); mysql_function_query( dbHandle, "SELECT * FROM `SERVER`", true, "OnLoadServerVariables", "" );
@ -4487,9 +4490,9 @@ public OnGameModeInit()
rl_ServerUpdate = SetTimer( "OnServerUpdate", 960, true ); rl_ServerUpdate = SetTimer( "OnServerUpdate", 960, true );
rl_ZoneUpdate = SetTimer( "ZoneTimer", 980, true ); rl_ZoneUpdate = SetTimer( "ZoneTimer", 980, true );
HTTP( LANGUAGE_EN, HTTP_GET, "irresistiblegaming.com/en_rules.txt", "", "OnRulesHTTPResponse" ); HTTP( LANGUAGE_EN, HTTP_GET, "files.irresistiblegaming.com/en_rules.txt", "", "OnRulesHTTPResponse" );
HTTP( LANGUAGE_ES, HTTP_GET, "irresistiblegaming.com/es_rules.txt", "", "OnRulesHTTPResponse" ); HTTP( LANGUAGE_ES, HTTP_GET, "files.irresistiblegaming.com/es_rules.txt", "", "OnRulesHTTPResponse" );
HTTP( LANGUAGE_BA, HTTP_GET, "irresistiblegaming.com/ba_rules.txt", "", "OnRulesHTTPResponse" ); HTTP( LANGUAGE_BA, HTTP_GET, "files.irresistiblegaming.com/ba_rules.txt", "", "OnRulesHTTPResponse" );
printf( "[SF-CNR] SF-CnR has been successfully initiaized. (Build: "#FILE_BUILD" | Time: %d)", ( g_ServerUptime = gettime( ) ) ); printf( "[SF-CNR] SF-CnR has been successfully initiaized. (Build: "#FILE_BUILD" | Time: %d)", ( g_ServerUptime = gettime( ) ) );
return 1; return 1;
@ -4503,9 +4506,10 @@ public OnDonationRedemptionResponse( index, response_code, data[ ] )
else else
{ {
static aDonation[ E_DONATION_DATA ]; static aDonation[ E_DONATION_DATA ];
sscanf( data, "p<|>e<s[64]s[256]s[11]s[64]d>", aDonation ); sscanf( data, "p<|>e<s[17]s[24]s[11]s[64]d>", aDonation );
if ( strfind( aDonation[ E_PURPOSE ], "San Fierro: Cops and Robbers" ) == -1 ) // printf("donation {id:%s, name:%s, amount:%s, purpose:%s, date:%d}", aDonation[ E_TRANSACTION_ID ],aDonation[ E_NAME ],aDonation[ E_AMOUNT ],aDonation[ E_PURPOSE ],aDonation[ E_DATE ]);
if ( strfind( aDonation[ E_PURPOSE ], "San Fierro: Cops And Robbers" ) == -1 )
{ {
ShowPlayerDialog( index, DIALOG_NULL, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Irresistible Gaming Donation", ""COL_WHITE"This donation is not specifically for this server thus you are unable to retrieve anything.", "Okay", "" ); ShowPlayerDialog( index, DIALOG_NULL, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Irresistible Gaming Donation", ""COL_WHITE"This donation is not specifically for this server thus you are unable to retrieve anything.", "Okay", "" );
return 0; return 0;
@ -4540,7 +4544,7 @@ thread OnCheckForRedeemedVIP( playerid, data[ ] )
{ {
g_redeemVipWait = g_iTime + 10; g_redeemVipWait = g_iTime + 10;
sscanf( data, "p<|>e<s[64]s[256]s[11]s[64]d>", aDonation ); sscanf( data, "p<|>e<s[17]s[24]s[11]s[64]d>", aDonation );
format( szNormalString, sizeof( szNormalString ), "INSERT INTO `REDEEMED`(`ID`, `REDEEMER`) VALUES (MD5('%s%s'), '%s')", mysql_escape( aDonation[ E_TRANSACTION_ID ] ), szRedemptionSalt, ReturnPlayerName( playerid ) ); format( szNormalString, sizeof( szNormalString ), "INSERT INTO `REDEEMED`(`ID`, `REDEEMER`) VALUES (MD5('%s%s'), '%s')", mysql_escape( aDonation[ E_TRANSACTION_ID ] ), szRedemptionSalt, ReturnPlayerName( playerid ) );
mysql_single_query( szNormalString ); mysql_single_query( szNormalString );
@ -4552,7 +4556,7 @@ thread OnCheckForRedeemedVIP( playerid, data[ ] )
Float: iCoins = fAmount * ( 1 + GetGVarFloat( "vip_bonus" ) ) * 100.0 Float: iCoins = fAmount * ( 1 + GetGVarFloat( "vip_bonus" ) ) * 100.0
; ;
if ( fAmount < 4.9999 ) if ( fAmount < 4.99999 )
return SendError( playerid, "Thanks for donating! As this donation was under $5.00 USD, no coins have been issued." ); return SendError( playerid, "Thanks for donating! As this donation was under $5.00 USD, no coins have been issued." );
p_IrresistibleCoins[ playerid ] += iCoins; p_IrresistibleCoins[ playerid ] += iCoins;
@ -4560,8 +4564,8 @@ thread OnCheckForRedeemedVIP( playerid, data[ ] )
SendClientMessageFormatted( playerid, -1, ""COL_GOLD"[VIP PACKAGE]"COL_WHITE" You have received %0.0f Irresistible Coins! Thanks for donating %s!!! :D", iCoins, ReturnPlayerName( playerid ) ); SendClientMessageFormatted( playerid, -1, ""COL_GOLD"[VIP PACKAGE]"COL_WHITE" You have received %0.0f Irresistible Coins! Thanks for donating %s!!! :D", iCoins, ReturnPlayerName( playerid ) );
format( szBigString, 256, ""COL_GREY"Transaction ID:\t"COL_WHITE"%s\n"COL_GREY"E-mail:\t\t"COL_WHITE"%s\n"COL_GREY"Amount:\t"COL_WHITE"$%0.2f\n"COL_GREY"Total Coins:\t"COL_WHITE"%0.0f\n"COL_GREY"Time Ago:\t"COL_WHITE"%s", format( szBigString, 256, ""COL_GREY"Transaction ID:\t"COL_WHITE"%s\n"COL_GREY"Donor Name:\t"COL_WHITE"%s\n"COL_GREY"Amount:\t"COL_WHITE"$%0.2f\n"COL_GREY"Total Coins:\t"COL_WHITE"%0.0f\n"COL_GREY"Time Ago:\t"COL_WHITE"%s",
aDonation[ E_TRANSACTION_ID ], CensoreString( aDonation[ E_EMAIL ] ), floatstr( aDonation[ E_AMOUNT ] ), iCoins, secondstotime( g_iTime - aDonation[ E_DATE ] ) ); aDonation[ E_TRANSACTION_ID ], aDonation[ E_NAME ], floatstr( aDonation[ E_AMOUNT ] ), iCoins, secondstotime( g_iTime - aDonation[ E_DATE ] ) );
ShowPlayerDialog( playerid, DIALOG_DONATED, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Irresistible Gaming Donation", szBigString, "Continue", "" ); ShowPlayerDialog( playerid, DIALOG_DONATED, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Irresistible Gaming Donation", szBigString, "Continue", "" );
} }
@ -4608,15 +4612,6 @@ public OnDynamicObjectMoved( objectid )
MoveDynamicObject( g_apartmentElevatorDoor2[ i ], -1953.3468, Y, Z, 5.0 ); MoveDynamicObject( g_apartmentElevatorDoor2[ i ], -1953.3468, Y, Z, 5.0 );
return 1; return 1;
} }
foreach(new g : gates)
{
if ( g_gateData[ g ] [ E_OBJECT ] == objectid && !IsGateAtOpenPosition( g ) )
{
SetTimerEx( "StartGateClose", g_gateData[ g ] [ E_TIME ], false, "d", g );
break;
}
}
return 1; return 1;
} }
@ -4669,10 +4664,7 @@ public OnPlayerEditDynamicObject( playerid, objectid, response, Float:x, Float:y
if ( response == EDIT_RESPONSE_FINAL ) if ( response == EDIT_RESPONSE_FINAL )
{ {
new new
gID = GetPVarInt( playerid, "gate_editing" ), gID = GetPVarInt( playerid, "gate_editing" );
szDigit[ 3 ]
;
format( szDigit, sizeof( szDigit ), "%d", gID );
switch( gateItem ) switch( gateItem )
{ {
@ -4698,7 +4690,7 @@ public OnPlayerEditDynamicObject( playerid, objectid, response, Float:x, Float:y
} }
} }
UpdateGateData( gID ); UpdateGateData( gID );
cmd_editgate( playerid, szDigit ); cmd_editgate( playerid, sprintf( "%d", gID ) );
SyncObject( playerid ); SyncObject( playerid );
} }
return 1; return 1;
@ -5166,7 +5158,7 @@ public OnServerUpdate( )
if ( IsPlayerInRangeOfPoint( playerid, 2.0, g_EasterEggs[ easterid ] [ E_X ], g_EasterEggs[ easterid ] [ E_Y ], g_EasterEggs[ easterid ] [ E_Z ] ) ) if ( IsPlayerInRangeOfPoint( playerid, 2.0, g_EasterEggs[ easterid ] [ E_X ], g_EasterEggs[ easterid ] [ E_Y ], g_EasterEggs[ easterid ] [ E_Z ] ) )
{ {
new new
iMoney, Float: iCoins, szPrize[ 12 ]; iMoney, Float: iCoins, szPrize[ 16 ];
switch( random( 4 ) ) switch( random( 4 ) )
{ {
@ -5189,7 +5181,7 @@ public OnServerUpdate( )
} }
case 3: case 3:
{ {
p_IrresistibleCoins[ playerid ] += ( iCoins = fRandomEx( 50.0, 250.0 ) ); p_IrresistibleCoins[ playerid ] += ( iCoins = fRandomEx( 75.0, 250.0 ) );
format( szPrize, sizeof( szPrize ), "%0.2f coins", iCoins ); format( szPrize, sizeof( szPrize ), "%0.2f coins", iCoins );
} }
} }
@ -5525,7 +5517,7 @@ public ZoneTimer( )
foreach(new p : Player) { foreach(new p : Player) {
if ( !p_VIPLevel[ p ] && !IsPlayerUsingRadio( p ) ) { if ( !p_VIPLevel[ p ] && !IsPlayerUsingRadio( p ) ) {
PlayAudioStreamForPlayer( p, "http://irresistiblegaming.com/game_sounds/pls_donate.mp3" ); PlayAudioStreamForPlayer( p, "http://files.irresistiblegaming.com/game_sounds/pls_donate.mp3" );
} }
} }
@ -5767,6 +5759,8 @@ public OnPlayerRequestClass( playerid, classid )
TextDrawHideForPlayer( playerid, g_WebsiteTD ); TextDrawHideForPlayer( playerid, g_WebsiteTD );
PlayerTextDrawHide( playerid, p_WantedLevelTD[ playerid ] ); PlayerTextDrawHide( playerid, p_WantedLevelTD[ playerid ] );
TextDrawHideForPlayer( playerid, g_MotdTD ); TextDrawHideForPlayer( playerid, g_MotdTD );
TextDrawHideForPlayer( playerid, g_EasterTD[0] );
TextDrawHideForPlayer( playerid, g_EasterTD[1] );
TextDrawHideForPlayer( playerid, g_NotManyPlayersTD ); TextDrawHideForPlayer( playerid, g_NotManyPlayersTD );
TextDrawHideForPlayer( playerid, p_FPSCounterTD[ playerid ] ); TextDrawHideForPlayer( playerid, p_FPSCounterTD[ playerid ] );
TextDrawHideForPlayer( playerid, g_AdminOnDutyTD ); TextDrawHideForPlayer( playerid, g_AdminOnDutyTD );
@ -6217,6 +6211,11 @@ public OnPlayerDisconnect( playerid, reason )
} }
#endif #endif
// Filter out bots
if ( ! ( 0 <= playerid < MAX_PLAYERS ) )
return 1;
// Reset player variables
SavePlayerData( playerid, true ); SavePlayerData( playerid, true );
dischargeVehicles( playerid ); dischargeVehicles( playerid );
CutSpectation( playerid ); CutSpectation( playerid );
@ -6237,7 +6236,7 @@ public OnPlayerDisconnect( playerid, reason )
p_PingImmunity { playerid } = 0; p_PingImmunity { playerid } = 0;
p_Robberies [ playerid ] = 0; p_Robberies [ playerid ] = 0;
p_HitsComplete [ playerid ] = 0; p_HitsComplete [ playerid ] = 0;
p_CopTutorial { playerid } = 0; //p_CopTutorial { playerid } = 0;
p_Class [ playerid ] = 0; p_Class [ playerid ] = 0;
p_isMining { playerid } = false; p_isMining { playerid } = false;
p_drillStrength [ playerid ] = 0; p_drillStrength [ playerid ] = 0;
@ -6359,7 +6358,7 @@ public OnPlayerDisconnect( playerid, reason )
DestroyDynamic3DTextLabel( p_WeedLabel[ playerid ] ); DestroyDynamic3DTextLabel( p_WeedLabel[ playerid ] );
p_WeedLabel[ playerid ] = Text3D: INVALID_3DTEXT_ID; p_WeedLabel[ playerid ] = Text3D: INVALID_3DTEXT_ID;
p_AntiSpawnKillEnabled{ playerid } = false; p_AntiSpawnKillEnabled{ playerid } = false;
p_CopTutorialProgress{ playerid } = 0; //p_CopTutorialProgress{ playerid } = 0;
DestroyDynamicRaceCP( p_LumberjackReturn[ playerid ] ); DestroyDynamicRaceCP( p_LumberjackReturn[ playerid ] );
p_LumberjackReturn[ playerid ] = 0xFFFF; p_LumberjackReturn[ playerid ] = 0xFFFF;
DestroyDynamicRaceCP( p_LumberjackDeliver[ playerid ] ); DestroyDynamicRaceCP( p_LumberjackDeliver[ playerid ] );
@ -6457,6 +6456,8 @@ public OnPlayerSpawn( playerid )
PlayerTextDrawShow( playerid, p_ExperienceTD[ playerid ] ); PlayerTextDrawShow( playerid, p_ExperienceTD[ playerid ] );
TextDrawShowForPlayer( playerid, g_WebsiteTD ); TextDrawShowForPlayer( playerid, g_WebsiteTD );
TextDrawShowForPlayer( playerid, g_MotdTD ); TextDrawShowForPlayer( playerid, g_MotdTD );
TextDrawShowForPlayer( playerid, g_EasterTD[0] );
TextDrawShowForPlayer( playerid, g_EasterTD[1] );
if ( g_HappyHour ) TextDrawShowForPlayer( playerid, g_NotManyPlayersTD ); if ( g_HappyHour ) TextDrawShowForPlayer( playerid, g_NotManyPlayersTD );
TextDrawShowForPlayer( playerid, g_WorldDayTD ); TextDrawShowForPlayer( playerid, g_WorldDayTD );
if ( p_AdminOnDuty{ playerid } ) TextDrawShowForPlayer( playerid, g_AdminOnDutyTD ); if ( p_AdminOnDuty{ playerid } ) TextDrawShowForPlayer( playerid, g_AdminOnDutyTD );
@ -6673,7 +6674,7 @@ public OnPlayerSpawn( playerid )
} }
} }
if ( p_Class[ playerid ] == CLASS_POLICE && p_CopTutorial{ playerid } == 0 ) // False value means they haven't passed it. /*if ( p_Class[ playerid ] == CLASS_POLICE && p_CopTutorial{ playerid } == 0 ) // False value means they haven't passed it.
{ {
TogglePlayerSpectating( playerid, 1 ); TogglePlayerSpectating( playerid, 1 );
p_inMovieMode{ playerid } = false; p_inMovieMode{ playerid } = false;
@ -6687,7 +6688,7 @@ public OnPlayerSpawn( playerid )
InterpolateCameraPos( playerid, -1495.9056, 1025.5458, 60.0000, -1557.7552, 620.3210, 30.0000, 20000 ); InterpolateCameraPos( playerid, -1495.9056, 1025.5458, 60.0000, -1557.7552, 620.3210, 30.0000, 20000 );
InterpolateCameraLookAt( playerid, -1496.0648, 1024.5542, 60.0000, -1558.4092, 621.0837, 30.0000, 10000 ); InterpolateCameraLookAt( playerid, -1496.0648, 1024.5542, 60.0000, -1558.4092, 621.0837, 30.0000, 10000 );
return 1; return 1;
} }*/
new new
bSpectated = ( IsPlayerAdmin( playerid ) && p_LastPlayerState{ playerid } == PLAYER_STATE_SPECTATING ); bSpectated = ( IsPlayerAdmin( playerid ) && p_LastPlayerState{ playerid } == PLAYER_STATE_SPECTATING );
@ -6784,17 +6785,17 @@ public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:f
p_RapidFireTickCount[ playerid ] = GetTickCount( ); p_RapidFireTickCount[ playerid ] = GetTickCount( );
} }
// Cop shoots innocent, they /q - so jail
if ( p_Class[ playerid ] == CLASS_POLICE )
p_QuitToAvoidTimestamp[ playerid ] = g_iTime + 3;
if ( hittype == BULLET_HIT_TYPE_PLAYER ) if ( hittype == BULLET_HIT_TYPE_PLAYER )
{ {
if ( IsPlayerNPC( hitid ) ) if ( IsPlayerNPC( hitid ) )
return 1; // fcnpc return 1; // fcnpc
//if ( p_Class[ playerid ] == CLASS_POLICE && p_Class[ hitid ] != CLASS_POLICE && !p_WantedLevel[ hitid ] && GetPlayerState( hitid ) != PLAYER_STATE_WASTED ) // Cop shoots innocent, they /q - so jail
// return ShowPlayerHelpDialog( playerid, 2000, "You cannot hurt innocent civilians, you're a ~b~cop~w~~h~!" ), 0; if ( p_Class[ playerid ] == CLASS_POLICE && p_WantedLevel[ hitid ] > 2 )
p_QuitToAvoidTimestamp[ hitid ] = g_iTime + 3;
if ( p_Class[ playerid ] == CLASS_POLICE && p_Class[ hitid ] != CLASS_POLICE && !p_WantedLevel[ hitid ] && GetPlayerState( hitid ) != PLAYER_STATE_WASTED && ! IsPlayerInEvent( playerid ) )
return ShowPlayerHelpDialog( playerid, 2000, "You cannot hurt innocent civilians, you're a ~b~cop~w~~h~!" ), 0;
// CIA Exposure when weapon is shot // CIA Exposure when weapon is shot
if ( p_Class[ playerid ] == CLASS_POLICE && p_inFBI{ playerid } && p_inCIA{ playerid } && !p_inArmy{ playerid } ) if ( p_Class[ playerid ] == CLASS_POLICE && p_inFBI{ playerid } && p_inCIA{ playerid } && !p_inArmy{ playerid } )
@ -7009,7 +7010,7 @@ public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, b
if ( IsPlayerJailed( playerid ) || IsPlayerJailed( issuerid ) ) if ( IsPlayerJailed( playerid ) || IsPlayerJailed( issuerid ) )
return 0; return 0;
/*if ( weaponid == WEAPON_KNIFE && amount > 256.0 && IsRandomDeathmatch( issuerid, playerid ) ) if ( weaponid == WEAPON_KNIFE && amount > 256.0 && IsRandomDeathmatch( issuerid, playerid ) )
{ {
new new
iSeconds; iSeconds;
@ -7020,7 +7021,7 @@ public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, b
JailPlayer( issuerid, iSeconds, 1 ); JailPlayer( issuerid, iSeconds, 1 );
SendGlobalMessage( -1, ""COL_GOLD"[JAIL]{FFFFFF} %s(%d) has been sent to jail for %d seconds by the server "COL_GREEN"[REASON: Random Deathmatch]", ReturnPlayerName( issuerid ), issuerid, iSeconds ); SendGlobalMessage( -1, ""COL_GOLD"[JAIL]{FFFFFF} %s(%d) has been sent to jail for %d seconds by the server "COL_GREEN"[REASON: Random Deathmatch]", ReturnPlayerName( issuerid ), issuerid, iSeconds );
return 1; // Need damage to pass through return 1; // Need damage to pass through
}*/ }
if ( p_Class[ issuerid ] == CLASS_POLICE && p_Class[ playerid ] != CLASS_POLICE && !p_WantedLevel[ playerid ] && GetPlayerState( playerid ) != PLAYER_STATE_WASTED ) { if ( p_Class[ issuerid ] == CLASS_POLICE && p_Class[ playerid ] != CLASS_POLICE && !p_WantedLevel[ playerid ] && GetPlayerState( playerid ) != PLAYER_STATE_WASTED ) {
ShowPlayerHelpDialog( issuerid, 2000, "You should not hurt innocent civilians, you're a ~b~cop~w~~h~!" ); ShowPlayerHelpDialog( issuerid, 2000, "You should not hurt innocent civilians, you're a ~b~cop~w~~h~!" );
@ -7061,7 +7062,7 @@ public OnPlayerTakePlayerDamage( playerid, issuerid, &Float: amount, weaponid, b
// Anti Random Deathmatch // Anti Random Deathmatch
if ( IsRandomDeathmatch( issuerid, playerid ) ) if ( IsRandomDeathmatch( issuerid, playerid ) )
return ShowPlayerHelpDialog( issuerid, 2000, "You cannot ~r~~h~randomly deathmatch~w~~h~ innocent players!" ), 0; return ShowPlayerHelpDialog( issuerid, 2000, "You cannot ~r~~h~random deathmatch~w~~h~ in this location!" ), 0;
} }
// No passenger, no bullets // No passenger, no bullets
@ -7244,6 +7245,8 @@ public OnPlayerDeath(playerid, killerid, reason)
TextDrawHideForPlayer( playerid, g_NotManyPlayersTD ); TextDrawHideForPlayer( playerid, g_NotManyPlayersTD );
TextDrawHideForPlayer( playerid, p_FPSCounterTD[ playerid ] ); TextDrawHideForPlayer( playerid, p_FPSCounterTD[ playerid ] );
TextDrawHideForPlayer( playerid, g_AdminOnDutyTD ); TextDrawHideForPlayer( playerid, g_AdminOnDutyTD );
TextDrawHideForPlayer( playerid, g_EasterTD[0] );
TextDrawHideForPlayer( playerid, g_EasterTD[1] );
TextDrawHideForPlayer( playerid, g_WorldDayTD ); TextDrawHideForPlayer( playerid, g_WorldDayTD );
TextDrawHideForPlayer( playerid, g_AdminLogTD ); TextDrawHideForPlayer( playerid, g_AdminLogTD );
TextDrawHideForPlayer( playerid, g_DoubleXPTD ); TextDrawHideForPlayer( playerid, g_DoubleXPTD );
@ -8234,7 +8237,7 @@ public OnPlayerProgressComplete( playerid, progressid, params )
AttachDynamicObjectToVehicle( GetGVarInt( "meth_smoke", vehicleid ), vehicleid, -0.524999, -0.974999, -0.375000, 0.000000, 0.000000, 0.000000 ); AttachDynamicObjectToVehicle( GetGVarInt( "meth_smoke", vehicleid ), vehicleid, -0.524999, -0.974999, -0.375000, 0.000000, 0.000000, 0.000000 );
ShowPlayerHelpDialog( playerid, 5000, "Okay, okay, everything seems to be cooking fine. Wait till for the next chemical to be added." ); ShowPlayerHelpDialog( playerid, 5000, "Okay, okay, everything seems to be cooking fine. Wait till for the next chemical to be added." );
if ( !IsPlayerUsingRadio( playerid ) ) PlayAudioStreamForPlayer( playerid, "http://irresistiblegaming.com/game_sounds/cooking.mp3", 1476.0394, 1464.3358, 1012.1190, 5.0, 1 ); if ( !IsPlayerUsingRadio( playerid ) ) PlayAudioStreamForPlayer( playerid, "http://files.irresistiblegaming.com/game_sounds/cooking.mp3", 1476.0394, 1464.3358, 1012.1190, 5.0, 1 );
SetGVarInt( "meth_cooktimer", SetTimerEx( "OnMethamphetamineCooking", 20000, false, "ddd", playerid, vehicleid, chemical ), vehicleid ); SetGVarInt( "meth_cooktimer", SetTimerEx( "OnMethamphetamineCooking", 20000, false, "ddd", playerid, vehicleid, chemical ), vehicleid );
} }
} }
@ -8487,13 +8490,13 @@ CMD:disposeweapon(playerid, params[]) {
new new
iCurrentWeapon = GetPlayerWeapon( playerid ), iCurrentWeapon = GetPlayerWeapon( playerid ),
iWeaponID[ 12 ], iWeaponID[ 13 ],
iWeaponAmmo[ 12 ] iWeaponAmmo[ 13 ]
; ;
if ( iCurrentWeapon != 0 ) if ( iCurrentWeapon != 0 )
{ {
for( new iSlot = 0; iSlot != 12; iSlot++ ) for( new iSlot = 0; iSlot < sizeof( iWeaponAmmo ); iSlot++ )
{ {
new new
iWeapon, iWeapon,
@ -8508,7 +8511,7 @@ CMD:disposeweapon(playerid, params[]) {
ResetPlayerWeapons( playerid ); ResetPlayerWeapons( playerid );
for( new iSlot = 0; iSlot != 12; iSlot++ ) { for( new iSlot = 0; iSlot < sizeof( iWeaponAmmo ); iSlot++ ) {
GivePlayerWeapon( playerid, iWeaponID[ iSlot ], 0 <= iWeaponAmmo[ iSlot ] < 16384 ? iWeaponAmmo[ iSlot ] : 16384 ); GivePlayerWeapon( playerid, iWeaponID[ iSlot ], 0 <= iWeaponAmmo[ iSlot ] < 16384 ? iWeaponAmmo[ iSlot ] : 16384 );
} }
@ -9390,12 +9393,13 @@ CMD:gate( playerid, params[ ] )
if ( strcmp( szPassword, g_gateData[ g ] [ E_PASS ], false ) ) if ( strcmp( szPassword, g_gateData[ g ] [ E_PASS ], false ) )
continue; // return SendError( playerid, "Incorrect password. Please try again." ); continue; // return SendError( playerid, "Incorrect password. Please try again." );
if ( !IsGateAtOpenPosition( g ) || IsDynamicObjectMoving( g_gateData[ g ] [ E_OBJECT ] ) ) if ( g_gateData[ g ] [ E_CLOSE_TIMER ] != -1 )
continue; // return SendError( playerid, "This gate is currently in operation. Please wait." ); continue; // return SendError( playerid, "This gate is currently in operation. Please wait." );
if ( !strmatch( g_gateData[ g ] [ E_NAME ], "N/A" ) ) if ( !strmatch( g_gateData[ g ] [ E_NAME ], "N/A" ) )
SendClientMessageFormatted( playerid, -1, ""COL_GREY"[GATE]"COL_WHITE" You've opened "COL_GREY"%s"COL_WHITE".", g_gateData[ g ] [ E_NAME ] ); SendClientMessageFormatted( playerid, -1, ""COL_GREY"[GATE]"COL_WHITE" You've opened "COL_GREY"%s"COL_WHITE".", g_gateData[ g ] [ E_NAME ] );
g_gateData[ g ] [ E_CLOSE_TIMER ] = SetTimerEx( "StartGateClose", floatround( g_gateData[ g ] [ E_SPEED ] * 1000.0 ) + g_gateData[ g ] [ E_TIME ], false, "d", g );
MoveDynamicObject( g_gateData[ g ] [ E_OBJECT ], g_gateData[ g ] [ E_MOVE_X ], g_gateData[ g ] [ E_MOVE_Y ], g_gateData[ g ] [ E_MOVE_Z ], g_gateData[ g ] [ E_SPEED ], g_gateData[ g ] [ E_MOVE_RX ], g_gateData[ g ] [ E_MOVE_RY ], g_gateData[ g ] [ E_MOVE_RZ ] ); MoveDynamicObject( g_gateData[ g ] [ E_OBJECT ], g_gateData[ g ] [ E_MOVE_X ], g_gateData[ g ] [ E_MOVE_Y ], g_gateData[ g ] [ E_MOVE_Z ], g_gateData[ g ] [ E_SPEED ], g_gateData[ g ] [ E_MOVE_RX ], g_gateData[ g ] [ E_MOVE_RY ], g_gateData[ g ] [ E_MOVE_RZ ] );
gates++; gates++;
} }
@ -9841,12 +9845,12 @@ CMD:gettaxrate( playerid, params[ ] )
return 1; return 1;
} }
CMD:policetutorial( playerid, params[ ] ) /*CMD:policetutorial( playerid, params[ ] )
{ {
if ( p_CopTutorial{ playerid } == 0 ) return SendError( playerid, "You have already enabled the law enforcement officer tutorial." ); if ( p_CopTutorial{ playerid } == 0 ) return SendError( playerid, "You have already enabled the law enforcement officer tutorial." );
ShowPlayerDialog( playerid, DIALOG_VIEW_LEO_TUT, DIALOG_STYLE_MSGBOX, "{FFFFFF}Law Enforcement Officer Tutorial", "{FFFFFF}Are you sure you would like to view the law enforcement officer tutorial again?", "Yes", "No" ); ShowPlayerDialog( playerid, DIALOG_VIEW_LEO_TUT, DIALOG_STYLE_MSGBOX, "{FFFFFF}Law Enforcement Officer Tutorial", "{FFFFFF}Are you sure you would like to view the law enforcement officer tutorial again?", "Yes", "No" );
return 1; return 1;
} }*/
CMD:ransompay( playerid, params[ ] ) CMD:ransompay( playerid, params[ ] )
{ {
@ -10322,7 +10326,7 @@ CMD:changes( playerid, params[ ] ) return cmd_updates( playerid, params );
CMD:updates( playerid, params[ ] ) CMD:updates( playerid, params[ ] )
{ {
SendServerMessage( playerid, "Reading latest changes from {00CCFF}www.revctrl.com/IrresistibleDev/SF-CNR/latest{FFFFFF}, please wait!" ); SendServerMessage( playerid, "Reading latest changes from {00CCFF}www.revctrl.com/IrresistibleDev/SF-CNR/latest{FFFFFF}, please wait!" );
HTTP( playerid, HTTP_GET, "irresistiblegaming.com/cnr_updates.php", "", "OnRevCTRLHTTPResponse" ); HTTP( playerid, HTTP_GET, "files.irresistiblegaming.com/cnr_updates.php", "", "OnRevCTRLHTTPResponse" );
return 1; return 1;
} }
@ -10330,7 +10334,7 @@ CMD:tweets( playerid, params[ ] ) return cmd_twitter( playerid, params );
CMD:twitter( playerid, params[ ] ) CMD:twitter( playerid, params[ ] )
{ {
SendServerMessage( playerid, "Reading latest tweets from {00CCFF}www.twitter.com/IrresistibleDev{FFFFFF}, please wait!" ); SendServerMessage( playerid, "Reading latest tweets from {00CCFF}www.twitter.com/IrresistibleDev{FFFFFF}, please wait!" );
HTTP( playerid, HTTP_GET, "irresistiblegaming.com/cnr_twitter.php", "", "OnTwitterHTTPResponse" ); HTTP( playerid, HTTP_GET, "files.irresistiblegaming.com/cnr_twitter.php", "", "OnTwitterHTTPResponse" );
return 1; return 1;
} }
@ -11309,6 +11313,8 @@ CMD:moviemode( playerid, params[ ] )
if ( p_AdminOnDuty{ playerid } ) TextDrawShowForPlayer( playerid, g_AdminOnDutyTD ); if ( p_AdminOnDuty{ playerid } ) TextDrawShowForPlayer( playerid, g_AdminOnDutyTD );
TextDrawShowForPlayer( playerid, g_WorldDayTD ); TextDrawShowForPlayer( playerid, g_WorldDayTD );
ShowPlayerIrresistibleRank( playerid ); ShowPlayerIrresistibleRank( playerid );
TextDrawShowForPlayer( playerid, g_EasterTD[0] );
TextDrawShowForPlayer( playerid, g_EasterTD[1] );
for( new i; i < sizeof( g_MovieModeTD ); i ++ ) TextDrawHideForPlayer( playerid, g_MovieModeTD[ i ] ); for( new i; i < sizeof( g_MovieModeTD ); i ++ ) TextDrawHideForPlayer( playerid, g_MovieModeTD[ i ] );
p_inMovieMode{ playerid } = false; p_inMovieMode{ playerid } = false;
SendServerMessage( playerid, "Movie mode has been un-toggled." ); SendServerMessage( playerid, "Movie mode has been un-toggled." );
@ -11317,6 +11323,8 @@ CMD:moviemode( playerid, params[ ] )
{ {
HidePlayerTogglableTextdraws( playerid ); HidePlayerTogglableTextdraws( playerid );
TextDrawHideForPlayer( playerid, g_CurrentRankTD ); TextDrawHideForPlayer( playerid, g_CurrentRankTD );
TextDrawHideForPlayer( playerid, g_EasterTD[0] );
TextDrawHideForPlayer( playerid, g_EasterTD[1] );
TextDrawHideForPlayer( playerid, g_currentXPTD ); TextDrawHideForPlayer( playerid, g_currentXPTD );
PlayerTextDrawHide( playerid, p_LocationTD[ playerid ] ); PlayerTextDrawHide( playerid, p_LocationTD[ playerid ] );
PlayerTextDrawHide( playerid, p_ExperienceTD[ playerid ] ); PlayerTextDrawHide( playerid, p_ExperienceTD[ playerid ] );
@ -11622,12 +11630,50 @@ CMD:eject( playerid, params[ ] )
{ {
if ( p_Kidnapped{ pID } == true ) p_Kidnapped{ pID } = false; if ( p_Kidnapped{ pID } == true ) p_Kidnapped{ pID } = false;
RemovePlayerFromVehicle( pID ); RemovePlayerFromVehicle( pID );
SyncObject( pID, 0.0, 2.0, 2.0 );
GameTextForPlayer( pID, "~r~EJECTED~w~!", 3500, 3 ); GameTextForPlayer( pID, "~r~EJECTED~w~!", 3500, 3 );
SendServerMessage( playerid, "Player has been ejected from your vehicle." ); SendServerMessage( playerid, "Player has been ejected from your vehicle." );
} }
return 1; return 1;
} }
CMD:ejectall( playerid, params[ ] )
{
new
iEjectCounter = 0,
iPlayerSeat = GetPlayerVehicleSeat( playerid ),
iPlayerVehicle = GetPlayerVehicleID( playerid )
;
if ( !IsPlayerInAnyVehicle( playerid ) ) {
return SendError( playerid, "You're not in a vehicle." );
}
if ( iPlayerSeat != 0 ) {
return SendError( playerid, "You're not the driver of this vehicle." );
}
foreach(new i : Player)
{
new
iTargetVehicle = GetPlayerVehicleID( i ),
iTargetSeat = GetPlayerVehicleSeat( i )
;
if ( iTargetVehicle == iPlayerVehicle && iTargetSeat >= 1 && iTargetSeat <= 3 ) {
iEjectCounter++;
RemovePlayerFromVehicle( i );
SyncObject( i, 0.0, 2.0, 2.0 );
GameTextForPlayer( i, "~r~EJECTED~w~!", 3500, 3 );
}
}
if ( ! iEjectCounter )
return SendError( playerid, "You do not have any passengers to eject." );
return SendServerMessage( playerid, "You have ejected %d player%s from your vehicle.", iEjectCounter, iEjectCounter > 1 ? ( "s" ) : ( "" ) );
}
CMD:bail( playerid, params[ ] ) CMD:bail( playerid, params[ ] )
{ {
new new
@ -12906,7 +12952,7 @@ CMD:kidnap( playerid, params[ ] )
if ( IsPlayerBlowingCock( playerid ) ) return SendError( playerid, "You cannot use this command since you're giving oral sex." ); if ( IsPlayerBlowingCock( playerid ) ) return SendError( playerid, "You cannot use this command since you're giving oral sex." );
if ( IsPlayerInPaintBall( playerid ) ) return SendError( playerid, "You cannot use this command since you're inside the paintball arena." ); if ( IsPlayerInPaintBall( playerid ) ) return SendError( playerid, "You cannot use this command since you're inside the paintball arena." );
if ( IsPlayerJailed( victimid ) ) return SendError( playerid, "This player is jailed. He may be paused." ); if ( IsPlayerJailed( victimid ) ) return SendError( playerid, "This player is jailed. He may be paused." );
if ( p_KidnapImmunity[ victimid ] > g_iTime ) return SendError( playerid, "This player cannot be kidnapped for another %s.", secondstotime( p_KidnapImmunity[ playerid ] - g_iTime ) ); if ( p_KidnapImmunity[ victimid ] > g_iTime ) return SendError( playerid, "This player cannot be kidnapped for another %s.", secondstotime( p_KidnapImmunity[ victimid ] - g_iTime ) );
if ( PutPlayerInEmptyVehicleSeat( p_LastVehicle[ playerid ], victimid ) == -1 ) return SendError( playerid, "Failed to place the player inside a full of player vehicle." ); if ( PutPlayerInEmptyVehicleSeat( p_LastVehicle[ playerid ], victimid ) == -1 ) return SendError( playerid, "Failed to place the player inside a full of player vehicle." );
SendClientMessageFormatted( victimid, -1, ""COL_RED"[KIDNAPPED]{FFFFFF} You have been kidnapped by %s(%d)!", ReturnPlayerName( playerid ), playerid ); SendClientMessageFormatted( victimid, -1, ""COL_RED"[KIDNAPPED]{FFFFFF} You have been kidnapped by %s(%d)!", ReturnPlayerName( playerid ), playerid );
SendClientMessageFormatted( playerid, -1, ""COL_GREEN"[KIDNAPPED]{FFFFFF} You have kidnapped %s(%d), he has been thrown in your previous entered vehicle!", ReturnPlayerName( victimid ), victimid ); SendClientMessageFormatted( playerid, -1, ""COL_GREEN"[KIDNAPPED]{FFFFFF} You have kidnapped %s(%d), he has been thrown in your previous entered vehicle!", ReturnPlayerName( victimid ), victimid );
@ -12949,6 +12995,9 @@ CMD:tie( playerid, params[ ] )
/* ** End of Anti Tie Spam ** */ /* ** End of Anti Tie Spam ** */
new victimid = GetClosestPlayer( playerid ); new victimid = GetClosestPlayer( playerid );
new robbery_npcid = GetClosestRobberyNPC( getClosestRobberySafe( playerid ) );
printf("You're %f far from the NPC\n", GetDistanceBetweenPlayers( playerid, robbery_npcid ) );
//if ( sscanf( params, ""#sscanf_u"", victimid ) ) return SendUsage( playerid, "/tie [PLAYER_ID]" ); //if ( sscanf( params, ""#sscanf_u"", victimid ) ) return SendUsage( playerid, "/tie [PLAYER_ID]" );
//else if ( victimid == playerid ) return SendError( playerid, "You cannot tie yourself." ); //else if ( victimid == playerid ) return SendError( playerid, "You cannot tie yourself." );
//else if ( !IsPlayerConnected( victimid ) ) return SendError( playerid, "This player is not connected." ); //else if ( !IsPlayerConnected( victimid ) ) return SendError( playerid, "This player is not connected." );
@ -13029,6 +13078,7 @@ CMD:pullover( playerid, params[ ] )
} }
CMD:loc( playerid, params[ ] ) return cmd_location( playerid, params ); CMD:loc( playerid, params[ ] ) return cmd_location( playerid, params );
CMD:locate( playerid, params[ ] ) return cmd_location( playerid, params );
CMD:location( playerid, params[ ] ) CMD:location( playerid, params[ ] )
{ {
new new
@ -13037,7 +13087,7 @@ CMD:location( playerid, params[ ] )
if ( p_Class[ playerid ] == CLASS_CIVILIAN ) return SendError( playerid, "This is not accessible by civilians." ); if ( p_Class[ playerid ] == CLASS_CIVILIAN ) return SendError( playerid, "This is not accessible by civilians." );
else if ( sscanf( params, ""#sscanf_u"", pID ) ) return SendUsage( playerid, "/loc(ation) [PLAYER_ID]" ); else if ( sscanf( params, ""#sscanf_u"", pID ) ) return SendUsage( playerid, "/loc(ation) [PLAYER_ID]" );
else if ( !IsPlayerConnected( pID ) ) return SendError( playerid, "This player isn't connected!" ); else if ( !IsPlayerConnected( pID ) || IsPlayerNPC( pID ) ) return SendError( playerid, "This player isn't connected!" );
else if ( !IsPlayerSpawned( pID ) ) return SendError( playerid, "The player selected isn't spawned." ); else if ( !IsPlayerSpawned( pID ) ) return SendError( playerid, "The player selected isn't spawned." );
//else if ( GetPlayerInterior( playerid ) != GetPlayerInterior( pID ) ) return SendError( playerid, "This player is inside a interior, the location is not viewable." ); //else if ( GetPlayerInterior( playerid ) != GetPlayerInterior( pID ) ) return SendError( playerid, "This player is inside a interior, the location is not viewable." );
else if ( p_AdminOnDuty{ pID } == true ) return SendError( playerid, "This is an admin on duty! You cannot track their proximity." ); else if ( p_AdminOnDuty{ pID } == true ) return SendError( playerid, "This is an admin on duty! You cannot track their proximity." );
@ -13119,6 +13169,7 @@ stock TicketPlayer( pID, playerid )
{ {
if ( p_AdminOnDuty{ pID } == true ) return SendError( playerid, "This is an admin on duty!" ); if ( p_AdminOnDuty{ pID } == true ) return SendError( playerid, "This is an admin on duty!" );
if ( IsPlayerJailed( pID ) ) return SendError( playerid, "This player is jailed. He may be paused." ); if ( IsPlayerJailed( pID ) ) return SendError( playerid, "This player is jailed. He may be paused." );
if ( IsPlayerTied( pID ) ) return SendError( playerid, "This player is tied, you cannot ticket him unless he is untied." );
if ( GetPlayerState( pID ) == PLAYER_STATE_WASTED ) return SendError( playerid, "You cannot ticket wasted players." ); if ( GetPlayerState( pID ) == PLAYER_STATE_WASTED ) return SendError( playerid, "You cannot ticket wasted players." );
p_TicketTimestamp[ pID ] = g_iTime + 15; p_TicketTimestamp[ pID ] = g_iTime + 15;
@ -15174,7 +15225,7 @@ CMD:rarmywarn( playerid, params [ ] )
return 1; return 1;
} }
CMD:forcecoptutorial( playerid, params[ ] ) /*CMD:forcecoptutorial( playerid, params[ ] )
{ {
new pID; new pID;
if ( p_AdminLevel[ playerid ] < 2 ) return SendError( playerid, ADMIN_COMMAND_REJECT ); if ( p_AdminLevel[ playerid ] < 2 ) return SendError( playerid, ADMIN_COMMAND_REJECT );
@ -15189,7 +15240,7 @@ CMD:forcecoptutorial( playerid, params[ ] )
if ( p_Class[ pID ] == CLASS_POLICE ) SpawnPlayer( pID ); if ( p_Class[ pID ] == CLASS_POLICE ) SpawnPlayer( pID );
} }
return 1; return 1;
} }*/
CMD:ann( playerid, params[ ] ) return cmd_announce( playerid, params ); CMD:ann( playerid, params[ ] ) return cmd_announce( playerid, params );
CMD:announce( playerid, params[ ] ) CMD:announce( playerid, params[ ] )
@ -16873,9 +16924,9 @@ CMD:updaterules( playerid, params[ ] )
if ( p_AdminLevel[ playerid ] < 6 ) if ( p_AdminLevel[ playerid ] < 6 )
return SendError( playerid, ADMIN_COMMAND_REJECT ); return SendError( playerid, ADMIN_COMMAND_REJECT );
HTTP( LANGUAGE_EN, HTTP_GET, "irresistiblegaming.com/en_rules.txt", "", "OnRulesHTTPResponse" ); HTTP( LANGUAGE_EN, HTTP_GET, "files.irresistiblegaming.com/en_rules.txt", "", "OnRulesHTTPResponse" );
HTTP( LANGUAGE_ES, HTTP_GET, "irresistiblegaming.com/es_rules.txt", "", "OnRulesHTTPResponse" ); HTTP( LANGUAGE_ES, HTTP_GET, "files.irresistiblegaming.com/es_rules.txt", "", "OnRulesHTTPResponse" );
HTTP( LANGUAGE_BA, HTTP_GET, "irresistiblegaming.com/ba_rules.txt", "", "OnRulesHTTPResponse" ); HTTP( LANGUAGE_BA, HTTP_GET, "files.irresistiblegaming.com/ba_rules.txt", "", "OnRulesHTTPResponse" );
SendServerMessage( playerid, "Rules should be updated now." ); SendServerMessage( playerid, "Rules should be updated now." );
return 1; return 1;
} }
@ -17199,15 +17250,20 @@ thread OnQueryServerViaRCON( playerid )
CMD:treasurehunt( playerid, params[ ] ) CMD:treasurehunt( playerid, params[ ] )
{ {
if ( !IsPlayerAdmin( playerid ) ) return 0; if ( !IsPlayerAdmin( playerid ) )
if ( Iter_Count(eastereggs) < 1 ) return SendError( playerid, "There are not enough " #EASTEREGG_NAME "s planted to start the treasure hunt." ); return 0;
g_EasterHunt = ( g_EasterHunt == true ? (false) : (true) );
if ( !g_EasterHunt ) if ( Iter_Count(eastereggs) < 1 )
return SendError( playerid, "There are not enough " #EASTEREGG_NAME "s planted to start the treasure hunt." );
// if its false, destroy all egs
if ( ( g_EasterHunt = ! g_EasterHunt ) == false )
{ {
foreach(new i : eastereggs) for ( new i = 0; i < MAX_EGGS; i ++)
DestroyEasterEgg( i ); DestroyEasterEgg( i );
} }
// alert admin log
AddAdminLogLineFormatted( "%s(%d) has started a treasurehunt", ReturnPlayerName( playerid ), playerid ); AddAdminLogLineFormatted( "%s(%d) has started a treasurehunt", ReturnPlayerName( playerid ), playerid );
SendClientMessageFormatted( playerid, -1, ""COL_PINK"[ADMIN]"COL_GOLD" Treasure Hunt has been %s", g_EasterHunt == true ? ("activated, look around for " #EASTEREGG_NAME "s and get a free gift.") : ("de-activated.") ); SendClientMessageFormatted( playerid, -1, ""COL_PINK"[ADMIN]"COL_GOLD" Treasure Hunt has been %s", g_EasterHunt == true ? ("activated, look around for " #EASTEREGG_NAME "s and get a free gift.") : ("de-activated.") );
return 1; return 1;
@ -18302,9 +18358,6 @@ public OnPlayerEnterDynamicCP(playerid, checkpointid)
aPlayer[ 0 ] = playerid; aPlayer[ 0 ] = playerid;
new
bDropoff = ( CP_DROP_OFF_COP <= checkpointid <= CP_DROP_OFF_HELI );
/* ** Checkpoint Denials ** */ /* ** Checkpoint Denials ** */
if ( p_Spectating{ playerid } == true ) if ( p_Spectating{ playerid } == true )
return 1; return 1;
@ -18315,6 +18368,14 @@ public OnPlayerEnterDynamicCP(playerid, checkpointid)
if ( IsPlayerTied( playerid ) ) if ( IsPlayerTied( playerid ) )
return SendError( playerid, "You can't do anything as you are tied." ); return SendError( playerid, "You can't do anything as you are tied." );
/* ** Dropoff check ** */
new
bDropoff = false;
for ( new i = CP_DROP_OFF_COP; i < CP_DROP_OFF_HELI; i ++ )
if ( checkpointid == g_Checkpoints[ i ] )
bDropoff = true;
if ( IsPlayerJailed( playerid ) && !bDropoff ) if ( IsPlayerJailed( playerid ) && !bDropoff )
return SendError( playerid, "You're jailed, and you accessed a checkpoint. I smell a cheater." ), KickPlayerTimed( playerid ), 1; return SendError( playerid, "You're jailed, and you accessed a checkpoint. I smell a cheater." ), KickPlayerTimed( playerid ), 1;
@ -18634,7 +18695,7 @@ public OnPlayerEnterDynamicRaceCP( playerid, checkpointid )
// Check if it is really quick to finish // Check if it is really quick to finish
if ( iTimeElapsed < iTheoreticalFinish ) { if ( iTimeElapsed < iTheoreticalFinish ) {
SendServerMessage( playerid, "You've been kicked due to suspected teleport hacking." ); SendServerMessage( playerid, "You've been kicked due to suspected teleport hacking (0xBC)." );
KickPlayerTimed( playerid ); KickPlayerTimed( playerid );
return 1; return 1;
} }
@ -20306,7 +20367,7 @@ thread OnPlayerLogin( playerid, password[ ] )
p_PingImmunity{ playerid } = cache_get_field_content_int( 0, "PING_IMMUNE", dbHandle ); p_PingImmunity{ playerid } = cache_get_field_content_int( 0, "PING_IMMUNE", dbHandle );
p_HitsComplete[ playerid ] = cache_get_field_content_int( 0, "CONTRACTS", dbHandle ); p_HitsComplete[ playerid ] = cache_get_field_content_int( 0, "CONTRACTS", dbHandle );
p_TruckedCargo[ playerid ] = cache_get_field_content_int( 0, "TRUCKED", dbHandle ); p_TruckedCargo[ playerid ] = cache_get_field_content_int( 0, "TRUCKED", dbHandle );
p_CopTutorial{ playerid } = cache_get_field_content_int( 0, "COP_TUTORIAL", dbHandle ); //p_CopTutorial{ playerid } = cache_get_field_content_int( 0, "COP_TUTORIAL", dbHandle );
p_Job{ playerid } = cache_get_field_content_int( 0, "JOB", dbHandle ); p_Job{ playerid } = cache_get_field_content_int( 0, "JOB", dbHandle );
p_VIPJob{ playerid } = cache_get_field_content_int( 0, "VIP_JOB", dbHandle ); p_VIPJob{ playerid } = cache_get_field_content_int( 0, "VIP_JOB", dbHandle );
p_AdminJailed{ playerid } = cache_get_field_content_int( 0, "JAIL_ADMIN", dbHandle ); p_AdminJailed{ playerid } = cache_get_field_content_int( 0, "JAIL_ADMIN", dbHandle );
@ -20528,7 +20589,7 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
p_Kills[ playerid ] = 1; p_Kills[ playerid ] = 1;
p_Deaths[ playerid ] = 1; p_Deaths[ playerid ] = 1;
p_XP[ playerid ] = 0; p_XP[ playerid ] = 0;
p_CopTutorial{ playerid } = 0; //p_CopTutorial{ playerid } = 0;
p_drillStrength[ playerid ] = MAX_DRILL_STRENGTH; p_drillStrength[ playerid ] = MAX_DRILL_STRENGTH;
p_OwnedHouses[ playerid ] = 0; p_OwnedHouses[ playerid ] = 0;
p_OwnedVehicles[ playerid ] = 0; p_OwnedVehicles[ playerid ] = 0;
@ -23187,7 +23248,7 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
SendServerMessage( playerid, "You have successfully changed the name of your apartment." ); SendServerMessage( playerid, "You have successfully changed the name of your apartment." );
ShowPlayerDialog( playerid, DIALOG_FLAT_CONTROL, DIALOG_STYLE_LIST, "{FFFFFF}Owned Apartments", "Spawn Here\nLock Apartment\nModify Apartment Name\nSell Apartment\nFurniture", "Select", "Back" ); ShowPlayerDialog( playerid, DIALOG_FLAT_CONTROL, DIALOG_STYLE_LIST, "{FFFFFF}Owned Apartments", "Spawn Here\nLock Apartment\nModify Apartment Name\nSell Apartment\nFurniture", "Select", "Back" );
} }
if ( ( dialogid == DIALOG_POLICE_TUTORIAL ) ) /*if ( ( dialogid == DIALOG_POLICE_TUTORIAL ) )
{ {
if ( response ) if ( response )
{ {
@ -23241,7 +23302,7 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
SendServerMessage( playerid, "You have finished the law enforcement officer tutorial. You can view it again by typing "COL_GREY"/policetutorial" ); SendServerMessage( playerid, "You have finished the law enforcement officer tutorial. You can view it again by typing "COL_GREY"/policetutorial" );
} }
} }
} }*/
if ( ( dialogid == DIALOG_HOUSE_PW ) && response ) if ( ( dialogid == DIALOG_HOUSE_PW ) && response )
{ {
new i = p_PasswordedHouse[ playerid ]; new i = p_PasswordedHouse[ playerid ];
@ -23257,7 +23318,7 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
SetPlayerInterior( playerid, g_houseData[ i ] [ E_INTERIOR_ID ] ); SetPlayerInterior( playerid, g_houseData[ i ] [ E_INTERIOR_ID ] );
} }
} }
if ( ( dialogid == DIALOG_VIEW_LEO_TUT ) && response ) /*if ( ( dialogid == DIALOG_VIEW_LEO_TUT ) && response )
{ {
format( szNormalString, 100, "UPDATE `USERS` SET `COP_TUTORIAL`=0 WHERE `ID`=%d'", p_AccountID[ playerid ] ); format( szNormalString, 100, "UPDATE `USERS` SET `COP_TUTORIAL`=0 WHERE `ID`=%d'", p_AccountID[ playerid ] );
mysql_single_query( szNormalString ); mysql_single_query( szNormalString );
@ -23267,7 +23328,7 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
SendServerMessage( playerid, "The law enforcement tutorial will be shown as soon as you spawn with a police class." ); SendServerMessage( playerid, "The law enforcement tutorial will be shown as soon as you spawn with a police class." );
else else
SpawnPlayer( playerid ); SpawnPlayer( playerid );
} }*/
if ( dialogid == DIALOG_FURNITURE ) if ( dialogid == DIALOG_FURNITURE )
{ {
if ( p_InHouse[ playerid ] != -1 ) { if ( p_InHouse[ playerid ] != -1 ) {
@ -23716,7 +23777,7 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
} }
if ( ( dialogid == DIALOG_VIP ) && response ) if ( ( dialogid == DIALOG_VIP ) && response )
{ {
if ( strlen( inputtext ) != 17 ) if ( strlen( inputtext ) != 16 )
{ {
cmd_donated( playerid, "" ); cmd_donated( playerid, "" );
return SendError( playerid, "The transaction ID you entered is invalid." ); return SendError( playerid, "The transaction ID you entered is invalid." );
@ -23728,7 +23789,7 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
return SendServerMessage( playerid, "Our anti-exploit system requires you to wait another %d seconds before redeeming.", g_redeemVipWait - g_iTime ); return SendServerMessage( playerid, "Our anti-exploit system requires you to wait another %d seconds before redeeming.", g_redeemVipWait - g_iTime );
} }
HTTP( playerid, HTTP_GET, sprintf( "donate.irresistiblegaming.com/igcheck_code.php?transaction_id=%s", inputtext ), "", "OnDonationRedemptionResponse" ); HTTP( playerid, HTTP_GET, sprintf( "irresistiblegaming.com/donate/validate_code/%s", inputtext ), "", "OnDonationRedemptionResponse" );
SendServerMessage( playerid, "We're now looking up this transaction. Please wait." ); SendServerMessage( playerid, "We're now looking up this transaction. Please wait." );
} }
if ( dialogid == DIALOG_DONATED ) if ( dialogid == DIALOG_DONATED )
@ -23737,7 +23798,7 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
strcat( szLargeString, ""COL_WHITE"Thank you a lot for donating! :D In return for your dignity, you have received Irresistible Coins.\n\n"\ strcat( szLargeString, ""COL_WHITE"Thank you a lot for donating! :D In return for your dignity, you have received Irresistible Coins.\n\n"\
""COL_GREY" * What do I do with Irresistible Coins?"COL_WHITE" You can claim the V.I.P of your choice via "COL_GREY"/irresistiblecoins market"COL_WHITE".\n" ); ""COL_GREY" * What do I do with Irresistible Coins?"COL_WHITE" You can claim the V.I.P of your choice via "COL_GREY"/irresistiblecoins market"COL_WHITE".\n" );
strcat( szLargeString, ""COL_GREY" * How many do I have?"COL_WHITE" You can see how many Irresistible Coins you have via "COL_GREY"/irresistiblecoins"COL_WHITE".\n" \ strcat( szLargeString, ""COL_GREY" * How many do I have?"COL_WHITE" You can see how many Irresistible Coins you have via "COL_GREY"/irresistiblecoins"COL_WHITE".\n" \
""COL_GREY" * I'm unsure, help?"COL_WHITE" If you have any questions, please /ask otherwise enquire Lorenc via the forums!\n\nThank you once again for your contribution to the community! :P" ); ""COL_GREY" * I'm unsure, help?"COL_WHITE" If you have any questions, please /ask otherwise enquire Lorenc via the forums!\n\nThank you once again for your contribution to our community! :P" );
return ShowPlayerDialog( playerid, DIALOG_FINISHED_DONATING, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Irresistible Gaming Donation", szLargeString, "Got it!", "" ); return ShowPlayerDialog( playerid, DIALOG_FINISHED_DONATING, DIALOG_STYLE_MSGBOX, ""COL_GOLD"Irresistible Gaming Donation", szLargeString, "Got it!", "" );
} }
if ( dialogid == DIALOG_FINISHED_DONATING ) { if ( dialogid == DIALOG_FINISHED_DONATING ) {
@ -24991,6 +25052,30 @@ stock SavePlayerData( playerid, bool: logout = false )
stock initializeTextDraws( ) stock initializeTextDraws( )
{ {
g_EasterTD[0] = TextDrawCreate(529.000000, 330.000000, "~r~~h~H~b~~h~a~g~~h~p~p~~h~p~y~~h~y_~r~~h~E~b~~h~a~g~~h~s~p~~h~t~y~~h~e~r~~h~r");
TextDrawBackgroundColor(g_EasterTD[0], 255);
TextDrawFont(g_EasterTD[0], 3);
TextDrawLetterSize(g_EasterTD[0], 0.300000, 1.200000);
TextDrawColor(g_EasterTD[0], -1);
TextDrawSetOutline(g_EasterTD[0], 1);
TextDrawSetProportional(g_EasterTD[0], 1);
TextDrawSetSelectable(g_EasterTD[0], 0);
g_EasterTD[1] = TextDrawCreate(598.000000, 319.000000, "New Textdraw");
TextDrawBackgroundColor(g_EasterTD[1], 0);
TextDrawFont(g_EasterTD[1], 5);
TextDrawLetterSize(g_EasterTD[1], 0.500000, 1.000000);
TextDrawColor(g_EasterTD[1], -1);
TextDrawSetOutline(g_EasterTD[1], 0);
TextDrawSetProportional(g_EasterTD[1], 1);
TextDrawSetShadow(g_EasterTD[1], 1);
TextDrawUseBox(g_EasterTD[1], 1);
TextDrawBoxColor(g_EasterTD[1], 0);
TextDrawTextSize(g_EasterTD[1], 31.000000, 34.000000);
TextDrawSetPreviewModel(g_EasterTD[1], 19341);
TextDrawSetPreviewRot(g_EasterTD[1], -16.000000, 0.000000, -55.000000, 1.000000);
TextDrawSetSelectable(g_EasterTD[1], 0);
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);
@ -30048,6 +30133,7 @@ thread OnGatesLoad( )
cache_get_field_content( i, "MOVE_RY", Field ), g_gateData[ gID ] [ E_MOVE_RY ] = floatstr( Field ); cache_get_field_content( i, "MOVE_RY", Field ), g_gateData[ gID ] [ E_MOVE_RY ] = floatstr( Field );
cache_get_field_content( i, "MOVE_RZ", Field ), g_gateData[ gID ] [ E_MOVE_RZ ] = floatstr( Field ); cache_get_field_content( i, "MOVE_RZ", Field ), g_gateData[ gID ] [ E_MOVE_RZ ] = floatstr( Field );
g_gateData[ gID ] [ E_CLOSE_TIMER ] = -1;
g_gateData[ gID ] [ E_OBJECT ] = CreateDynamicObject( g_gateData[ gID ] [ E_MODEL ], g_gateData[ gID ] [ E_X ], g_gateData[ gID ] [ E_Y ], g_gateData[ gID ] [ E_Z ], g_gateData[ gID ] [ E_RX ], g_gateData[ gID ] [ E_RY ], g_gateData[ gID ] [ E_RZ ] ); g_gateData[ gID ] [ E_OBJECT ] = CreateDynamicObject( g_gateData[ gID ] [ E_MODEL ], g_gateData[ gID ] [ E_X ], g_gateData[ gID ] [ E_Y ], g_gateData[ gID ] [ E_Z ], g_gateData[ gID ] [ E_RX ], g_gateData[ gID ] [ E_RY ], g_gateData[ gID ] [ E_RZ ] );
Iter_Add(gates, gID); Iter_Add(gates, gID);
@ -30071,6 +30157,7 @@ stock CreateGate( playerid, password[ 8 ], model, Float: speed, Float: range, Fl
g_gateData[ gID ] [ E_MODEL ] = model; g_gateData[ gID ] [ E_MODEL ] = model;
g_gateData[ gID ] [ E_SPEED ] = speed; g_gateData[ gID ] [ E_SPEED ] = speed;
g_gateData[ gID ] [ E_TIME ] = 2000; g_gateData[ gID ] [ E_TIME ] = 2000;
g_gateData[ gID ] [ E_CLOSE_TIMER ] = -1;
g_gateData[ gID ] [ E_RANGE ] = range; g_gateData[ gID ] [ E_RANGE ] = range;
g_gateData[ gID ] [ E_X ] = x; g_gateData[ gID ] [ E_X ] = x;
g_gateData[ gID ] [ E_Y ] = y; g_gateData[ gID ] [ E_Y ] = y;
@ -30094,15 +30181,6 @@ stock CreateGate( playerid, password[ 8 ], model, Float: speed, Float: range, Fl
return gID; return gID;
} }
stock IsGateAtOpenPosition( gID )
{
static
Float: X, Float: Y, Float: Z;
GetDynamicObjectPos( g_gateData[ gID ] [ E_OBJECT ], X, Y, Z );
return IsPointToPoint( 1.0, X, Y, Z, g_gateData[ gID ] [ E_X ], g_gateData[ gID ] [ E_Y ], g_gateData[ gID ] [ E_Z ] );
}
stock getClosestGate( playerid, &Float: dis = 99999.99 ) stock getClosestGate( playerid, &Float: dis = 99999.99 )
{ {
new new
@ -30137,8 +30215,10 @@ stock UpdateGateData( gID )
} }
} }
function StartGateClose( gID ) function StartGateClose( gID ) {
g_gateData[ gID ] [ E_CLOSE_TIMER ] = -1;
return MoveDynamicObject( g_gateData[ gID ] [ E_OBJECT ], g_gateData[ gID ] [ E_X ], g_gateData[ gID ] [ E_Y ], g_gateData[ gID ] [ E_Z ], g_gateData[ gID ] [ E_SPEED ], g_gateData[ gID ] [ E_RX ], g_gateData[ gID ] [ E_RY ], g_gateData[ gID ] [ E_RZ ] ), 1; return MoveDynamicObject( g_gateData[ gID ] [ E_OBJECT ], g_gateData[ gID ] [ E_X ], g_gateData[ gID ] [ E_Y ], g_gateData[ gID ] [ E_Z ], g_gateData[ gID ] [ E_SPEED ], g_gateData[ gID ] [ E_RX ], g_gateData[ gID ] [ E_RY ], g_gateData[ gID ] [ E_RZ ] ), 1;
}
stock CreatePaintballLobby( pid, playerid, const szLobbyName[ 16 ], iPlayerCap, iArena, Float: fHealth = 100.0, Float: fArmour = 100.0 ) stock CreatePaintballLobby( pid, playerid, const szLobbyName[ 16 ], iPlayerCap, iArena, Float: fHealth = 100.0, Float: fArmour = 100.0 )
{ {
@ -30642,7 +30722,7 @@ stock ShowPlayerShopMenu( playerid )
#if ENABLED_EASTER_EGG == true #if ENABLED_EASTER_EGG == true
stock DestroyEasterEgg( id ) stock DestroyEasterEgg( id )
{ {
if ( id >= MAX_EGGS || id < 0 ) if ( !( 0 <= id < MAX_EGGS ) )
return 0; return 0;
Iter_Remove(eastereggs, id); Iter_Remove(eastereggs, id);
@ -31989,19 +32069,24 @@ stock WarnPlayerClass( playerid, bool: bArmy = false, iPoints = 1 )
stock IsRandomDeathmatch( issuerid, damagedid ) stock IsRandomDeathmatch( issuerid, damagedid )
{ {
/*if ( issuerid != INVALID_PLAYER_ID && damagedid != INVALID_PLAYER_ID ) if ( issuerid != INVALID_PLAYER_ID && damagedid != INVALID_PLAYER_ID )
{ {
new new
iW = p_WantedLevel[ issuerid ], iC = p_Class[ issuerid ], iW = p_WantedLevel[ issuerid ], iC = p_Class[ issuerid ],
dW = p_WantedLevel[ damagedid ], dC = p_Class[ damagedid ] dW = p_WantedLevel[ damagedid ], dC = p_Class[ damagedid ]
; ;
if ( !IsPlayerInCasino( issuerid ) || !IsPlayerInCasino( damagedid ) )
return false; // applies only to casinos
return ( !iW && iC != CLASS_POLICE && !dW && dC != CLASS_POLICE ) || ( iW && iC != CLASS_POLICE && !dW && dC != CLASS_POLICE ) || ( !iW && iC != CLASS_POLICE && dW && dC != CLASS_POLICE ) || ( !iW && iC != CLASS_POLICE && dC == CLASS_POLICE ); return ( !iW && iC != CLASS_POLICE && !dW && dC != CLASS_POLICE ) || ( iW && iC != CLASS_POLICE && !dW && dC != CLASS_POLICE ) || ( !iW && iC != CLASS_POLICE && dW && dC != CLASS_POLICE ) || ( !iW && iC != CLASS_POLICE && dC == CLASS_POLICE );
}*/ }
#pragma unused issuerid
#pragma unused damagedid
return false; return false;
} }
stock IsPlayerInCasino( playerid )
return ( GetPlayerInterior( playerid ) == 10 && GetPlayerVirtualWorld( playerid ) == 23 ) || ( GetPlayerInterior( playerid ) == 1 && GetPlayerVirtualWorld( playerid ) == 82 );
//function RespawnVehicle( vehicleid ) //function RespawnVehicle( vehicleid )
// return SetVehicleToRespawn( vehicleid ); // return SetVehicleToRespawn( vehicleid );
@ -32287,12 +32372,7 @@ stock initializeActors( )
{ 221, -2656.4712, 1413.2327, 906.2734, 232.1765, "PAULNMAC", "wank_loop", 18 }, { 221, -2656.4712, 1413.2327, 906.2734, 232.1765, "PAULNMAC", "wank_loop", 18 },
// Hobo // Hobo
{ 137, -1519.9003, 678.79800, 7.459900, 14.7968, "BEACH", "ParkSit_M_loop", 0 }, { 137, -1519.9003, 678.79800, 7.459900, 14.7968, "BEACH", "ParkSit_M_loop", 0 }
// Gal Diamond
{ 163, -2038.4918, 263.2710, 904.9886, 9.3693, "DEALER", "DEALER_IDLE", 0 },
{ 164, -2041.7032, 263.2434, 904.9886, 358.71, "DEALER", "DEALER_IDLE", 0 },
{ 124, -2042.2169, 244.6347, 29.05720, 63.890, "DEALER", "DEALER_IDLE", 0 }
} }
; ;
@ -32549,8 +32629,8 @@ stock RollSlotMachine( playerid, id )
if ( g_slotmachineData[ id ] [ E_ENTRY_FEE ] == 10000 ) if ( g_slotmachineData[ id ] [ E_ENTRY_FEE ] == 10000 )
{ {
// 1 in 20000 odds // 1 in 10000 odds
randomChance = random( 20001 ); randomChance = random( 10001 );
// let's see where they landed // let's see where they landed
switch ( randomChance ) switch ( randomChance )
@ -32560,35 +32640,33 @@ stock RollSlotMachine( playerid, id )
rotation = 0.0; rotation = 0.0;
// single brick // single brick
case 1 .. 62: case 1 .. 55:
rotation = 40.0; rotation = 40.0;
// gold bells // gold bells
case 126 .. 252: case 100 .. 210:
rotation = 60.0; rotation = 60.0;
// cherry // cherry
case 500 .. 750: case 220 .. 440:
rotation = 80.0; rotation = 80.0;
// grapes // grapes
case 1500 .. 2000: case 500 .. 1050:
rotation = 100.0; rotation = 100.0;
// 69s // 69s
case 5000 .. 10000: case 1100 .. 2200:
rotation = 20.0; rotation = 20.0;
default: default:
loss = true; loss = true;
} }
printf( "%s %d/20000 chance", ReturnPlayerName( playerid ), randomChance );
} }
else else
{ {
// 1 in 100000 odds // 1 in 35000 odds
randomChance = random( 100001 ); randomChance = random( 35001 );
// let's see where they landed // let's see where they landed
switch ( randomChance ) switch ( randomChance )
@ -32598,30 +32676,28 @@ stock RollSlotMachine( playerid, id )
rotation = 0.0; rotation = 0.0;
// single brick // single brick
case 300 .. 600: case 192 .. 384:
rotation = 40.0; rotation = 40.0;
// gold bells // gold bells
case 700 .. 1300: case 385 .. 770:
rotation = 60.0; rotation = 60.0;
// cherry // cherry
case 1400 .. 2600: case 771 .. 1541:
rotation = 80.0; rotation = 80.0;
// grapes // grapes
case 3000 .. 6000: case 1925 .. 3850:
rotation = 100.0; rotation = 100.0;
// 69s // 69s
case 10000 .. 35000: case 3851 .. 7701:
rotation = 20.0; rotation = 20.0;
default: default:
loss = true; loss = true;
} }
printf( "%s %d/100000 chance", ReturnPlayerName( playerid ), randomChance );
} }
if ( loss ) if ( loss )
{ {
@ -32637,7 +32713,6 @@ stock RollSlotMachine( playerid, id )
} }
else else
{ {
print("reversed rotation");
// assign random rotation (must be <= 16) // assign random rotation (must be <= 16)
rotation = float( RandomEx( 2, 18 ) ) * 20.0; rotation = float( RandomEx( 2, 18 ) ) * 20.0;
@ -33224,7 +33299,7 @@ thread OnGrabLatestDonor( hidden )
// Play sound // Play sound
foreach(new p : Player) if ( !IsPlayerUsingRadio( p ) ) { foreach(new p : Player) if ( !IsPlayerUsingRadio( p ) ) {
PlayAudioStreamForPlayer( p, "http://irresistiblegaming.com/game_sounds/donated.mp3" ); PlayAudioStreamForPlayer( p, "http://files.irresistiblegaming.com/game_sounds/donated.mp3" );
} }
TextDrawSetString( g_TopDonorTD, sprintf( "Le Latest Donor %s - $%0.2f", szName, fAmount ) ); TextDrawSetString( g_TopDonorTD, sprintf( "Le Latest Donor %s - $%0.2f", szName, fAmount ) );
@ -33701,7 +33776,7 @@ public OnPlayerHoldupStore( playerid, clerkid, step )
PlayerTextDrawSetString( playerid, p_RobberyRiskTD[ playerid ], "~r~~h~~h~Clerk is getting ideas" ); PlayerTextDrawSetString( playerid, p_RobberyRiskTD[ playerid ], "~r~~h~~h~Clerk is getting ideas" );
// Shoot player // Shoot player
if ( random( 101 ) < 20 ) { if ( random( 101 ) < 20 && p_Robberies[ playerid ] > 10 ) {
g_robberyNpcData[ clerkid ] [ E_PROVOKED ] = true; g_robberyNpcData[ clerkid ] [ E_PROVOKED ] = true;
return StopPlayerNpcRobbery( playerid ), FCNPC_ShootAtPlayer( playerid, npcid, .weaponid = 25, .clerkid = clerkid ); return StopPlayerNpcRobbery( playerid ), FCNPC_ShootAtPlayer( playerid, npcid, .weaponid = 25, .clerkid = clerkid );
} }

View File

@ -70,8 +70,8 @@ new
#define szRedemptionSalt "7resta#ecacakumedeM=yespawr!d@et" #define szRedemptionSalt "7resta#ecacakumedeM=yespawr!d@et"
enum E_DONATION_DATA enum E_DONATION_DATA
{ {
E_TRANSACTION_ID[ 64 ], E_TRANSACTION_ID[ 17 ],
E_EMAIL[ 256 ], E_NAME[ 24 ],
E_AMOUNT[ 11 ], E_AMOUNT[ 11 ],
E_PURPOSE[ 64 ], E_PURPOSE[ 64 ],
E_DATE E_DATE

File diff suppressed because it is too large Load Diff