Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #pragma tabsize 0
- // DEFINES FOR KEYS BEIGN PRESSED
- #define HOLDING(%0) ((newkeys & (%0)) == (%0))
- #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #define RELESEAD(%0) (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
- // OTHER DEFINES
- #define SPRAYMSG GameTextForPlayer(playerid,"~y~~h~Spraying!",1000,4);
- forward OnPlayerSpray(playerid, sprayid, Float:x, Float:y , Float:z, Float:angle, int:prize);
- //new Sprays[100][2]
- enum Tags
- {
- id,
- obj,
- Text3D:label
- }
- new Sprays[150][Tags];
- new Graffities[7] =
- {
- 1490,
- 1524,
- 1525,
- 1526,
- 1527,
- 1529,
- 1531
- };
- public OnFilterScriptInit() // > OnGameModeInit
- {
- for( new i=0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && !IsPlayerNPC(i))
- {
- SetPlayerMapIcon( i, 0, 893.2590,-1116.1653,24.2183, 38, 0 );
- SetPlayerMapIcon( i, 1, 815.4355,-1091.4939,25.7899, 38, 0 );
- SetPlayerMapIcon( i, 2, 939.8045,-1085.1536,28.0337, 38, 0 );
- SetPlayerMapIcon( i, 3, 982.8483,-1073.0897,31.4086, 38, 0 );
- SetPlayerMapIcon( i, 4, 1056.9097,-1102.0345,24.3553, 38, 0 );
- SetPlayerMapIcon( i, 7, 732.4426,-1350.0537,13.5062, 38, 0 );
- SetPlayerMapIcon( i, 8, 827.1077,-1348.4089,13.5403, 38, 0 );
- SetPlayerMapIcon( i, 9, 477.0970,-1480.4791,19.8471, 38, 0 );
- SetPlayerMapIcon( i, 10, 512.1003,-1624.9535,26.0938, 38, 0 );
- SetPlayerMapIcon( i, 11, 655.9789,-1621.8478,20.4206, 38, 0 );
- SetPlayerMapIcon( i, 12, 725.8309,-1476.2097,5.4688, 38, 0 );
- SetPlayerMapIcon( i, 13, 834.1522,-1455.6680,13.6079, 38, 0 );
- SetPlayerMapIcon( i, 14, 1020.8724,-1463.7822,13.5671, 38, 0 );
- SetPlayerMapIcon( i, 15, 1127.4692,-1656.8375,18.6103, 38, 0 );
- SetPlayerMapIcon( i, 16, 1082.6774,-1698.4708,19.5469, 38, 0 );
- SetPlayerMapIcon( i, 17, 1181.0287,-1877.8323,13.5643, 38, 0 );
- SetPlayerMapIcon( i, 18, 845.261840,-1852.780151,8.485266, 38, 0 );
- SetPlayerMapIcon( i, 19, 528.168640,-1761.933959,5.678244, 38, 0 );
- SetPlayerMapIcon( i, 20, 378.545593,-2059.618652,7.835937, 38, 0 );
- SetPlayerMapIcon( i, 23, 462.958190,-1330.750854,20.421875, 38, 0 );
- SetPlayerMapIcon( i, 24, 1291.786132,-1210.652221,13.679687, 38, 0 );
- SetPlayerMapIcon( i, 25, 1295.805664,-1006.533264,33.904052, 38, 0 );
- SetPlayerMapIcon( i, 26, 1173.222412,-1347.600830,19.460163, 38, 0 );
- SetPlayerMapIcon( i, 28, 1283.507690,-1508.246582,10.046875, 38, 0 );
- SetPlayerMapIcon( i, 29, 1396.570312,-1461.781005,8.660701, 38, 0 );
- SetPlayerMapIcon( i, 30, 1494.805908,-1664.960449,14.046875, 38, 0 );
- SetPlayerMapIcon( i, 31, 1467.936279,-1767.355102,18.795755, 38, 0 );
- SetPlayerMapIcon( i, 32, 1338.649169,-1784.684814,13.554653, 38, 0 );
- SetPlayerMapIcon( i, 33, 1658.517456,-1656.062988,22.515625, 38, 0 );
- SetPlayerMapIcon( i, 35, 1491.557861,-1726.793945,6.665757, 36, 0 );
- SetPlayerMapIcon( i, 36, 1631.495239,-1513.944580,13.596755, 38, 0 );
- SetPlayerMapIcon( i, 37, 1670.386108,-1370.517089,17.453125, 38, 0 );
- SetPlayerMapIcon( i, 38, 1529.083496,-1235.503784,14.538536, 38, 0 );
- SetPlayerMapIcon( i, 39, 1670.185302,-1200.896362,19.809432, 38, 0 );
- SetPlayerMapIcon( i, 40, 1426.844482,-1348.344360,13.580536, 38, 0 );
- SetPlayerMapIcon( i, 41, 1346.494750,-1656.222290,13.589862, 38, 0 );
- SetPlayerMapIcon( i, 42, 1680.398315,-992.791870,24.078125, 38, 0 );
- SetPlayerMapIcon( i, 43, 1431.649658,-1086.406127,17.566291, 38, 0 );
- SetPlayerMapIcon( i, 44, 1201.071655,-1121.971435,24.235982, 38, 0 );
- SetPlayerMapIcon( i, 46, 1141.765136,-1215.235839,18.513475, 38, 0 );
- SetPlayerMapIcon( i, 47, 1114.818481,-873.780151,43.390625, 38, 0 );
- SetPlayerMapIcon( i, 48, 1304.617797,-863.484680,39.578125, 38, 0 );
- SetPlayerMapIcon( i, 49, 686.850158,-1127.623291,16.789146, 38, 0 );
- SetPlayerMapIcon( i, 50, 294.495452,-1440.990844,31.367750, 38, 0 );
- // Especiales
- SetPlayerMapIcon( i, 5, 952.1675,-1294.1095,22.5553, 36, 0 );
- SetPlayerMapIcon( i, 6, 951.0120,-1233.2150,26.5938, 36, 0 );
- //SetPlayerMapIcon( i, 21, 412.984924,-1746.438842,14.675587, 36, 0 );
- //SetPlayerMapIcon( i, 22, 316.962768,-1512.869140,24.921875, 36, 0 );
- }
- }
- Sprays[0][label] = Create3DTextLabel("Spray!",0x008080FF,893.2590,-1116.1653,24.7183,15.0,0,1);
- Sprays[1][label] = Create3DTextLabel("Spray!",0x008080FF,815.4355,-1091.4939,26.4899,15.0,0,1);
- Sprays[2][label] = Create3DTextLabel("Spray!",0x008080FF,939.8045,-1085.1536,28.5337,15.0,0,1);
- Sprays[3][label] = Create3DTextLabel("Spray!",0x008080FF,982.8483,-1073.0897,31.9086,15.0,0,1);
- Sprays[4][label] = Create3DTextLabel("Spray!",0x008080FF,1056.9097,-1102.0345,24.8553,15.0,0,1);
- Sprays[5][label] = Create3DTextLabel("Spray!",0x008080FF,952.1675,-1294.1095,22.9553,15.0,0,1);
- Sprays[6][label] = Create3DTextLabel("Spray!",0x008080FF,951.0120,-1233.2150,26.9938,15.0,0,1);
- Sprays[7][label] = Create3DTextLabel("Spray!",0x008080FF,732.4426,-1350.0537,13.9062,15.0,0,1);
- Sprays[8][label] = Create3DTextLabel("Spray!",0x008080FF,827.1077,-1348.4089,13.9403,15.0,0,1);
- Sprays[9][label] = Create3DTextLabel("Spray!",0x008080FF,477.0970,-1480.4791,19.8471,15.0,0,1);
- Sprays[10][label] = Create3DTextLabel("Spray!",0x008080FF,512.1003,-1624.9535,26.0938,15.0,0,1);
- Sprays[11][label] = Create3DTextLabel("Spray!",0x008080FF,655.9789,-1621.8478,20.4206,15.0,0,1);
- Sprays[12][label] = Create3DTextLabel("Spray!",0x008080FF,725.8309,-1476.2097,5.4688,15.0,0,1);
- Sprays[13][label] = Create3DTextLabel("Spray!",0x008080FF,834.1522,-1455.6680,13.6079,15.0,0,1);
- Sprays[14][label] = Create3DTextLabel("Spray!",0x008080FF,1020.8724,-1463.7822,13.5671,15.0,0,1);
- Sprays[15][label] = Create3DTextLabel("Spray!",0x008080FF,1127.4692,-1656.8375,18.6103,15.0,0,1);
- Sprays[16][label] = Create3DTextLabel("Spray!",0x008080FF,1082.6774,-1698.4708,19.5469,15.0,0,1);
- Sprays[17][label] = Create3DTextLabel("Spray!",0x008080FF,1181.1991,-1876.6,13.5520,15.0,0,1);
- Sprays[18][label] = Create3DTextLabel("Spray!",0x008080FF,845.261840,-1852.780151,8.485266,15.0,0,1);
- Sprays[19][label] = Create3DTextLabel("Spray!",0x008080FF,528.168640,-1761.933959,5.678244,15.0,0,1);
- Sprays[20][label] = Create3DTextLabel("Spray!",0x008080FF,378.545593,-2059.618652,7.835937,15.0,0,1);
- Sprays[21][label] = Create3DTextLabel("Hidden Spray!",0xff0000ff,412.984924,-1746.4,14.675587,50.0,0,1); // special
- Sprays[22][label] = Create3DTextLabel("Hidden Spray!",0xff0000ff,316.962768,-1512.869140,24.921875,15.0,0,1);// special
- Sprays[23][label] = Create3DTextLabel("Spray!",0x008080FF,462.958190,-1330.750854,20.421875,15.0,0,1);
- Sprays[24][label] = Create3DTextLabel("Spray!",0x008080FF,1291.786132,-1210.652221,13.679687,15.0,0,1);
- Sprays[25][label] = Create3DTextLabel("Spray!",0x008080FF,1295.805664,-1006.533264,33.904052,15.0,0,1);
- Sprays[26][label] = Create3DTextLabel("Spray!",0x008080FF,1173.222412,-1347.600830,19.460163,15.0,0,1);
- Sprays[27][label] = Create3DTextLabel("Hidden Spray!",0xff0000ff,1299.292480,-1438.448364,20.560392,15.0,0,1); // special
- Sprays[28][label] = Create3DTextLabel("Spray!",0x008080FF,1283.507690,-1508.246582,10.046875,15.0,0,1);
- Sprays[29][label] = Create3DTextLabel("Spray!",0x008080FF,1396.570312,-1461.781005,8.660701,15.0,0,1);
- Sprays[30][label] = Create3DTextLabel("Spray!",0x008080FF,1494.805908,-1664.960449,14.046875,15.0,0,1);
- Sprays[31][label] = Create3DTextLabel("Spray!",0x008080FF,1467.936279,-1767.355102,18.795755,15.0,0,1);
- Sprays[32][label] = Create3DTextLabel("Spray!",0x008080FF,1338.649169,-1784.684814,13.554653,15.0,0,1);
- Sprays[33][label] = Create3DTextLabel("Hidden Spray!",0xff0000ff,1654.384765,-1622.615112,22.515625,25.0,0,1); // special
- Sprays[34][label] = Create3DTextLabel("Spray!",0x008080FF,1658.517456,-1656.062988,22.515625,15.0,0,1);
- Sprays[35][label] = Create3DTextLabel("Spray!",0x008080FF,1491.557861,-1726.793945,6.665757,15.0,0,1);
- Sprays[36][label] = Create3DTextLabel("Spray!",0x008080FF,1631.495239,-1513.944580,13.596755,15.0,0,1);
- Sprays[37][label] = Create3DTextLabel("Spray!",0x008080FF,1670.386108,-1370.517089,17.453125,15.0,0,1);
- Sprays[38][label] = Create3DTextLabel("Spray!",0x008080FF,1529.083496,-1235.503784,14.538536,15.0,0,1);
- Sprays[39][label] = Create3DTextLabel("Spray!",0x008080FF,1670.185302,-1200.896362,19.809432,15.0,0,1);
- Sprays[40][label] = Create3DTextLabel("Spray!",0x008080FF,1426.844482,-1348.344360,13.580536,15.0,0,1);
- Sprays[41][label] = Create3DTextLabel("Spray!",0x008080FF,1346.494750,-1656.222290,13.589862,15.0,0,1);
- Sprays[42][label] = Create3DTextLabel("Spray!",0x008080FF,1680.398315,-992.791870,24.078125,15.0,0,1);
- Sprays[43][label] = Create3DTextLabel("Spray!",0x008080FF,1431.649658,-1086.406127,17.566291,15.0,0,1);
- Sprays[44][label] = Create3DTextLabel("Spray!",0x008080FF,1201.071655,-1121.971435,24.235982,15.0,0,1);
- Sprays[45][label] = Create3DTextLabel("Hidden Spray!",0xff0000ff,1194.8,-1186.0950,32.5,15.0,0,1); // special
- Sprays[46][label] = Create3DTextLabel("Spray!",0x008080FF,1141.765136,-1215.235839,18.513475,15.0,0,1);
- Sprays[47][label] = Create3DTextLabel("Spray!",0x008080FF,1114.818481,-873.780151,43.390625,15.0,0,1);
- Sprays[48][label] = Create3DTextLabel("Spray!",0x008080FF,1304.617797,-863.484680,39.578125,15.0,0,1);
- Sprays[49][label] = Create3DTextLabel("Spray!",0x008080FF,686.850158,-1127.623291,16.789146,15.0,0,1);
- Sprays[50][label] = Create3DTextLabel("Spray!",0x008080FF,294.495452,-1440.990844,31.367750,15.0,0,1);
- return 1;
- }
- public OnFilterScriptExit()
- {
- for( new i=0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && !IsPlayerNPC(i))
- {
- RemovePlayerMapIcon( i, 0 );
- RemovePlayerMapIcon( i, 1 );
- RemovePlayerMapIcon( i, 2 );
- RemovePlayerMapIcon( i, 3 );
- RemovePlayerMapIcon( i, 4 );
- RemovePlayerMapIcon( i, 5 );
- RemovePlayerMapIcon( i, 6 );
- }
- DestroyObject(Sprays[i][obj]);
- Delete3DTextLabel(Sprays[i][label]);
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- //Set Map Icons
- // Cementerio
- SetPlayerMapIcon( playerid, 0, 893.2590,-1116.1653,24.2183, 38, 0 );
- SetPlayerMapIcon( playerid, 1, 815.4355,-1091.4939,25.7899, 38, 0 );
- SetPlayerMapIcon( playerid, 2, 939.8045,-1085.1536,28.0337, 38, 0 );
- SetPlayerMapIcon( playerid, 3, 982.8483,-1073.0897,31.4086, 38, 0 );
- SetPlayerMapIcon( playerid, 4, 1056.9097,-1102.0345,24.3553, 38, 0 );
- SetPlayerMapIcon( playerid, 7, 732.4426,-1350.0537,13.5062, 38, 0 );
- SetPlayerMapIcon( playerid, 8, 827.1077,-1348.4089,13.5403, 38, 0 );
- SetPlayerMapIcon( playerid, 9, 477.0970,-1480.4791,19.8471, 38, 0 );
- SetPlayerMapIcon( playerid, 10, 512.1003,-1624.9535,26.0938, 38, 0 );
- SetPlayerMapIcon( playerid, 11, 655.9789,-1621.8478,20.4206, 38, 0 );
- SetPlayerMapIcon( playerid, 12, 725.8309,-1476.2097,5.4688, 38, 0 );
- SetPlayerMapIcon( playerid, 13, 834.1522,-1455.6680,13.6079, 38, 0 );
- SetPlayerMapIcon( playerid, 14, 1020.8724,-1463.7822,13.5671, 38, 0 );
- SetPlayerMapIcon( playerid, 15, 1127.4692,-1656.8375,18.6103, 38, 0 );
- SetPlayerMapIcon( playerid, 16, 1082.6774,-1698.4708,19.5469, 38, 0 );
- SetPlayerMapIcon( playerid, 17, 1181.0287,-1877.8323,13.5643, 38, 0 );
- SetPlayerMapIcon( playerid, 18, 845.261840,-1852.780151,8.485266, 38, 0 );
- SetPlayerMapIcon( playerid, 19, 528.168640,-1761.933959,5.678244, 38, 0 );
- SetPlayerMapIcon( playerid, 20, 378.545593,-2059.618652,7.835937, 38, 0 );
- SetPlayerMapIcon( playerid, 23, 462.958190,-1330.750854,20.421875, 38, 0 );
- SetPlayerMapIcon( playerid, 24, 1291.786132,-1210.652221,13.679687, 38, 0 );
- SetPlayerMapIcon( playerid, 25, 1295.805664,-1006.533264,33.904052, 38, 0 );
- SetPlayerMapIcon( playerid, 26, 1173.222412,-1347.600830,19.460163, 38, 0 );
- SetPlayerMapIcon( playerid, 28, 1283.507690,-1508.246582,10.046875, 38, 0 );
- SetPlayerMapIcon( playerid, 29, 1396.570312,-1461.781005,8.660701, 38, 0 );
- SetPlayerMapIcon( playerid, 30, 1494.805908,-1664.960449,14.046875, 38, 0 );
- SetPlayerMapIcon( playerid, 31, 1467.936279,-1767.355102,18.795755, 38, 0 );
- SetPlayerMapIcon( playerid, 32, 1338.649169,-1784.684814,13.554653, 38, 0 );
- SetPlayerMapIcon( playerid, 33, 1658.517456,-1656.062988,22.515625, 38, 0 );
- SetPlayerMapIcon( playerid, 35, 1491.557861,-1726.793945,6.665757, 36, 0 );
- SetPlayerMapIcon( playerid, 36, 1631.495239,-1513.944580,13.596755, 38, 0 );
- SetPlayerMapIcon( playerid, 37, 1670.386108,-1370.517089,17.453125, 38, 0 );
- SetPlayerMapIcon( playerid, 38, 1529.083496,-1235.503784,14.538536, 38, 0 );
- SetPlayerMapIcon( playerid, 39, 1670.185302,-1200.896362,19.809432, 38, 0 );
- SetPlayerMapIcon( playerid, 40, 1426.844482,-1348.344360,13.580536, 38, 0 );
- SetPlayerMapIcon( playerid, 41, 1346.494750,-1656.222290,13.589862, 38, 0 );
- SetPlayerMapIcon( playerid, 42, 1680.398315,-992.791870,24.078125, 38, 0 );
- SetPlayerMapIcon( playerid, 43, 1431.649658,-1086.406127,17.566291, 38, 0 );
- SetPlayerMapIcon( playerid, 44, 1201.071655,-1121.971435,24.235982, 38, 0 );
- SetPlayerMapIcon( playerid, 46, 1141.765136,-1215.235839,18.513475, 38, 0 );
- SetPlayerMapIcon( playerid, 47, 1114.818481,-873.780151,43.390625, 38, 0 );
- SetPlayerMapIcon( playerid, 48, 1304.617797,-863.484680,39.578125, 38, 0 );
- SetPlayerMapIcon( playerid, 49, 686.850158,-1127.623291,16.789146, 38, 0 );
- SetPlayerMapIcon( playerid, 50, 294.495452,-1440.990844,31.367750, 38, 0 );
- // Especiales
- SetPlayerMapIcon( playerid, 5, 952.1675,-1294.1095,22.5553, 36, 0 );
- SetPlayerMapIcon( playerid, 6, 951.0120,-1233.2150,26.5938, 36, 0 );
- //3d Text Labels
- Sprays[0][label] = Create3DTextLabel("Spray!",0x008080FF,893.2590,-1116.1653,24.7183,15.0,0,1);
- Sprays[1][label] = Create3DTextLabel("Spray!",0x008080FF,815.4355,-1091.4939,26.4899,15.0,0,1);
- Sprays[2][label] = Create3DTextLabel("Spray!",0x008080FF,939.8045,-1085.1536,28.5337,15.0,0,1);
- Sprays[3][label] = Create3DTextLabel("Spray!",0x008080FF,982.8483,-1073.0897,31.9086,15.0,0,1);
- Sprays[4][label] = Create3DTextLabel("Spray!",0x008080FF,1056.9097,-1102.0345,24.8553,15.0,0,1);
- Sprays[5][label] = Create3DTextLabel("Spray!",0x008080FF,952.1675,-1294.1095,22.9553,15.0,0,1);
- Sprays[6][label] = Create3DTextLabel("Spray!",0x008080FF,951.0120,-1233.2150,26.9938,15.0,0,1);
- Sprays[7][label] = Create3DTextLabel("Spray!",0x008080FF,732.4426,-1350.0537,13.9062,15.0,0,1);
- Sprays[8][label] = Create3DTextLabel("Spray!",0x008080FF,827.1077,-1348.4089,13.9403,15.0,0,1);
- Sprays[9][label] = Create3DTextLabel("Spray!",0x008080FF,477.0970,-1480.4791,19.8471,15.0,0,1);
- Sprays[10][label] = Create3DTextLabel("Spray!",0x008080FF,512.1003,-1624.9535,26.0938,15.0,0,1);
- Sprays[11][label] = Create3DTextLabel("Spray!",0x008080FF,655.9789,-1621.8478,20.4206,15.0,0,1);
- Sprays[12][label] = Create3DTextLabel("Spray!",0x008080FF,725.8309,-1476.2097,5.4688,15.0,0,1);
- Sprays[13][label] = Create3DTextLabel("Spray!",0x008080FF,834.1522,-1455.6680,13.6079,15.0,0,1);
- Sprays[14][label] = Create3DTextLabel("Spray!",0x008080FF,1020.8724,-1463.7822,13.5671,15.0,0,1);
- Sprays[15][label] = Create3DTextLabel("Spray!",0x008080FF,1127.4692,-1656.8375,18.6103,15.0,0,1);
- Sprays[16][label] = Create3DTextLabel("Spray!",0x008080FF,1082.6774,-1698.4708,19.5469,15.0,0,1);
- Sprays[17][label] = Create3DTextLabel("Spray!",0x008080FF,1181.1991,-1876.6,13.5520,15.0,0,1);
- Sprays[18][label] = Create3DTextLabel("Spray!",0x008080FF,845.261840,-1852.780151,8.485266,15.0,0,1);
- Sprays[19][label] = Create3DTextLabel("Spray!",0x008080FF,528.168640,-1761.933959,5.678244,15.0,0,1);
- Sprays[20][label] = Create3DTextLabel("Spray!",0x008080FF,378.545593,-2059.618652,7.835937,15.0,0,1);
- Sprays[21][label] = Create3DTextLabel("Hidden Spray!",0x008080FF,412.984924,-1746.4,14.675587,15.0,0,1); // special
- Sprays[22][label] = Create3DTextLabel("Hidden Spray!",0xff0000ff,316.962768,-1512.869140,24.921875,15.0,0,1); // special
- Sprays[23][label] = Create3DTextLabel("Spray!",0x008080FF,462.958190,-1330.750854,20.421875,15.0,0,1);
- Sprays[24][label] = Create3DTextLabel("Spray!",0x008080FF,1291.786132,-1210.652221,13.679687,15.0,0,1);
- Sprays[25][label] = Create3DTextLabel("Spray!",0x008080FF,1295.805664,-1006.533264,33.904052,15.0,0,1);
- Sprays[26][label] = Create3DTextLabel("Spray!",0x008080FF,1173.222412,-1347.600830,19.460163,15.0,0,1);
- Sprays[27][label] = Create3DTextLabel("Hidden Spray!",0xff0000ff,1299.292480,-1438.448364,20.560392,15.0,0,1); // special
- Sprays[28][label] = Create3DTextLabel("Spray!",0x008080FF,1283.507690,-1508.246582,10.046875,15.0,0,1);
- Sprays[29][label] = Create3DTextLabel("Spray!",0x008080FF,1396.570312,-1461.781005,8.660701,15.0,0,1);
- Sprays[30][label] = Create3DTextLabel("Spray!",0x008080FF,1494.805908,-1664.960449,14.046875,15.0,0,1);
- Sprays[31][label] = Create3DTextLabel("Spray!",0x008080FF,1467.936279,-1767.355102,18.795755,15.0,0,1);
- Sprays[32][label] = Create3DTextLabel("Spray!",0x008080FF,1338.649169,-1784.684814,13.554653,15.0,0,1);
- Sprays[33][label] = Create3DTextLabel("Hidden Spray!",0xff0000ff,1654.384765,-1622.615112,22.515625,25.0,0,1); // special
- Sprays[34][label] = Create3DTextLabel("Spray!",0x008080FF,1658.517456,-1656.062988,22.515625,15.0,0,1);
- Sprays[35][label] = Create3DTextLabel("Spray!",0x008080FF,1491.557861,-1726.793945,6.665757,15.0,0,1);
- Sprays[36][label] = Create3DTextLabel("Spray!",0x008080FF,1631.495239,-1513.944580,13.596755,15.0,0,1);
- Sprays[37][label] = Create3DTextLabel("Spray!",0x008080FF,1670.386108,-1370.517089,17.453125,15.0,0,1);
- Sprays[38][label] = Create3DTextLabel("Spray!",0x008080FF,1529.083496,-1235.503784,14.538536,15.0,0,1);
- Sprays[39][label] = Create3DTextLabel("Spray!",0x008080FF,1670.185302,-1200.896362,19.809432,15.0,0,1);
- Sprays[40][label] = Create3DTextLabel("Spray!",0x008080FF,1426.844482,-1348.344360,13.580536,15.0,0,1);
- Sprays[41][label] = Create3DTextLabel("Spray!",0x008080FF,1346.494750,-1656.222290,13.589862,15.0,0,1);
- Sprays[42][label] = Create3DTextLabel("Spray!",0x008080FF,1680.398315,-992.791870,24.078125,15.0,0,1);
- Sprays[43][label] = Create3DTextLabel("Spray!",0x008080FF,1431.649658,-1086.406127,17.566291,15.0,0,1);
- Sprays[44][label] = Create3DTextLabel("Spray!",0x008080FF,1201.071655,-1121.971435,24.235982,15.0,0,1);
- Sprays[45][label] = Create3DTextLabel("Hidden Spray!",0xff0000ff,1194.8,-1186.0950,32.5,15.0,0,1); // special
- Sprays[46][label] = Create3DTextLabel("Spray!",0x008080FF,1141.765136,-1215.235839,18.513475,15.0,0,1);
- Sprays[47][label] = Create3DTextLabel("Spray!",0x008080FF,1114.818481,-873.780151,43.390625,15.0,0,1);
- Sprays[48][label] = Create3DTextLabel("Spray!",0x008080FF,1304.617797,-863.484680,39.578125,15.0,0,1);
- Sprays[49][label] = Create3DTextLabel("Spray!",0x008080FF,686.850158,-1127.623291,16.789146,15.0,0,1);
- Sprays[50][label] = Create3DTextLabel("Spray!",0x008080FF,294.495452,-1440.990844,31.367750,15.0,0,1);
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(!IsPlayerInAnyVehicle(playerid) && SLEEPING == 0 && URINATING == 0)
- {
- if(PRESSED(KEY_FIRE) && GetPlayerWeapon(playerid) == 41)
- {
- new Float:angle;
- GetPlayerFacingAngle(playerid, angle);
- if(IsPlayerInRangeOfPoint(playerid, 1.0, 893.3028,-1117.3040,24.1885) && (angle >= 172 && angle <= 205))
- {
- SetPlayerPos(playerid, 893.2590,-1116.1653,24.2183);
- SetPlayerFacingAngle( playerid, 182 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,0,893.3028,-1117.6,24.1885,270.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 815.4355,-1091.4939,25.7899) && (angle >= 0 && angle <= 25))
- {
- SetPlayerPos(playerid, 815.3524,-1092.4591,25.7898);
- SetPlayerFacingAngle( playerid, 0.8061 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,1,815.4355,-1091.3,25.7899,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 939.8081,-1084.8080,28.5672) && (angle >= 0 && angle <= 25))
- {
- SetPlayerPos(playerid, 939.8045,-1085.1536,28.0337);
- SetPlayerFacingAngle( playerid, 1.0961 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,2,939.8081,-1084.4,28.5672,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 982.8483,-1073.0897,31.4086) && (angle >= 0 && angle <= 25))
- {
- SetPlayerPos(playerid, 982.8846,-1073.7616,31.4086);
- SetPlayerFacingAngle( playerid, 2.4015 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,3,982.8483,-1072.9,31.4086,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1056.9097,-1102.0345,24.3553) && (angle >= 250 && angle <= 290) )
- {
- SetPlayerPos(playerid, 1056.2628,-1102.0345,24.2970);
- SetPlayerFacingAngle( playerid, 269.9910 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,4,1057.2,-1102.0345,24.3553,360.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 952.1675,-1294.1095,22.5553) && (angle >= 260 && angle <= 300) ) // Cartel 1
- {
- SetPlayerPos(playerid, 951.6037,-1294.1396,22.5553);
- SetPlayerFacingAngle( playerid, 272.4410 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,5,952.52,-1294.1095,22.5553,1.0,500);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 951.0120,-1233.2150,26.5938) && (angle >= 300 && angle <= 360) ) // Cartel 2
- {
- SetPlayerPos(playerid, 950.6517,-1233.5115,26.5938);
- SetPlayerFacingAngle( playerid, 310.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,6,951.60,-1233.2150,26.5938,36.0,500);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 732.4426,-1350.0537,13.5062) && (angle >= 80 && angle <= 125) )
- {
- SetPlayerPos(playerid, 733.2525,-1350.0721,13.5062);
- SetPlayerFacingAngle( playerid, 91.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,7,732.1,-1350.0537,13.5062,180.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 827.1077,-1348.4089,13.5403) && (angle >= 260 && angle <= 300) )
- {
- SetPlayerPos(playerid, 826.3533,-1348.4375,13.5335);
- SetPlayerFacingAngle( playerid, 270.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,8,827.5,-1348.4089,13.5403,360.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 477.0970,-1480.4791,19.8471) && (angle >= 68 && angle <= 100) )
- {
- SetPlayerPos(playerid, 478.2044,-1480.4751,19.8350);
- SetPlayerFacingAngle( playerid, 78.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,9,476.7,-1480.4791,19.8471,168.5,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 512.1003,-1624.9535,26.0938) && (angle >= 170 && angle <= 220) )
- {
- SetPlayerPos(playerid, 512.0818,-1624.4108,26.0938);
- SetPlayerFacingAngle( playerid, 180.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,10,512.1003,-1625.2,26.0938,270.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 655.9789,-1621.8478,20.4206) && (angle >= 170 && angle <= 220) )
- {
- SetPlayerPos(playerid, 656.0445,-1620.8605,20.4206);
- SetPlayerFacingAngle( playerid, 180.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,11,655.9789,-1622.22,20.3500,270.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 725.7427,-1476.0,5.4688) && (angle >= 0 && angle <= 25) )
- {
- SetPlayerPos(playerid, 725.8496,-1477.1033,5.4688);
- SetPlayerFacingAngle( playerid, 5.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,12,725.8309,-1475.9,5.4,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 834.1522,-1455.6680,13.6079) && (angle >= 170 && angle <= 220) )
- {
- SetPlayerPos(playerid, 834.1060,-1454.2032,13.6008);
- SetPlayerFacingAngle( playerid, 184.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,13,834.1522,-1456.0,13.6079,270.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1020.8724,-1463.7822,13.5671) && (angle >= 170 && angle <= 220) )
- {
- SetPlayerPos(playerid, 1020.9099,-1462.7952,13.5628);
- SetPlayerFacingAngle( playerid, 180.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,14,1020.8724,-1464.51,13.5671,270.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1127.4692,-1656.8375,18.6103) && (angle >= 75 && angle <= 120) )
- {
- SetPlayerPos(playerid, 1128.2518,-1656.7513,18.6110);
- SetPlayerFacingAngle( playerid, 90.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,15,1127.22,-1656.8375,18.6103,180.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1082.6774,-1698.4708,19.5469) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 1082.6996,-1699.0251,19.5469);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,16,1082.6996,-1698.15,19.1,90.0,150);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1181.1991,-1876.7766,13.5520) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 1181.0287,-1877.8323,13.5643);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,17,1181.1991,-1876.5,13.5520,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 845.2870,-1852.7802,8.4855) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 845.3514,-1853.6450,8.4852);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,18,845.2870,-1852.45,8.4855,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 528.1686,-1761.9282,5.6782) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 528.1497,-1762.8901,5.6786);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,19,528.1686,-1761.6,5.6782,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 378.5455,-2059.5425,7.8359) && (angle >= 75 && angle <= 120) )
- {
- SetPlayerPos(playerid, 379.5522,-2059.6375,7.8359);
- SetPlayerFacingAngle( playerid, 90.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,20,378.3,-2059.6187,7.8359,180.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 412.9849,-1746.4388,14.6756) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 413.0900,-1747.4247,14.6713);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,21,412.9849,-1746.2,14.6756,90.0,500);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 316.9628,-1512.8691,24.9219) && (angle >= 215 && angle <= 265) )
- {
- SetPlayerPos(playerid, 316.3103,-1512.2034,24.9219);
- SetPlayerFacingAngle( playerid, 235.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,22,317.2,-1513.0,24.9219,325.0,250);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 462.9635,-1330.7458,20.4219) && (angle >= 150 && angle <= 190) )
- {
- SetPlayerPos(playerid, 463.0425,-1330.1271,20.4219);
- SetPlayerFacingAngle( playerid, 162.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,23,462.6,-1330.7458,22.5,250.0,125);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1291.7845,-1210.6592,13.6797) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 1291.8827,-1211.4441,13.6797);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,24,1291.7845,-1210.3,13.6797,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1295.8057,-1006.5333,33.9041) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 1295.8127,-1007.4,33.9041);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,25,1295.8057,-1006.2,33.9041,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1173.2224,-1347.6008,19.4602) && (angle >= 75 && angle <= 130) )
- {
- SetPlayerPos(playerid, 1174.4968,-1347.5966,19.4633);
- SetPlayerFacingAngle( playerid, 90.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,26,1173.0,-1347.6008,19.4602,180.0,150);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1299.2925,-1438.4484,20.5604) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 1299.3081,-1439.5317,20.3277);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,27,1299.2925,-1438.14,20.75,90.0,500);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1283.5077,-1508.2466,10.0469) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 1283.6693,-1509.0781,10.0469);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,28,1283.5077,-1507.9,10.0469,90.0,150);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1396.5703,-1461.7810,8.6607) && (angle >= 40 && angle <= 125) )
- {
- SetPlayerPos(playerid, 1397.4303,-1462.0782,8.6652);
- SetPlayerFacingAngle( playerid, 70.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,29,1396.15,-1462.0782,8.6607,162.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1494.8059,-1664.9604,14.0469) && (angle >= 250 && angle <= 320) )
- {
- SetPlayerPos(playerid, 1493.7311,-1665.0725,14.0469);
- SetPlayerFacingAngle( playerid, 270.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,30,1495.1,-1664.9604,14.0469,360.0,130);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1467.9363,-1767.3551,18.7958) && (angle >= 75 && angle <= 135) )
- {
- SetPlayerPos(playerid, 1468.7540,-1767.3281,18.7958);
- SetPlayerFacingAngle( playerid, 90.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,31,1467.65,-1767.3551,18.7958,180.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1338.6492,-1784.6848,13.5547) && (angle >= 75 && angle <= 135) )
- {
- SetPlayerPos(playerid, 1339.7914,-1784.6808,13.5547);
- SetPlayerFacingAngle( playerid, 90.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,32,1338.35,-1784.6848,13.5547,180.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1654.3848,-1622.6151,22.5156) && (angle >= 160 && angle <= 225) )
- {
- SetPlayerPos(playerid, 1654.1855,-1621.5541,22.5156);
- SetPlayerFacingAngle( playerid, 180.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,33,1654.3848,-1622.9,22.5156,270.0,500);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1658.5175,-1656.0630,22.5156) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 1658.5391,-1657.2717,22.5156);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,34,1658.5175,-1655.72,22.5156,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1491.5579,-1726.7939,6.6658) && (angle >= 310 && angle <= 360) )
- {
- SetPlayerPos(playerid, 1491.2069,-1727.6163,6.6671);
- SetPlayerFacingAngle( playerid, 350.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,35,1491.5579,-1726.5,6.6658,80.0,300);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1631.4952,-1513.9446,13.5968) && (angle >= 255 && angle <= 325) )
- {
- SetPlayerPos(playerid, 1630.4738,-1514.0077,13.5981);
- SetPlayerFacingAngle( playerid, 270.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,36,1631.78,-1513.9446,13.5968,0.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1670.3861,-1370.5171,17.4531) && (angle >= 165 && angle <= 225) )
- {
- SetPlayerPos(playerid, 1670.3342,-1369.5138,17.4531);
- SetPlayerFacingAngle( playerid, 180.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,37,1670.3861,-1370.85,17.4531,270.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1529.0835,-1235.5038,14.5385) && (angle >= 260 && angle <= 305) )
- {
- SetPlayerPos(playerid, 1528.2404,-1235.5140,14.5291);
- SetPlayerFacingAngle( playerid, 270.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,38,1529.38,-1235.5038,14.5385,360.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1670.1853,-1200.8964,19.8094) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 1670.3265,-1201.9503,19.8108);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,39,1670.1853,-1200.65,19.8094,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1426.8445,-1348.3444,13.5805) && (angle >= 245 && angle <= 315) )
- {
- SetPlayerPos(playerid, 1425.9227,-1348.3405,13.5785);
- SetPlayerFacingAngle( playerid, 270.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,40,1427.2,-1348.3444,13.5805,0.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1346.4948,-1656.2223,13.5899) && (angle >= 245 && angle <= 315) )
- {
- SetPlayerPos(playerid, 1345.7346,-1656.2430,13.5880);
- SetPlayerFacingAngle( playerid, 270.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,41,1346.75,-1656.2223,13.5899,0.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1680.3983,-992.7919,24.0781) && (angle >= 0 && angle <= 45) )
- {
- SetPlayerPos(playerid, 1680.4799,-993.6778,24.0781);
- SetPlayerFacingAngle( playerid, 0.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,42,1680.3983,-992.5,24.0781,90.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1431.6499,-1086.3334,17.5663) && (angle >= 235 && angle <= 315) )
- {
- SetPlayerPos(playerid, 1430.6936,-1086.2904,17.5647);
- SetPlayerFacingAngle( playerid, 270.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,43,1431.9,-1086.3334,17.5663,0.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1201.0717,-1121.9714,24.2360) && (angle >= 140 && angle <= 210) )
- {
- SetPlayerPos(playerid, 1201.0649,-1121.4681,24.2523);
- SetPlayerFacingAngle( playerid, 180.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,44,1201.0717,-1122.5,24.2360,270.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1194.9130,-1186.0950,31.8125) && (angle >= 35 && angle <= 115) )
- {
- SetPlayerPos(playerid, 1195.2,-1186.0950,31.8125);
- SetPlayerFacingAngle( playerid, 70.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,45,1193.72,-1186.05,33.7,160.0,600);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1141.7651,-1215.2358,18.5135) && (angle >= 45 && angle <= 135) )
- {
- SetPlayerPos(playerid, 1142.2565,-1215.1577,18.5136);
- SetPlayerFacingAngle( playerid, 90.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,46,1141.45,-1215.2358,18.5135,180.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1114.8185,-873.7802,43.3906) && (angle >= 145 && angle <= 225) )
- {
- SetPlayerPos(playerid, 1114.7092,-873.1791,43.3906);
- SetPlayerFacingAngle( playerid, 180.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,47,1114.8185,-874.1,43.3906,270.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1304.6178,-863.4847,39.5781) && (angle >= 40 && angle <= 120) )
- {
- SetPlayerPos(playerid, 1305.3354,-863.5535,39.5781);
- SetPlayerFacingAngle( playerid, 85.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,48,1304.25,-863.4847,39.5781,180.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 686.8502,-1127.6233,16.7891) && (angle >= 40 && angle <= 120) )
- {
- SetPlayerPos(playerid, 687.3957,-1127.8279,16.7921);
- SetPlayerFacingAngle( playerid, 70.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,49,686.5,-1127.6233,16.5891,155.0,100);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 1.0, 294.4955,-1440.9908,31.3678) && (angle >= 175 && angle <= 255) )
- {
- SetPlayerPos(playerid, 293.9173,-1440.2664,31.3678);
- SetPlayerFacingAngle( playerid, 210.0 );
- SPRAYMSG
- SetTimerEx("OnPlayerSpray",2000,false,"diffffi",playerid,50,294.88,-1440.9908,32.0,301.5,100);
- }
- }
- }
- return 1;
- }
- public OnPlayerSpray(playerid, sprayid, Float:x, Float:y , Float:z, Float:angle, int:prize)
- {
- new keys,updown,leftright, string[128];
- GetPlayerKeys(playerid,keys,updown,leftright);
- format(string,sizeof(string),"~r~~h~Sprayed!~n~$%i", prize);
- if(Sprays[sprayid][id] == 1)
- return GameTextForPlayer(playerid,"~b~~h~You've already sprayed that!",1500,3);
- if (keys == KEY_FIRE)
- {
- if(!IsPlayerInRangeOfPoint(playerid, 2.5, x,y,z))
- return GameTextForPlayer(playerid,"~y~~h~Spray cancelado!",1500,3);
- if (GetPlayerSkin(playerid) >= 0 && GetPlayerSkin(playerid) < 280)
- {
- Sprays[sprayid][obj] = CreateObject(Graffities[random(7)], x,y,z+0.5, 0.0, 0.0, angle);
- RemovePlayerMapIcon( playerid, sprayid );
- Delete3DTextLabel(Sprays[sprayid][label]);
- Sprays[sprayid][id] = 1;
- GameTextForPlayer(playerid,string,3000,3);
- GivePlayerMoney(playerid, prize);
- PlayerPlaySound(playerid,1055,0,0,0);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement