Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Cinema3D by Teddy
- // put in filterscript amx and pwn
- //server.cfg / FILTERSCRIPT put Cinema3D and restarted your server
- #include <a_samp>
- #include <sscanf>
- #define color_red "{F81414}"
- #define color_orange "{FFAF00}"
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define PTP PlayerToPoint
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" SCript cinema 3d by wota dot id");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" MPRP by Wota and odoy");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- Create3DTextLabel(""color_red"Cinema\n"color_orange"/enter", COLOR_RED ,1244.1207,-1128.7041,23.9471,30.0,0); //
- new reclama1 = CreateObject(4735,-1479.7301, -205.1329, 1081.4974, -180.0000, -184.0000, 360.0000);
- SetObjectMaterialText(reclama1, "{FFFFFF}Cinema 3D\n {00FFEE}by {F81414}Teddy", 0, OBJECT_MATERIAL_SIZE_256x128, "Gabriola", 55, 1, -32256, 1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
- new reclama2 = CreateObject(19329,1244.1207,-1128.7041,25.9471, 0.0000, 0.0000, 0.0);
- SetObjectMaterialText(reclama2, "{FFFFFF}Cinema 3D\n {00FFEE}by {F81414}Teddy", 0, OBJECT_MATERIAL_SIZE_256x128, "Gabriola", 70, 1, -32256, 1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
- AddStaticPickup(19130,23,1281.8215, -1265.2635, 14.1828);//Enter Cinema
- AddStaticPickup(19130,23,-1443.8389,-204.0373,1072.5171);//Exit Cinema
- //======== cinema
- CreateObject(7909, -1457.98, -194.64, 1072.47, -2.00, -6.00, 359.00);
- CreateObject(7909, -1460.45, -213.80, 1071.84, 0.00, 4.00, 179.13);
- CreateObject(9189, -1459.04, -195.70, 1084.12, -1.00, -4.00, 6.48);
- CreateObject(7903, -1444.32, -203.50, 1075.99, 8.00, 0.00, 277.70);
- CreateObject(9189, -1457.02, -212.66, 1081.16, 1.00, 0.00, 186.00);
- CreateObject(18981, -1469.38, -204.20, 1087.99, 0.00, -94.00, 357.15);
- CreateObject(18981, -1468.79, -194.28, 1077.37, -9.00, 0.00, 89.00);
- CreateObject(18981, -1453.69, -194.52, 1079.77, -9.00, 0.00, 89.00);
- CreateObject(18981, -1468.72, -213.92, 1077.44, -9.00, 0.00, 89.00);
- CreateObject(18981, -1443.29, -204.37, 1077.80, 0.00, -8.00, 0.00);
- CreateObject(18981, -1468.34, -203.02, 1068.50, 0.00, -94.00, 357.15);
- CreateObject(18981, -1449.57, -203.87, 1070.18, 0.00, -94.00, 357.76);
- CreateObject(18981, -1446.60, -204.45, 1070.50, 0.00, -94.00, 0.00);
- CreateObject(18981, -1442.78, -204.50, 1071.09, 0.00, -94.00, 0.00);
- CreateObject(19380, -1455.89, -200.47, 1075.75, 0.00, 90.00, 269.69);
- CreateObject(11544, -1456.35, -212.36, 1074.80, 0.00, 0.00, 91.64);
- CreateObject(1723, -1458.42, -206.25, 1075.82, 0.00, 0.00, 269.06);
- CreateObject(1710, -1451.22, -204.57, 1070.95, 0.00, 0.00, 269.43);
- CreateObject(1710, -1451.26, -196.58, 1070.95, 0.00, 0.00, 269.43);
- CreateObject(1710, -1455.32, -204.41, 1070.09, 0.00, 0.00, 269.43);
- CreateObject(1710, -1459.06, -196.38, 1069.57, 0.00, 0.00, 269.43);
- CreateObject(1710, -1459.06, -204.33, 1069.57, 0.00, 0.00, 269.43);
- CreateObject(1710, -1455.31, -196.44, 1070.09, 0.00, 0.00, 269.43);
- CreateObject(1710, -1462.20, -204.24, 1069.24, 0.00, 0.00, 269.43);
- CreateObject(1710, -1462.19, -196.44, 1069.24, 0.00, 0.00, 269.43);
- CreateObject(1723, -1456.46, -201.53, 1075.82, 0.00, 0.00, 269.06);
- CreateObject(1723, -1458.38, -196.63, 1075.82, 0.00, 0.00, 269.06);
- CreateObject(1828, -1459.11, -202.69, 1075.82, 0.00, 0.00, 269.41);
- CreateObject(1817, -1460.40, -206.73, 1075.82, 0.00, 0.00, 269.41);
- CreateObject(1817, -1460.52, -197.10, 1075.82, 0.00, 0.00, 269.41);
- CreateObject(1817, -1458.21, -202.20, 1075.82, 0.00, 0.00, 269.41);
- CreateObject(18981, -1456.33, -214.03, 1079.47, -9.00, 0.00, 89.00);
- CreateObject(11544, -1453.26, -212.33, 1072.27, 0.00, 0.00, 91.64);
- CreateObject(19380, -1455.98, -210.42, 1075.75, 0.00, 90.00, 269.69);
- CreateObject(1504, -1442.97, -203.04, 1071.50, 8.00, -1.00, 270.00);
- CreateObject(18981, -1468.34, -203.02, 1068.50, 0.00, -94.00, 357.15);
- CreateObject(18981, -1453.52, -205.00, 1089.10, 0.00, -94.00, 357.15);
- CreateObject(18981, -1480.62, -203.74, 1077.66, 0.00, -178.00, 359.00);
- CreateObject(1815, -1460.45, -196.97, 1075.82, 0.00, 0.00, 269.41);
- CreateObject(1815, -1458.40, -201.94, 1075.82, 0.00, 0.00, 269.41);
- CreateObject(1815, -1460.32, -206.75, 1075.82, 0.00, 0.00, 269.41);
- CreateObject(2801, -1457.94, -202.48, 1075.98, 0.00, 0.00, 0.00);
- CreateObject(2801, -1459.85, -207.27, 1075.98, 0.00, 0.00, 0.00);
- CreateObject(2801, -1459.94, -197.48, 1075.98, 0.00, 0.00, 0.00);
- CreateObject(2168, -1443.70, -203.11, 1071.26, 0.00, 0.00, 266.86);
- CreateObject(2168, -1443.68, -205.38, 1071.26, 0.00, 0.00, 266.86);
- CreateObject(2586, -1463.66, -206.13, 1069.31, 0.00, 0.00, 270.65);
- CreateObject(2586, -1463.71, -198.31, 1069.24, 0.00, 0.00, 270.54);
- CreateObject(2586, -1460.44, -206.21, 1069.83, 0.00, 0.00, 271.16);
- CreateObject(2586, -1460.43, -198.18, 1069.79, 0.00, 0.00, 271.16);
- CreateObject(2586, -1456.80, -206.17, 1070.14, 0.00, 0.00, 271.16);
- CreateObject(2586, -1456.88, -198.19, 1070.14, 0.00, 0.00, 271.16);
- CreateObject(2586, -1452.81, -198.23, 1070.80, 0.00, 0.00, 271.16);
- CreateObject(2586, -1452.71, -206.30, 1070.80, 0.00, 0.00, 271.16);
- CreateObject(1486, -1463.52, -199.24, 1069.88, 0.00, 0.00, 0.00);
- CreateObject(1486, -1463.69, -198.71, 1069.88, 0.00, 0.00, 0.00);
- CreateObject(1486, -1463.38, -198.21, 1069.88, 0.00, 0.00, 0.00);
- CreateObject(1486, -1463.48, -197.51, 1069.88, 0.00, 0.00, 0.00);
- CreateObject(1486, -1463.46, -205.30, 1069.96, 0.00, 0.00, 0.00);
- CreateObject(1486, -1463.70, -205.40, 1069.96, 0.00, 0.00, 0.00);
- CreateObject(1486, -1463.64, -206.55, 1069.96, 0.00, 0.00, 0.00);
- CreateObject(1486, -1463.48, -207.10, 1069.96, 0.00, 0.00, 0.00);
- CreateObject(1487, -1460.29, -207.20, 1070.51, 0.00, 0.00, 0.00);
- CreateObject(1487, -1460.53, -206.68, 1070.51, 0.00, 0.00, 0.00);
- CreateObject(1487, -1460.35, -205.50, 1070.51, 0.00, 0.00, 0.00);
- CreateObject(1487, -1460.19, -205.20, 1070.51, 0.00, 0.00, 0.00);
- CreateObject(1487, -1456.62, -207.16, 1070.80, 0.00, 0.00, 0.00);
- CreateObject(1487, -1456.89, -206.69, 1070.80, 0.00, 0.00, 0.00);
- CreateObject(1487, -1456.90, -205.49, 1070.80, 0.00, 0.00, 0.00);
- CreateObject(1487, -1456.56, -205.20, 1070.80, 0.00, 0.00, 0.00);
- CreateObject(1487, -1452.57, -205.43, 1071.52, 0.00, 0.00, 0.00);
- CreateObject(1487, -1452.41, -205.98, 1071.52, 0.00, 0.00, 0.00);
- CreateObject(1487, -1452.79, -206.75, 1071.52, 0.00, 0.00, 0.00);
- CreateObject(1487, -1452.55, -207.26, 1071.52, 0.00, 0.00, 0.00);
- CreateObject(1487, -1452.63, -199.20, 1071.52, 0.00, 0.00, 0.00);
- CreateObject(1487, -1452.89, -198.76, 1071.52, 0.00, 0.00, 0.00);
- CreateObject(1487, -1452.54, -197.86, 1071.52, 0.00, 0.00, 0.00);
- CreateObject(1487, -1452.61, -197.23, 1071.52, 0.00, 0.00, 0.00);
- CreateObject(1487, -1456.70, -199.20, 1070.80, 0.00, 0.00, 0.00);
- CreateObject(1487, -1456.97, -198.59, 1070.80, 0.00, 0.00, 0.00);
- CreateObject(1487, -1456.59, -197.92, 1070.80, 0.00, 0.00, 0.00);
- CreateObject(1487, -1456.67, -197.21, 1070.80, 0.00, 0.00, 0.00);
- CreateObject(1487, -1460.28, -199.18, 1070.51, 0.00, 0.00, 0.00);
- CreateObject(1487, -1460.54, -198.72, 1070.51, 0.00, 0.00, 0.00);
- CreateObject(1487, -1460.18, -197.99, 1070.51, 0.00, 0.00, 0.00);
- CreateObject(1487, -1460.27, -197.22, 1070.51, 0.00, 0.00, 0.00);
- CreateObject(1665, -1463.43, -206.54, 1069.82, 0.00, 0.00, 0.00);
- CreateObject(1665, -1460.20, -198.63, 1070.34, 0.00, 0.00, 0.00);
- CreateObject(1665, -1463.48, -198.96, 1069.76, 0.00, 0.00, 0.00);
- CreateObject(1665, -1456.61, -198.85, 1070.66, 0.00, 0.00, 0.00);
- CreateObject(1665, -1460.26, -206.85, 1070.36, 0.00, 0.00, 0.00);
- CreateObject(1665, -1456.59, -206.66, 1070.66, 0.00, 0.00, 0.00);
- CreateObject(1665, -1452.61, -198.92, 1071.32, 0.00, 0.00, 0.00);
- CreateObject(1665, -1452.53, -206.85, 1071.32, 0.00, 0.00, 0.00);
- CreateObject(1828, -1454.79, -208.01, 1075.84, 0.00, 0.00, 269.41);
- CreateObject(1828, -1454.69, -198.04, 1075.84, 0.00, 0.00, 269.41);
- CreateObject(2858, -1452.78, -206.28, 1071.30, 0.00, 0.00, 69.22);
- CreateObject(2860, -1452.76, -197.80, 1071.30, 0.00, 0.00, 58.24);
- CreateObject(2860, -1456.88, -197.89, 1070.64, 0.00, 0.00, 58.24);
- CreateObject(2860, -1460.44, -197.85, 1070.32, 0.00, 0.00, 58.24);
- CreateObject(2860, -1463.69, -197.85, 1069.81, 0.00, 0.00, 58.24);
- CreateObject(2858, -1463.65, -205.86, 1069.84, 0.00, 0.00, 115.21);
- CreateObject(2858, -1460.39, -206.23, 1070.34, 0.00, 0.00, 115.21);
- CreateObject(2858, -1456.75, -206.19, 1070.65, 0.00, 0.00, 115.21);
- CreateObject(2888, -1470.58, -195.49, 1078.46, -26.00, 0.00, 149.00);
- CreateObject(8878, -1476.01, -201.31, 1075.06, -18.00, -74.00, 280.60);
- CreateObject(8878, -1475.54, -207.10, 1075.76, -18.00, -74.00, 192.15);
- CreateObject(2888, -1470.64, -213.07, 1079.11, -22.00, 0.00, 26.00);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- 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;
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[128], idx;
- cmd = strtok(cmdtext, idx);
- //================ Dush On ======================================
- if(strcmp(cmdtext, "/enter", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if PlayerToPoint(5,playerid,1244.1207,-1128.7041,23.9471)
- *then
- {
- SetPlayerPos(playerid,-1443.8389,-204.0373,1072.5171);
- SetPlayerInterior(playerid,7);
- PlayAudioStreamForPlayer(playerid, "http://www.greudedifuzat.eu/greudedifuzat.m3u",-1479.73, -205.13, 1081.50,500, 1);
- SendClientMessage(playerid,COLOR_GREEN,"*** Bine ai venit la Cinema!");
- return 1;
- }
- }
- }
- if(strcmp(cmdtext, "/exit", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if PlayerToPoint(5,playerid,-1443.8389,-204.0373,1072.5171)
- *then
- {
- SetPlayerPos(playerid,1244.1207,-1128.7041,23.9471);
- SetPlayerInterior(playerid,0);
- SendClientMessage(playerid,COLOR_GREEN,"*** Ai iesit din Cinema!");
- return 1;
- }
- }
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- 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 PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- }
- return 0;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement