Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#define FILTERSCRIPT
- //Server Config
- #define SERVER_NAME "Pink Panters Role Play"
- #define SERVER_MAP_NAME "Bone County"
- #define SERVER_GM_TEXT "PP:RP v1"
- #define SERVER_GM_CREATOR "Matej"
- #define SERVER_GM_UPDATER "Matej"
- // Includes
- #include <a_samp>
- #include <a_players>
- #include <streamer>
- #include <dini>
- #include <dudb>
- #include <mSelection>
- #include <dutils>
- #pragma unused ret_memcpy
- #include <foreach>
- #include <YSI\y_ini>
- #include <YSI\internal\y_version>
- #include <YSI\y_scripting>
- #include <YSI\y_utils>
- #include <YSI\y_als>
- #include <YSI\y_stringhash>
- #include <YSI\internal\y_shortfunc>
- #include <YSI\y_debug>
- #include <sscanf2>
- #include <zcmd>
- #include <f_streamer>
- #include <streamer>
- #include <OPSP>
- #include <progress>
- #include <yom_buttons>
- #include <gvc>
- #include <YSI\internal\y_version>
- #include <YSI\internal\y_funcinc>
- #define Scripting_FastString(%1,%2,%3,%4) \
- (((%1) << 0) | ((%2) << 8) | ((%3) << 16) | ((%4) << 24))
- #define TEXT_DRAW_FONT_MODEL_PREVIEW
- #define ALS_PREFIX S@@
- #define SpeedCheck(%0,%1,%2,%3,%4) floatround(floatsqroot(%4?(%0*%0+%1*%1+%2*%2):(%0*%0+%1*%1) ) *%3*1.6)
- #define ClearChat(%0) for(new i=0; i<20; i++) SendClientMessage(%0, -1, " ")
- native WP_Hash(_buffer[], len, const str[]);
- #pragma tabsize 0
- #define MAX_CONNECTIONS_FROM_IP 2
- //Streamer
- #define STREAMER_TYPE_OBJECT (0)
- #define STREAMER_TYPE_PICKUP (1)
- #define STREAMER_TYPE_CP (2)
- #define STREAMER_TYPE_RACE_CP (3)
- #define STREAMER_TYPE_MAP_ICON (4)
- #define STREAMER_TYPE_3D_TEXT_LABEL (5)
- #define STREAMER_TYPE_AREA (6)
- #define STREAMER_AREA_TYPE_CIRCLE (0)
- #define STREAMER_AREA_TYPE_CYLINDER (1)
- #define STREAMER_AREA_TYPE_SPHERE (2)
- #define STREAMER_AREA_TYPE_RECTANGLE (3)
- #define STREAMER_AREA_TYPE_CUBOID (4)
- #define STREAMER_AREA_TYPE_POLYGON (5)
- #define STREAMER_OBJECT_TYPE_GLOBAL (0)
- #define STREAMER_OBJECT_TYPE_PLAYER (1)
- #define STREAMER_OBJECT_TYPE_DYNAMIC (2)
- #define INVALID_STREAMER_ID (0)
- //YSI
- // Marker Colors
- #define TRANSPARENT_NG 0x9ACD3200
- #define TCOLOR_NAVYBLUE 0x8D8DFF00
- #define COLOR_ARES 0x9ACD3200
- #define TRANSPARENT_WHITE 0xFFFFFF00
- #define TRANSPARENT_GREY 0xAFAFAF00
- #define TRANSPARENT_BLUE 0x2641FE00
- #define TRANSPARENT_ORANGE 0xFF990000
- #define TRANSPARENT_PURPLE 0xC2A2DA00
- #define TRANSPARENT_VIP 0xC93CCE00
- //Petardi system
- #define RocketHeight 100 // You can edit this
- #define RocketSpread 30 // Spread till
- #define MAX_LAUNCH 20 // Max Could be launched
- #define MAX_FIREWORKS 100 // Max Fireworks had
- #define COLOR_YELLOW 0xFFFF00AA // Credits = SA-MP Forums
- // POLICE
- #define MARKER_LIGHTBLUE 0x33CCFFFF
- #define TOTAL_ITEMS 207
- #define SELECTION_ITEMS 21
- #define ITEMS_PER_LINE 7
- #define HEADER_TEXT "Vehicles"
- #define NEXT_TEXT "Next"
- #define PREV_TEXT "Prev"
- #define DIALOG_BASE_X 75.0
- #define DIALOG_BASE_Y 130.0
- #define DIALOG_WIDTH 550.0
- #define DIALOG_HEIGHT 180.0
- #define SPRITE_DIM_X 60.0
- #define SPRITE_DIM_Y 70.0
- new gTotalItems = TOTAL_ITEMS;
- // Colors
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_PM1 0xA65FC7FF
- #define COLOR_PM2 0xD35FC7FF
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define TEAM_GROVE_COLOR 0x00AA00FF
- #define COLOR_OOC 0xE0FFFFFF
- #define COLOR_GREY 0xAFAFAFFF
- #define COLOR_LIGHTGREEN 0xADFF2FFF
- #define COLOR_LIGHTRED 0xFF6347FF
- #define COLOR_ALLDEPT 0xFF8282AA
- #define COLOR_DARKRED 0xAA3333FF
- #define COLOR_RED 0xFF0606FF
- #define TCOLOR_YELLOW 0xFFFF0000
- #define COLOR_TWPINK 0xE75480AA
- #define TEAM_HIT_COLOR 0xFFFFFF00
- #define COLOR_DBLUE 0x2641FEAA
- #define TEAM_CYAN_COLOR 0xFF8282AA
- #define COLOR_LIGHTBLUE 0x33CCFFFF
- #define COLOR_GREEN 0x33AA33FF
- #define COLOR_INDIGO 0x4B00B000
- #define COLOR_PINK 0xFF66FF00
- #define COLOR_BLACK 0x00000000
- #define COLOR_YELLOW 0xFFFF00FF
- #define COLOR_PURPLE 0xC2A2DAFF
- #define COLOR_ORANGE 0xFF9900FF
- #define COLOR_REPORT 0xFFFF91FF
- #define COLOR_RADIO 0x8D8DFFFF
- #define COLOR_DEPTRADIO 0xFFD700FF
- #define COLOR_BLUE 0x2641FEFF
- #define COLOR_MEDIC 0xFF8282FF
- #define COLOR_NEWBIE 0x589F39FF
- #define COLOR_LIME 0x00FF00FF
- #define COLOR_NEWS 0x049C7100
- #define COLOR_CYAN 0x01FCFFFF
- #define COLOR_VIP 0x33FFFF
- #define COLOR_SYSTEM 0xEFEFF7AA
- #define green 0x33FF33AA
- #define blue 0x00FFFFAA
- #define colorRed 0xFF0000FF
- #define colorYellow 0xFFFF00FF
- //Skins
- new skins[] = {
- 46,
- 47,
- 48,
- };
- //Clearchat spawnbutton
- #define ClearChat(%0) for(new i=0; i<20; i++) SendClientMessage(%0, -1, " ")
- // Custom Defines
- #define RADIO 15
- #define MAX_FACTIONS 8 // 0 = Civil | 1 = BCVP | 2 = Vlada | 3 = Hitman Agency | 4 = Kanal 21 | 5 = BCFMD | 6 = Alfi
- #define MAX_FAMILIES 11 // 1 to 10, ignore 0
- #define MAX_BIZ 101 // Ignore 0
- #define MAX_BUILDINGS 51//Ignore 0
- #define MAX_HOUSES 1333 // Ignore 0
- #define MAX_GARAGES 501 //Ignore 0
- #define MAX_DOORS 500
- #define MAX_MAPICONS 100
- #define MAX_MUSIC 24
- #define MAX_ADS 50
- #define MAX_CUSTOM_VEHICLES 20
- #define MAX_POINTS 6
- #define MAX_DVEHICLES 50
- #define MAX_SPIKESTRIPS 30
- #define MAX_BLOCKADES 10
- #define MAX_GATES 50 // Ignore 0
- #define MAX_OBJ 1001
- #define MAX_gOBJ 1001
- #define MAX_vvveh 50
- //walkstyle defines
- #define WALK_DEFAULT (0)
- #define WALK_NORMAL (1)
- #define WALK_PED (2)
- #define WALK_GANGSTA (3)
- #define WALK_GANGSTA2 (4)
- #define WALK_OLD (5)
- #define WALK_FAT_OLD (6)
- #define WALK_FAT (7)
- #define WALK_LADY (8)
- #define WALK_LADY2 (9)
- #define WALK_WHORE (10)
- #define WALK_WHORE2 (11)
- #define WALK_DRUNK (12)
- #define WALK_BLIND (13)
- //Walks
- new walktime[MAX_PLAYERS];
- // Rocket Systeem
- new Rocket[MAX_LAUNCH];
- new RocketLight[MAX_LAUNCH];
- new RocketSmoke[MAX_LAUNCH];
- new RocketExplosions[MAX_LAUNCH];
- new Float:rx[MAX_LAUNCH];
- new Float:ry[MAX_LAUNCH];
- new Float:rz[MAX_LAUNCH];
- new FireworkTotal;
- new Fired;
- new Text:tdCents[MAX_PLAYERS];
- //
- #if defined FILTERSCRIPT
- new door0;
- // 18456 = 19456 (Wall096)
- // 18619 = 19437 (Wall077)
- // 18621 = 19435 (Wall075)
- // 9577 = 19364 (Wall012)
- // 9623 = 19410 (Wall058)
- // 9590 = 19377 (Wall025)
- // 9575 = 19362 (Wall010)
- // 9582 = 19369 (Wall017)
- // 9610 = 19397 (Wall045)
- // 9628 = 19415 (Wall063)
- // 9592 = 19379 (Wall027)
- // 9606 = 19393 (Wall041)
- // 3915 = 19462 (Wall102)
- // 3916 = 19461 (Wall101)
- // 3909 = 19466 (Window001)
- // 3908 = 19330 (Firehat01)
- // 3907 = 19331 (Firehat02)
- // 18614 = 19442 (Wall082)
- // 9583 = 19370 (Wall018)
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Fire Department - By Wennicke");
- print("--------------------------------------\n");
- return 1;
- }
- //Motor system podatoci
- forward StartEngine(playerid);
- forward DamagedEngine(playerid);
- new vehEngine[MAX_VEHICLES];
- //Motor system//
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- public OnFilterScriptInit()
- {
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Pink Panters Role Play ");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- CreateObject(3589, -95.60000, 1053.19995, 21.50000, 0.00000, 0.00000, 96.00000);
- CreateObject(3634, -134.89999, 995.90002, 21.00000, 0.00000, 0.00000, 180.00000);
- CreateObject(769, -73.50000, 999.59998, 18.80000, 0.00000, 0.00000, 94.99900);
- CreateObject(3648, -92.50000, 997.40039, 21.50000, 0.00000, 0.00000, 0.00000);
- CreateObject(3649, -91.90000, 1021.50000, 21.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(774, -76.90000, 1023.90002, 18.70000, 0.00000, 0.00000, 135.00000);
- CreateObject(3698, -149.30000, 1059.19995, 21.70000, 0.00000, 0.00000, 270.00000);
- CreateObject(3698, -150.70000, 1022.59998, 21.50000, 0.00000, 0.00000, 0.00000);
- CreateObject(1407, -137.39999, 1045.19995, 19.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(1407, -106.00000, 1025.30005, 19.70000, 0.00000, 0.00000, 270.00000);
- CreateObject(1407, -106.00000, 1029.90002, 19.70000, 0.00000, 0.00000, 270.00000);
- CreateObject(1407, -103.60000, 1032.50000, 19.60000, 0.00000, 0.00000, 190.00000);
- CreateObject(1407, -99.00000, 1032.80005, 19.50000, 0.00000, 0.00000, 179.99800);
- CreateObject(1407, -93.80000, 1032.50000, 19.50000, 0.00000, 0.00000, 169.99500);
- CreateObject(1407, -89.20000, 1032.50000, 19.50000, 0.00000, 0.00000, 189.99100);
- CreateObject(1407, -84.50000, 1032.90002, 19.50000, 0.00000, 0.00000, 179.98700);
- CreateObject(1407, -79.90000, 1032.40002, 19.50000, 0.00000, 0.00000, 169.98399);
- CreateObject(1407, -77.20000, 1026.50000, 19.50000, 0.00000, 0.00000, 99.98000);
- CreateObject(1407, -77.30000, 1021.29999, 19.50000, 0.00000, 0.00000, 79.97600);
- CreateObject(1407, -78.20000, 1016.70001, 19.50000, 0.00000, 0.00000, 79.97500);
- CreateObject(1407, -105.90000, 1017.29999, 19.70000, 0.00000, 0.00000, 270.00000);
- CreateObject(1407, -103.10000, 1010.50000, 19.60000, 0.00000, 0.00000, 0.00000);
- CreateObject(1407, -98.30000, 1010.90002, 19.60000, 0.00000, 0.00000, 10.00000);
- CreateObject(1407, -93.70000, 1011.29999, 19.50000, 0.00000, 0.00000, 359.99799);
- CreateObject(1407, -105.50000, 1006.40002, 19.60000, 0.00000, 0.00000, 90.00000);
- CreateObject(1407, -105.60000, 1001.70001, 19.60000, 0.00000, 0.00000, 90.00000);
- CreateObject(1407, -105.40000, 989.59998, 19.70000, 0.00000, 0.00000, 90.00000);
- CreateObject(1407, -105.40000, 994.20001, 19.60000, 0.00000, 0.00000, 94.00000);
- CreateObject(1407, -103.10000, 987.59998, 19.60000, 0.00000, 0.00000, 190.00000);
- CreateObject(1407, -98.50000, 988.00000, 19.60000, 0.00000, 0.00000, 179.99500);
- CreateObject(1447, -75.50000, 1060.40002, 20.00000, 0.00000, 0.00000, 90.00000);
- CreateObject(1447, -75.60000, 1065.69995, 20.00000, 0.00000, 0.00000, 270.00000);
- CreateObject(1447, -75.50000, 1055.09998, 20.00000, 0.00000, 0.00000, 90.00000);
- CreateObject(1447, -75.50000, 1049.80005, 20.00000, 0.00000, 0.00000, 90.00000);
- CreateObject(1447, -76.80000, 1044.80005, 20.00000, 0.00000, 0.00000, 60.00000);
- CreateObject(1447, -80.90000, 1042.50000, 20.00000, 0.00000, 0.00000, 1.99600);
- CreateObject(652, -83.10000, 1063.30005, 18.70000, 0.00000, 0.00000, 329.99600);
- CreateObject(1456, -147.29980, 992.90039, 18.80000, 0.00000, 0.00000, 290.00000);
- CreateObject(1456, -148.50000, 997.70001, 19.10000, 0.00000, 0.00000, 279.99899);
- CreateObject(1456, -148.60001, 1002.09998, 19.30000, 0.00000, 0.00000, 259.99799);
- CreateObject(1456, -126.40000, 1004.79999, 19.60000, 0.00000, 0.00000, 89.99800);
- CreateObject(1456, -128.70000, 1007.00000, 19.60000, 0.00000, 0.00000, 179.99500);
- CreateObject(1456, -133.30000, 1007.00000, 19.60000, 0.00000, 0.00000, 179.99500);
- CreateObject(1456, -146.10001, 1005.20001, 19.50000, 0.00000, 0.00000, 199.99500);
- CreateObject(1456, -141.70000, 1006.29999, 19.50000, 0.00000, 0.00000, 189.99001);
- CreateObject(1460, -108.90000, 1061.80005, 19.50000, 0.00000, 0.00000, 280.00000);
- CreateObject(1460, -108.20000, 1057.19995, 19.60000, 0.00000, 0.00000, 279.99799);
- CreateObject(1460, -106.70000, 1049.00000, 19.70000, 0.00000, 0.00000, 279.99799);
- CreateObject(1460, -106.20000, 1044.50000, 19.60000, 0.00000, 0.00000, 269.99799);
- CreateObject(1460, -95.00000, 1041.19995, 19.50000, 0.00000, 0.00000, 359.98599);
- CreateObject(1460, -90.40000, 1041.50000, 19.50000, 0.00000, 0.00000, 9.98400);
- CreateObject(1460, -85.80000, 1042.19995, 19.50000, 0.00000, 0.00000, 9.98100);
- CreateObject(1709, -98.60000, 1042.69995, 18.70000, 0.00000, 0.00000, 200.00000);
- CreateObject(1765, -98.80000, 1045.00000, 18.70000, 0.00000, 0.00000, 330.00000);
- CreateObject(1460, -99.40000, 1040.40002, 19.50000, 0.00000, 0.00000, 19.98400);
- CreateObject(1765, -104.10000, 1043.69995, 18.80000, 0.00000, 0.00000, 59.99600);
- CreateObject(918, -106.40000, 1042.00000, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(850, -116.40000, 1018.59998, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(3119, -142.39999, 1027.40002, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(910, -142.80000, 1020.29999, 20.00000, 0.00000, 0.00000, 90.00000);
- CreateObject(913, -143.30000, 1024.90002, 19.60000, 0.00000, 0.00000, 90.00000);
- CreateObject(924, -142.89999, 1021.79999, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(928, -143.30000, 1025.80005, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(933, -101.50000, 1043.40002, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(1407, -144.10001, 1045.30005, 19.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(1407, -148.70000, 1045.30005, 19.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(1407, -152.80000, 1043.59998, 19.70000, 0.00000, 0.00000, 50.00000);
- CreateObject(1407, -158.89999, 1036.59998, 19.60000, 0.00000, 0.00000, 49.99900);
- CreateObject(2866, -143.00000, 1022.40002, 18.70000, 0.00000, 0.00000, 0.00000);
- CreateObject(2861, -142.80000, 1019.00000, 18.70000, 0.00000, 0.00000, 0.00000);
- CreateObject(2859, -142.20000, 1020.50000, 18.70000, 0.00000, 0.00000, 0.00000);
- CreateObject(2858, -142.00000, 1019.70001, 18.70000, 0.00000, 0.00000, 0.00000);
- CreateObject(2222, -102.00000, 1043.50000, 19.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(2663, -101.10000, 1043.69995, 20.10000, 0.00000, 0.00000, 0.00000);
- CreateObject(2683, -101.60000, 1043.90002, 19.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(2768, -101.10000, 1043.00000, 19.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(2769, -101.90000, 1042.90002, 19.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2647, -101.40000, 1042.69995, 20.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(2647, -104.20000, 1043.40002, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(2663, -104.60000, 1043.69995, 19.10000, 0.00000, 0.00000, 0.00000);
- CreateObject(3408, -106.10000, 1022.90002, 18.90000, 0.00000, 0.00000, 260.00000);
- CreateObject(3407, -139.39999, 1007.29999, 18.70000, 0.00000, 0.00000, 0.00000);
- CreateObject(1571, -175.60001, 1005.00000, 20.10000, 0.00000, 0.00000, 300.00000);
- CreateObject(1478, -105.80000, 999.20001, 19.40000, 0.00000, 0.00000, 280.00000);
- CreateObject(1346, -163.80000, 1040.59998, 20.10000, 0.00000, 0.00000, 90.00000);
- CreateObject(1346, -163.80000, 1037.80005, 20.10000, 0.00000, 0.00000, 90.00000);
- CreateObject(1462, -164.00000, 1038.80005, 18.70000, 0.00000, 0.00000, 80.00000);
- CreateObject(1450, -163.89999, 1041.90002, 19.30000, 0.00000, 0.00000, 100.00000);
- CreateObject(1450, -100.00000, 1055.19995, 19.70000, 0.00000, 0.00000, 290.00000);
- CreateObject(1449, -96.40000, 1033.09998, 19.20000, 0.00000, 0.00000, 180.00000);
- CreateObject(1442, -122.80000, 990.00000, 19.40000, 0.00000, 0.00000, 0.00000);
- CreateObject(1441, -127.90000, 998.29999, 19.40000, 0.00000, 0.00000, 90.00000);
- CreateObject(1440, -94.30000, 1010.20001, 19.30000, 0.00000, 0.00000, 0.00000);
- CreateObject(1439, -83.70000, 1020.29999, 18.70000, 0.00000, 0.00000, 90.00000);
- CreateObject(1438, -79.10000, 1031.00000, 18.70000, 0.00000, 0.00000, 0.00000);
- CreateObject(1430, -99.10000, 1016.29999, 19.10000, 0.00000, 0.00000, 0.00000);
- CreateObject(1372, -158.89999, 1065.90002, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(1371, -152.89999, 1051.69995, 19.70000, 0.00000, 0.00000, 300.00000);
- CreateObject(1369, -157.20000, 1065.90002, 19.40000, 0.00000, 0.00000, 0.00000);
- CreateObject(1358, -129.60001, 982.70001, 20.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(1339, -98.50000, 991.90002, 19.40000, 0.00000, 0.00000, 270.00000);
- CreateObject(1337, -98.50000, 992.79999, 19.40000, 0.00000, 0.00000, 280.00000);
- CreateObject(1299, -92.70000, 989.20001, 19.10000, 0.00000, 0.00000, 0.00000);
- CreateObject(12957, -79.00000, 1008.09998, 19.60000, 0.00000, 0.00000, 0.00000);
- CreateObject(1265, -77.60000, 1005.90002, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(1265, -98.10000, 993.59998, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(1264, -97.80000, 991.00000, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(1264, -98.50000, 1015.40002, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(1264, -106.50000, 1019.40002, 19.40000, 0.00000, 0.00000, 0.00000);
- CreateObject(1265, -98.00000, 1047.59998, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(1265, -143.30000, 1023.40002, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(1224, -159.60001, 1020.09998, 19.40000, 0.00000, 0.00000, 0.00000);
- CreateObject(1221, -160.20000, 1018.70001, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(1333, -165.20000, 1065.90002, 19.70000, 0.00000, 0.00000, 100.00000);
- CreateObject(1330, -165.50000, 1064.59998, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(1328, -152.89999, 1061.19995, 19.40000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -153.30000, 1064.90002, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -150.89999, 1030.40002, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -153.30000, 1051.59998, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -154.89999, 1042.09998, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -164.60001, 1064.50000, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -153.89999, 1057.09998, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -103.40000, 1042.19995, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -100.00000, 1024.00000, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -99.60000, 1014.79999, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(2671, -124.80000, 1012.59998, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2671, -100.60000, 999.40002, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2671, -99.90000, 989.59998, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2671, -142.60001, 1063.80005, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2671, -144.39999, 1052.69995, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(2672, -140.70000, 1057.50000, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(2672, -142.39999, 1024.69995, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(2672, -147.60001, 1026.30005, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(2672, -162.89999, 1036.30005, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(2673, -162.39999, 1041.69995, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2674, -162.30000, 1039.40002, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2674, -101.20000, 1045.90002, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2675, -103.80000, 1047.40002, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(2675, -160.50000, 1037.80005, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2675, -158.00000, 1027.80005, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2676, -152.10001, 1028.09998, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2677, -142.10001, 1020.09998, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(3594, -141.89999, 986.50000, 19.00000, 0.00000, 0.00000, 109.99800);
- CreateObject(1428, -152.10001, 1018.90002, 20.30000, 0.00000, 0.00000, 0.00000);
- CreateObject(1436, -167.89999, 1051.50000, 20.30000, 0.00000, 0.00000, 0.00000);
- CreateObject(1764, -156.30000, 1031.09998, 18.70000, 0.00000, 0.00000, 130.00000);
- CreateObject(1760, -157.70000, 1035.09998, 18.80000, 0.00000, 0.00000, 60.00000);
- CreateObject(1757, -164.30000, 1053.80005, 18.70000, 0.00000, 0.00000, 120.00000);
- CreateObject(1712, -128.30000, 1006.09998, 18.80000, 0.00000, 0.00000, 310.00000);
- CreateObject(1710, -103.90000, 1030.19995, 18.80000, 0.00000, 0.00000, 20.00000);
- CreateObject(3065, -143.39999, 1025.40002, 20.60000, 0.00000, 0.00000, 0.00000);
- CreateObject(3065, -169.70000, 1024.69995, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(946, -170.50000, 1026.30005, 21.00000, 0.00000, 0.00000, 270.00000);
- CreateObject(3031, -145.00000, 1019.70001, 25.90000, 0.00000, 0.00000, 320.00000);
- CreateObject(3031, -168.00000, 1037.90002, 24.00000, 0.00000, 350.00000, 49.00000);
- CreateObject(2357, -120.80000, 994.40002, 19.20000, 0.00000, 0.00000, 120.00000);
- CreateObject(1442, -102.90000, 1031.90002, 19.40000, 0.00000, 0.00000, 0.00000);
- CreateObject(2290, -99.50000, 1026.59998, 18.70000, 0.00000, 0.00000, 270.00000);
- CreateObject(2285, -165.57800, 1057.00000, 20.80000, 0.00000, 0.00000, 90.00000);
- CreateObject(2601, -101.00000, 1043.40002, 19.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(933, -159.60001, 1033.30005, 18.70000, 0.00000, 0.00000, 0.00000);
- CreateObject(2601, -159.89999, 1032.69995, 19.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2601, -159.70000, 1033.90002, 19.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(3698, -124.50000, 1038.09998, 21.60000, 0.00000, 0.00000, 0.00000);
- CreateObject(1757, -134.00000, 1040.69995, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(1760, -131.89999, 1036.19995, 18.80000, 0.00000, 0.00000, 180.00000);
- CreateObject(1737, -133.60001, 1038.30005, 18.70000, 0.00000, 0.00000, 0.00000);
- CreateObject(2601, -132.60001, 1038.50000, 19.60000, 0.00000, 0.00000, 0.00000);
- CreateObject(2601, -132.89999, 1038.09998, 19.60000, 0.00000, 0.00000, 0.00000);
- CreateObject(2663, -134.10001, 1038.30005, 19.10000, 0.00000, 0.00000, 0.00000);
- CreateObject(2647, -133.60001, 1038.30005, 19.70000, 0.00000, 0.00000, 0.00000);
- CreateObject(2647, -132.50000, 1038.00000, 19.70000, 0.00000, 0.00000, 0.00000);
- CreateObject(2683, -133.70000, 1038.50000, 19.60000, 0.00000, 0.00000, 0.00000);
- CreateObject(1520, -132.89999, 1038.50000, 19.50000, 0.00000, 0.00000, 0.00000);
- CreateObject(850, -133.00000, 1033.80005, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(3119, -131.50586, 1036.96680, 18.93942, 0.00000, 0.00000, 0.00000);
- CreateObject(1343, -117.10000, 1041.59998, 19.50000, 0.00000, 0.00000, 0.00000);
- CreateObject(1299, -116.60000, 1034.90002, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(1299, -127.20000, 990.00000, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(1264, -127.70000, 992.20001, 19.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(1224, -122.30000, 1057.40002, 19.50000, 0.00000, 0.00000, 0.00000);
- CreateObject(1329, -132.30000, 1041.69995, 19.40000, 0.00000, 0.00000, 218.00000);
- CreateObject(1328, -115.20000, 1016.00000, 19.40000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -116.10000, 1033.69995, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -137.70000, 1002.70001, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2670, -133.20000, 1039.19995, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(2671, -135.60001, 1040.50000, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateObject(2672, -135.30000, 1037.40002, 19.10000, 0.00000, 0.00000, 0.00000);
- CreateObject(2673, -130.30000, 1042.90002, 19.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(2674, -144.80000, 1036.30005, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2675, -141.10001, 1033.50000, 18.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(2677, -134.60001, 1063.09998, 19.10000, 0.00000, 0.00000, 0.00000);
- CreateObject(3593, -126.60000, 1019.50000, 19.50000, 0.00000, 0.00000, 310.00000);
- CreateObject(1437, -116.60000, 1038.19995, 18.80000, 0.00000, 0.00000, 90.00000);
- CreateObject(1472, -129.60001, 1017.09998, 19.20000, 0.00000, 0.00000, 310.00000);
- CreateObject(1482, -163.89999, 1004.50000, 20.10000, 0.00000, 0.00000, 0.00000);
- CreateObject(3260, -165.30000, 1006.70001, 19.70000, 0.00000, 90.00000, 270.00000);
- CreateObject(3260, -165.30000, 1003.50000, 19.60000, 0.00000, 90.00000, 270.00000);
- CreateObject(3275, -120.20000, 979.29999, 19.80000, 0.00000, 0.00000, 0.00000);
- CreateObject(1712, -123.30000, 992.40002, 18.80000, 0.00000, 0.00000, 110.00000);
- CreateObject(3461, -122.80000, 990.00000, 18.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(3461, -102.90000, 1031.90002, 18.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(3461, -121.10000, 1012.29999, 17.50000, 0.00000, 0.00000, 0.00000);
- CreateObject(1463, -121.60000, 1012.40002, 19.20000, 0.00000, 40.00000, 190.00000);
- CreateObject(1463, -120.30000, 1011.59998, 19.20000, 0.00000, 39.99600, 309.99799);
- CreateObject(1463, -120.50000, 1013.00000, 19.20000, 0.00000, 39.99600, 69.99600);
- CreateObject(3461, -120.50000, 1011.70001, 17.40000, 0.00000, 0.00000, 0.00000);
- CreateObject(3461, -120.90000, 1012.90002, 17.20000, 0.00000, 0.00000, 0.00000);
- CreateObject(843, -120.30000, 959.90002, 21.30000, 0.00000, 0.00000, 0.00000);
- CreateObject(17969, -148.89999, 1052.17004, 21.80000, 0.00000, 0.00000, 90.00000);
- CreateObject(4227, -144.00000, 1073.30005, 20.30000, 0.00000, 0.00000, 0.00000);
- CreateObject(1527, -131.50000, 1040.59998, 21.40000, 0.00000, 0.00000, 0.00000);
- CreateObject(1215, -177.20000, 1005.59998, 20.50000, 0.00000, 0.00000, 0.00000);
- CreateObject(1215, -175.70000, 1003.00000, 20.50000, 0.00000, 0.00000, 0.00000);
- CreateObject(1449, -174.20000, 1003.20001, 19.30000, 0.00000, 0.00000, 30.00000);
- CreateObject(1407, -90.60000, 987.90002, 19.50000, 0.00000, 0.00000, 359.99500);
- CreateObject(1407, -86.10000, 988.59998, 19.60000, 0.00000, 0.00000, 19.98900);
- CreateObject(3350, -96.40000, 1001.79999, 22.40000, 0.00000, 0.00000, 220.75000);
- SetGameModeText("PPRPv1");
- AddPlayerClass(0,-312.2253,1576.8346,75.3594,222.4965,0,0,0,0,0,0); //Bone County Spawn Mesto
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- forward UpdateCentsDisplay(playerid, _cents_string[]);
- public UpdateCentsDisplay(playerid, _cents_string[])
- {
- TextDrawSetString(tdCents[playerid], _cents_string);
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- tdCents[playerid] = TextDrawCreate(608.000, 77.000, "~g~.00");
- TextDrawFont(tdCents[playerid], 3);
- TextDrawLetterSize(tdCents[playerid], 0.500, 2.200);
- TextDrawSetOutline(tdCents[playerid], 2);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- TextDrawDestroy(tdCents[playerid]);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerSkin(playerid, 46);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new gate0, gate1, gate2;
- new door0;
- new string[256];
- new tmp[256];
- new cmd[256+1];
- new idx;
- cmd = strtok(cmdtext, idx);
- if (strcmp("/Firedept", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,-257.95999146,1210.00000000,20.47400093+10);
- return 1;
- }
- if (strcmp("/enter", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,-219.4858,1209.2512,19.7422))
- {
- SetPlayerPos(playerid, -219.4180,1211.3994,19.7859);
- }
- return 1;
- }
- if (strcmp("/exit", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,-219.4180,1211.3994,19.7859))
- {
- SetPlayerPos(playerid, -219.4244,1209.0388,19.7422);
- }
- return 1;
- }
- if (strcmp("/gate0", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,10.0,-257.95999146,1210.00000000,20.47400093))
- {
- MoveObject(gate0,-257.96301270,1210.69995117,21.89999962,1.0,273.74633789,0.00000000,0.00000000);
- SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate0 has been opened!");
- }
- return 1;
- }
- if (strcmp("/gate1", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,10.0,-251.84800720,1210.00000000,20.47400093))
- {
- MoveObject(gate1,-251.85000610,1210.69995117,21.89999962,1.0,273.75000000,0.00000000,0.00000000);
- SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate1 has been opened!");
- }
- return 1;
- }
- if (strcmp("/gate2", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,10.0,-245.73599243,1210.00000000,20.47400093))
- {
- MoveObject(gate2,-245.73500061,1210.69995117,21.89999962,1.0,273.75000000,0.00000000,0.00000000);
- SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate2 has been opened!");
- }
- return 1;
- }
- if(strcmp(cmd, "/closegate0", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,10.0,-257.95999146,1210.00000000,20.47400093))
- {
- MoveObject(gate0,-257.95999146,1210.00000000,20.47400093,1.0,0.00000000,0.00000000,0.00000000);
- SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate0 has been closed!");
- }
- return 1;
- }
- if(strcmp(cmd, "/closegate1", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,10.0,-251.84800720,1210.00000000,20.47400093))
- {
- MoveObject(gate1,-251.84800720,1210.00000000,20.47400093,1.0,0.00000000,0.00000000,0.00000000);
- SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate1 has been closed!");
- }
- return 1;
- }
- if(strcmp(cmd, "/closegate2", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,10.0,-245.73599243,1210.00000000,20.47400093))
- {
- MoveObject(gate2,-245.73599243,1210.00000000,20.47400093,1.0,0.00000000,0.00000000,0.00000000);
- SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Gate2 has been closed!");
- }
- return 1;
- }
- if (strcmp("/dooropen", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,-240.27999878,1215.77502441,23.37199974))
- {
- MoveObject(door0,-240.27999878,1215.77502441-1.25,23.37199974,0.5,0.00000000,0.00000000,90.00000000);
- SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been opened!");
- }
- return 1;
- }
- if (strcmp("/doorclose", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,-240.27999878,1215.77502441,23.37199974))
- {
- MoveObject(door0,-240.27999878,1215.77502441,23.37199974,0.5,0.00000000,0.00000000,90.00000000);
- SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been closed!");
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- switch(newstate)
- {
- case PLAYER_STATE_ONFOOT, PLAYER_STATE_DRIVER, PLAYER_STATE_PASSENGER:
- TextDrawShowForPlayer(playerid, tdCents[playerid]);
- default:
- TextDrawHideForPlayer(playerid, tdCents[playerid]);
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment