Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**************************************************************************/
- // SAP Request Class
- /*************************************************************************/
- /**************************************************************************/
- // Version 1.2 | Build 2
- /*************************************************************************/
- /**
- * Copyright (c) 2015-2016 San Andreas Playground
- *
- * This program is free software: you can redistribute it and/or modify it under the terms of the
- * GNU General Public License as published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
- * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with this program.
- * If not, see <http://www.gnu.org/licenses/>.
- */
- /*AUTHOR ********************
- @Yaa - SA-MP Lead Scripter
- ***************************/
- #include <a_samp>
- #include <zcmd>
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xE01B4CFF
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_ORANGE 0xFF9900AA
- #define SCM SendClientMessage
- #define SERVER_NAME "-" // Server Name
- #define SERVER_FORUM "-" // Server Forum
- #define SERVER_WEBSITE "-" // Server Website
- #define SAMP_TYPE "-" // You Server Type
- new Text:RText[13];
- public OnPlayerSpawn(playerid) return TRHide(playerid);
- public OnPlayerConnect(playerid) return RemoveObjects(playerid);
- public OnFilterScriptInit()
- {
- SetTimer("SAPann",80000,1);
- print("----------------------------------------");
- print(" SAN ANDREAS PLAYGROUND ");
- print("----------------------------------------");
- print("----------------------------------------");
- print(" VERSION : 1.2 ");
- print("----------------------------------------");
- print("----------------------------------------");
- print(" REQUEST CLASS - PART ");
- print("----------------------------------------");
- TRLoad();
- ObjectsLoad();
- return 1;
- }
- public OnFilterScriptExit() return 1;
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, -1634.218872, 1318.792114, 11.679484);
- SetPlayerFacingAngle(playerid, 312.969665);
- InterpolateCameraPos(playerid, -1588.194946, 1348.114135, 35.142406, -1634.218872 + (5 * floatsin(-312.969665, degrees)), 1318.792114 + (5 * floatcos(-312.969665, degrees)), 11.679484, 3000);
- InterpolateCameraLookAt(playerid, -1588.194946, 1348.114135, 35.142406, -1634.218872, 1318.792114, 11.679484, 2000);
- SetPlayerAttachedObject( playerid, 1, 19270, 5, 0.118957, 0.048861, -0.017178, 67.190078, 288.352386, 0.000000, 0.000000, 0.000000, 1.000000 );
- SetPlayerAttachedObject( playerid, 2, 19270, 6, 0.118957, 0.037811, 0.022248, 93.706535, 288.517608, 0.000000, 0.000000, 0.000000, 1.000000 );
- SetPlayerAttachedObject( playerid, 3, 19270, 9, 0.118957, 0.037811, 0.022248, 93.706535, 288.517608, 0.000000, 0.000000, 0.000000, 1.000000 );
- SetPlayerAttachedObject( playerid, 4, 19270, 10, 0.118957, 0.037811, 0.022248, 93.706535, 288.517608, 0.000000, 0.000000, 0.000000, 1.000000 );
- SetPlayerSpecialAction( playerid, 5 );
- TextDrawShowForPlayer(playerid, RText[0]);
- TextDrawShowForPlayer(playerid, RText[1]);
- TextDrawShowForPlayer(playerid, RText[2]);
- TextDrawShowForPlayer(playerid, RText[3]);
- TextDrawShowForPlayer(playerid, RText[4]);
- TextDrawShowForPlayer(playerid, RText[5]);
- TextDrawShowForPlayer(playerid, RText[6]);
- TextDrawShowForPlayer(playerid, RText[7]);
- TextDrawShowForPlayer(playerid, RText[8]);
- TextDrawShowForPlayer(playerid, RText[9]);
- TextDrawShowForPlayer(playerid, RText[10]);
- TextDrawShowForPlayer(playerid, RText[11]);
- TextDrawShowForPlayer(playerid, RText[12]);
- return 1;
- }
- forward SAPann();
- new automessage[][] =
- {
- " {00FF40}Cleo Mods and Hacking Not Allowed",
- " {00FF40}Racist and Flamming Not Allowed !!",
- " {00FF40}VIP MemberShip : Donate or Won a Event include it",
- " {00FF40}Don't Beg For Money , Make it u self",
- " {00FF40}For More information use /cmds",
- " {00FF40}Please NO CAPS!! We can see u message",
- " {00FF40}Spamming and insulting NOT ALLOWED !!",
- " {00FF40}Wanna a Custom Place for a house in our server !? Pm an Management Connected"
- };
- public SAPann()
- {
- SendClientMessageToAll(COLOR_RED, "-------------------------------------------------------------");
- SendClientMessageToAll(COLOR_YELLOW, automessage[random(sizeof(automessage))]);
- SendClientMessageToAll(COLOR_RED, "-------------------------------------------------------------");
- return 1;
- }
- CMD:announce(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid, COLOR_RED, "Error You are not an Administrator");
- else
- {
- new string[200];
- SendClientMessageToAll(COLOR_RED, "-------------------------------------------------------------");
- format(string, sizeof(string), " {00FF40}%s ", params);
- SendClientMessageToAll(COLOR_YELLOW, string);
- SendClientMessageToAll(COLOR_RED, "-------------------------------------------------------------");
- }
- return 1;
- }
- CMD:adminannounce(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid, COLOR_RED, "Error You are not an Administrator");
- else
- {
- new string[200];
- for(new i = 0; i < 50; i++) SendClientMessage(playerid, COLOR_WHITE,"");
- SendClientMessageToAll(COLOR_RED, "-------------------------------------------------------------");
- SendClientMessageToAll(COLOR_RED, " Announce By An Administrator ");
- SendClientMessageToAll(COLOR_RED, "-------------------------------------------------------------");
- format(string, sizeof(string), " {00FF40}%s ", params);
- SendClientMessageToAll(COLOR_YELLOW, string);
- SendClientMessageToAll(COLOR_RED, "-------------------------------------------------------------");
- }
- return 1;
- }
- stock TRHide(playerid)
- {
- TextDrawHideForPlayer(playerid, RText[0]);
- TextDrawHideForPlayer(playerid, RText[1]);
- TextDrawHideForPlayer(playerid, RText[2]);
- TextDrawHideForPlayer(playerid, RText[3]);
- TextDrawHideForPlayer(playerid, RText[4]);
- TextDrawHideForPlayer(playerid, RText[5]);
- TextDrawHideForPlayer(playerid, RText[6]);
- TextDrawHideForPlayer(playerid, RText[7]);
- TextDrawHideForPlayer(playerid, RText[8]);
- TextDrawHideForPlayer(playerid, RText[9]);
- TextDrawHideForPlayer(playerid, RText[10]);
- TextDrawHideForPlayer(playerid, RText[11]);
- TextDrawHideForPlayer(playerid, RText[12]);
- return 1;
- }
- stock TRLoad()
- {
- RText[0] = TextDrawCreate(650.000000, 0.000000, ".");
- TextDrawBackgroundColor(RText[0], 255);
- TextDrawFont(RText[0], 1);
- TextDrawLetterSize(RText[0], 1.279999, 50.299995);
- TextDrawColor(RText[0], -1);
- TextDrawSetOutline(RText[0], 0);
- TextDrawSetProportional(RText[0], 1);
- TextDrawSetShadow(RText[0], 1);
- TextDrawUseBox(RText[0], 1);
- TextDrawBoxColor(RText[0], 255);
- TextDrawTextSize(RText[0], 462.000000, 94.000000);
- TextDrawSetSelectable(RText[0], 0);
- RText[1] = TextDrawCreate(471.000000, 12.000000, SERVER_NAME);
- TextDrawBackgroundColor(RText[1], 255);
- TextDrawFont(RText[1], 1);
- TextDrawLetterSize(RText[1], 0.420000, 2.200000);
- TextDrawColor(RText[1], 16777215);
- TextDrawSetOutline(RText[1], 0);
- TextDrawSetProportional(RText[1], 1);
- TextDrawSetShadow(RText[1], 1);
- TextDrawSetSelectable(RText[1], 0);
- RText[2] = TextDrawCreate(463.000000, 50.000000, "----------------------------------");
- TextDrawBackgroundColor(RText[2], 255);
- TextDrawFont(RText[2], 1);
- TextDrawLetterSize(RText[2], 0.500000, 1.000000);
- TextDrawColor(RText[2], 16711935);
- TextDrawSetOutline(RText[2], 0);
- TextDrawSetProportional(RText[2], 1);
- TextDrawSetShadow(RText[2], 1);
- TextDrawSetSelectable(RText[2], 0);
- RText[3] = TextDrawCreate(474.000000, 69.000000, "Welcome To The Best of "SAMP_TYPE"");
- TextDrawBackgroundColor(RText[3], 255);
- TextDrawFont(RText[3], 1);
- TextDrawLetterSize(RText[3], 0.280000, 1.400000);
- TextDrawColor(RText[3], -1);
- TextDrawSetOutline(RText[3], 0);
- TextDrawSetProportional(RText[3], 1);
- TextDrawSetShadow(RText[3], 1);
- TextDrawSetSelectable(RText[3], 0);
- RText[4] = TextDrawCreate(463.000000, 90.000000, "---------------------------------------");
- TextDrawBackgroundColor(RText[4], 255);
- TextDrawFont(RText[4], 1);
- TextDrawLetterSize(RText[4], 0.500000, 1.000000);
- TextDrawColor(RText[4], 16711935);
- TextDrawSetOutline(RText[4], 0);
- TextDrawSetProportional(RText[4], 1);
- TextDrawSetShadow(RText[4], 1);
- TextDrawSetSelectable(RText[4], 0);
- RText[5] = TextDrawCreate(473.000000, 129.000000, "Forum :");
- TextDrawBackgroundColor(RText[5], 255);
- TextDrawFont(RText[5], 0);
- TextDrawLetterSize(RText[5], 0.659999, 2.000001);
- TextDrawColor(RText[5], -1);
- TextDrawSetOutline(RText[5], 0);
- TextDrawSetProportional(RText[5], 1);
- TextDrawSetShadow(RText[5], 1);
- TextDrawSetSelectable(RText[5], 0);
- RText[6] = TextDrawCreate(481.000000, 173.000000, SERVER_FORUM);
- TextDrawBackgroundColor(RText[6], 255);
- TextDrawFont(RText[6], 1);
- TextDrawLetterSize(RText[6], 0.380000, 1.899999);
- TextDrawColor(RText[6], -1);
- TextDrawSetOutline(RText[6], 0);
- TextDrawSetProportional(RText[6], 1);
- TextDrawSetShadow(RText[6], 1);
- TextDrawSetSelectable(RText[6], 0);
- RText[7] = TextDrawCreate(475.000000, 226.000000, "Website :");
- TextDrawBackgroundColor(RText[7], 255);
- TextDrawFont(RText[7], 0);
- TextDrawLetterSize(RText[7], 0.530000, 2.000000);
- TextDrawColor(RText[7], -1);
- TextDrawSetOutline(RText[7], 0);
- TextDrawSetProportional(RText[7], 1);
- TextDrawSetShadow(RText[7], 1);
- TextDrawSetSelectable(RText[7], 0);
- RText[8] = TextDrawCreate(481.000000, 271.000000, SERVER_WEBSITE);
- TextDrawBackgroundColor(RText[8], 255);
- TextDrawFont(RText[8], 1);
- TextDrawLetterSize(RText[8], 0.500000, 2.000000);
- TextDrawColor(RText[8], -1);
- TextDrawSetOutline(RText[8], 0);
- TextDrawSetProportional(RText[8], 1);
- TextDrawSetShadow(RText[8], 1);
- TextDrawSetSelectable(RText[8], 0);
- RText[9] = TextDrawCreate(470.000000, 320.000000, "For see Commands use /cmds");
- TextDrawBackgroundColor(RText[9], 255);
- TextDrawFont(RText[9], 1);
- TextDrawLetterSize(RText[9], 0.349999, 2.399999);
- TextDrawColor(RText[9], -16776961);
- TextDrawSetOutline(RText[9], 0);
- TextDrawSetProportional(RText[9], 1);
- TextDrawSetShadow(RText[9], 1);
- TextDrawSetSelectable(RText[9], 0);
- RText[10] = TextDrawCreate(463.000000, 366.000000, "--------------------------------------------");
- TextDrawBackgroundColor(RText[10], 255);
- TextDrawFont(RText[10], 1);
- TextDrawLetterSize(RText[10], 0.500000, 1.000000);
- TextDrawColor(RText[10], 16711935);
- TextDrawSetOutline(RText[10], 0);
- TextDrawSetProportional(RText[10], 1);
- TextDrawSetShadow(RText[10], 1);
- TextDrawSetSelectable(RText[10], 0);
- RText[11] = TextDrawCreate(470.000000, 380.000000, "Enjoy !!");
- TextDrawBackgroundColor(RText[11], 255);
- TextDrawFont(RText[11], 0);
- TextDrawLetterSize(RText[11], 0.750000, 2.200001);
- TextDrawColor(RText[11], 16777215);
- TextDrawSetOutline(RText[11], 0);
- TextDrawSetProportional(RText[11], 1);
- TextDrawSetShadow(RText[11], 1);
- TextDrawSetSelectable(RText[11], 0);
- RText[12] = TextDrawCreate(477.000000, 411.000000, ""SERVER_NAME" Management");
- TextDrawBackgroundColor(RText[12], 255);
- TextDrawFont(RText[12], 0);
- TextDrawLetterSize(RText[12], 0.500000, 2.900001);
- TextDrawColor(RText[12], -65281);
- TextDrawSetOutline(RText[12], 0);
- TextDrawSetProportional(RText[12], 1);
- TextDrawSetShadow(RText[12], 1);
- TextDrawSetSelectable(RText[12], 0);
- return 1;
- }
- stock ObjectsLoad()
- {
- CreateObject(8493, -1589.00000, 7820.00000, 1357.00000, 0.00000, 0.00000, 0.00000);
- CreateObject(846, -1541.37317, 1396.21094, -0.10476, 0.00000, 0.00000, 0.00000);
- CreateObject(8493, 6086.78613, 7715.87158, 614.88239, 0.00000, 0.00000, 0.00000);
- CreateObject(8493, -1615.00000, 2161.00000, 1333.00000, 0.00000, 4200.00000, 0.00000);
- CreateObject(8493, -1643.98804, 1324.68665, 20.42485, -1.74000, -1.20001, 43.50002);
- CreateObject(3524, 6049.48926, 8064.37207, 2935.74585, 0.00000, 0.00000, 0.00000);
- CreateObject(3524, -1637.17407, 1309.99182, 10.33141, 0.00000, 0.00000, -40.32003);
- CreateObject(3524, -1643.64319, 1317.20569, 10.22290, 0.00000, 0.00000, -36.06002);
- CreateObject(10183, -1667.77478, 1327.03357, 5.93331, 0.00000, 0.00000, 0.54000);
- CreateObject(10183, -1667.95618, 1295.43176, 5.75090, 0.00000, 0.00000, 0.00000);
- CreateObject(1503, -1635.27148, 1317.69714, 9.14691, 7.13998, -2.70000, -45.06000);
- CreateObject(9159, -1644.03320, 1324.73401, 20.36553, -1.92000, -0.65999, 42.11996);
- CreateObject(1955, -1639.83838, 1312.87500, 8.43487, 0.00000, 0.00000, 0.00000);
- CreateObject(19577, -1664.25513, 1460.24561, 8.44141, 0.00000, 0.00000, 0.00000);
- CreateObject(8493, -1644.16089, 1324.49133, 20.42485, -1.74000, -1.20001, 43.50002);
- CreateObject(9174, -1558.22021, 1342.86060, 4.08927, 0.00000, 0.00000, -133.98009);
- CreateObject(3434, -1661.65674, 1313.66821, 19.00621, -0.54000, 0.48000, 37.20001);
- CreateObject(8423, -1662.72290, 1315.05994, 16.81797, 0.00000, 0.00000, 43.73999);
- CreateObject(3524, -1649.24609, 1310.20935, 6.11818, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1647.80298, 1309.47729, 8.44711, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1643.49292, 1305.03442, 8.71351, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1642.13965, 1303.72913, 8.83382, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1644.90918, 1306.48108, 8.71351, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1646.38586, 1307.89417, 8.71351, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1642.65820, 1303.24280, 6.11818, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1658.56873, 1315.33203, 6.11818, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1655.70923, 1317.75806, 6.11818, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1660.44434, 1313.43359, 6.11818, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1653.56750, 1306.15198, 6.11818, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1651.59509, 1308.29175, 6.11818, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1655.70923, 1317.75806, 6.11818, 0.00000, 0.00000, -52.07998);
- CreateObject(3524, -1652.26990, 1314.83752, 6.11818, 0.00000, 0.00000, -52.07998);
- CreateObject(1655, -1686.97180, 1339.90125, 10.77704, 0.42000, 0.42000, -41.22000);
- CreateObject(1655, -1685.63770, 1328.17920, 7.49277, 0.54000, -0.90000, -41.22000);
- CreateObject(1655, -1692.15796, 1334.03430, 7.49277, 0.00000, 0.30000, -41.22000);
- CreateObject(1655, -1680.46753, 1334.00610, 10.77704, 0.42000, 0.42000, -41.22000);
- CreateObject(16357, -1615.48022, 1399.13660, 15.36312, 0.00000, 0.00000, 41.82004);
- CreateObject(16357, -1394.63293, 1596.82410, 15.36312, 0.00000, 0.00000, 41.82004);
- CreateObject(16357, -1501.57727, 1501.08105, 15.36312, 0.00000, 0.00000, 41.82004);
- CreateObject(1655, -1352.91492, 1633.96216, 17.17991, 3.65999, -1.38001, -49.85994);
- return 1;
- }
- stock RemoveObjects(playerid)
- {
- RemoveBuildingForPlayer(playerid, 3369, 349.8750, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3369, 242.3984, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3367, 296.1406, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 16598, 231.2813, 2545.7969, 20.0234, 0.25);
- RemoveBuildingForPlayer(playerid, 16602, 307.9531, 2543.4531, 20.3984, 0.25);
- RemoveBuildingForPlayer(playerid, 3269, 242.3984, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 16599, 231.2813, 2545.7969, 20.0234, 0.25);
- RemoveBuildingForPlayer(playerid, 16098, 307.9531, 2543.4531, 20.3984, 0.25);
- RemoveBuildingForPlayer(playerid, 3271, 296.1406, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 3269, 349.8750, 2438.2500, 15.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 10109, -1660.6875, 1358.9766, 12.2031, 0.25);
- RemoveBuildingForPlayer(playerid, 10141, -1421.6250, 1490.8594, 6.9688, 0.25);
- RemoveBuildingForPlayer(playerid, 728, -1498.1172, 1380.9688, 1.4922, 0.25);
- RemoveBuildingForPlayer(playerid, 728, -1499.1719, 1376.1328, 1.4922, 0.25);
- RemoveBuildingForPlayer(playerid, 728, -1501.1484, 1370.2734, 1.4922, 0.25);
- RemoveBuildingForPlayer(playerid, 728, -1508.8672, 1370.6641, 1.4922, 0.25);
- RemoveBuildingForPlayer(playerid, 728, -1513.2422, 1371.4453, 1.4922, 0.25);
- RemoveBuildingForPlayer(playerid, 728, -1514.3281, 1376.4453, 1.4922, 0.25);
- RemoveBuildingForPlayer(playerid, 728, -1511.1719, 1375.4844, 1.4922, 0.25);
- RemoveBuildingForPlayer(playerid, 10229, -1421.8750, 1489.4453, 5.8203, 0.25);
- RemoveBuildingForPlayer(playerid, 10230, -1421.6250, 1490.8594, 6.9688, 0.25);
- RemoveBuildingForPlayer(playerid, 10231, -1422.5391, 1489.3516, 8.4531, 0.25);
- RemoveBuildingForPlayer(playerid, 10286, -1602.0000, 1323.5859, -6.2500, 0.25);
- RemoveBuildingForPlayer(playerid, 1216, -1696.6875, 1334.4766, 6.8828, 0.25);
- RemoveBuildingForPlayer(playerid, 1496, -1673.1016, 1336.3125, 6.1797, 0.25);
- RemoveBuildingForPlayer(playerid, 9904, -1660.6875, 1358.9766, 12.2031, 0.25);
- RemoveBuildingForPlayer(playerid, 1232, -1649.9609, 1318.2422, 8.8047, 0.25);
- RemoveBuildingForPlayer(playerid, 1232, -1629.5781, 1297.1406, 8.8047, 0.25);
- RemoveBuildingForPlayer(playerid, 10183, -1643.0469, 1302.6094, 6.1016, 0.25);
- RemoveBuildingForPlayer(playerid, 10166, -1602.0000, 1323.5859, -6.2500, 0.25);
- RemoveBuildingForPlayer(playerid, 10140, -1406.9063, 1489.8047, 7.1250, 0.25);
- RemoveBuildingForPlayer(playerid, 10227, -1376.7500, 1490.6328, 12.0234, 0.25);
- RemoveBuildingForPlayer(playerid, 10226, -1377.2344, 1491.6250, 6.2109, 0.25);
- RemoveBuildingForPlayer(playerid, 4257, -1499.9609, 1452.5156, -49.7188, 0.25);
- RemoveBuildingForPlayer(playerid, 4391, -1499.9609, 1452.5156, -49.7188, 0.25);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement