24.01.2010, 15:58
hole script!
Quote:
#include <a_samp> #include <core> #include <float> #pragma tabsize 0 main() { print("\n----------------------------------"); print(" LasVenturas Party by:ExtremePower\n"); print("----------------------------------\n"); } public OnPlayerConnect(playerid) { new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"%s Se prikljucio na Party. Dobrodosli!",pName); SendClientMessageToAll(0xFFFFFFAA,string); return 1; } public OnPlayerDisconnect(playerid, reason) { new string[64], name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); switch(reason) { case 0: format(string,sizeof string,"%s Je napustio server. (Timed out)",name); case 1: format(string,sizeof string,"%s Je napustio server. (Leaving)",name); case 2: format(string,sizeof string,"%s Je napustio server. (Kicked/Banned)",name); } SendClientMessageToAll(0xFFFFFFAA,string); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { new idx; new cmd[256]; cmd = strtok(cmdtext, idx); if(strcmp(cmd, "/admins", true) == 0) { SendClientMessage(playerid,0xFFFFFFAA," Iz puno razloga ne pokazujemo listu online admina ali zapamti, stalno smo tu!!"); return 1; } return 0; } public OnPlayerSpawn(playerid) { SetPlayerInterior(playerid,0); TogglePlayerClock(playerid,0); return 1; } public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); return 1; } SetupPlayerForClassSelection(playerid) { SetPlayerInterior(playerid,14); SetPlayerPos(playerid,349.0453,193.2271,1014.1797) ; SetPlayerFacingAngle(playerid, 286.25); SetPlayerCameraPos(playerid,352.9164,194.5702,1014 .1875); SetPlayerCameraLookAt(playerid,349.0453,193.2271,1 014.1797); } public OnPlayerRequestClass(playerid, classid) { SetupPlayerForClassSelection(playerid); return 1; } public OnGameModeInit() { SetGameModeText("Lv Party"); ShowPlayerMarkers(1); ShowNameTags(1); AllowAdminTeleport(1); AddPlayerClass(83,1320.0809,1261.2794,10.8203,0.73 22,10,0,0,0,0,0); AddPlayerClass(84,1320.0809,1261.2794,10.8203,0.73 22,10,0,0,0,0,0); AddPlayerClass(131,1320.0809,1261.2794,10.8203,0.7 322,10,0,0,0,0,0); AddPlayerClass(171,1320.0809,1261.2794,10.8203,0.7 322,10,0,0,0,0,0); AddPlayerClass(287,1320.0809,1261.2794,10.8203,0.7 322,10,0,0,0,0,0); AddPlayerClass(227,1320.0809,1261.2794,10.8203,0.7 322,10,0,0,0,0,0); AddPlayerClass(264,1320.0809,1261.2794,10.8203,0.7 322,10,0,0,0,0,0); AddPlayerClass(256,1320.0809,1261.2794,10.8203,0.7 322,10,0,0,0,0,0); AddPlayerClass(19,1320.0809,1261.2794,10.8203,0.73 22,10,0,0,0,0,0); AddPlayerClass(18,1320.0809,1261.2794,10.8203,0.73 22,10,0,0,0,0,0); AddPlayerClass(17,1320.0809,1261.2794,10.8203,0.73 22,10,0,0,0,0,0); //------------Objekti--------------// CreateObject(1309, 1712.304688, 1606.560791, 21.687422, 0, 0, -22.4999953447); // object CreateObject(3249, 1707.663940, 1608.471802, 9.015626, 0, 0, -22.4999953447); // object ( CreateObject(1684, 1713.298584, 1601.371460, 10.597813, 0, 0, 67.4999860342); // object (10) CreateObject(1684, 1704.471680, 1610.503906, 15.827782, 0, 0, 67.4999860342); // object (11) CreateObject(1684, 1469.921509, 1182.259888, 11.410189, 0, 0, 0); // object (12) CreateObject(1684, 1484.536255, 1181.895752, 11.410189, 0, 0, 179.99996275; // object (13) CreateObject(1684, 1340.610718, 1545.980713, 11.410189, 0, 0, 89.9999813789); // object (14) CreateObject(1684, 1340.800537, 1536.094116, 11.410189, 0, 0, 89.9999813789); // object (15) CreateObject(3866, 1300.663208, 1533.473022, 17.658876, 0, 0, 0); // object (16) CreateObject(3504, 1334.072632, 1527.280762, 13.955126, 0, 0, 89.9999813789); // object (17) CreateObject(3436, 1338.774536, 1680.911011, 15.498598, 0, 0, 0); // object (1 CreateObject(3445, 1277.542969, 1383.285278, 12.845118, 0, 0, 89.9999813789); // object (19) CreateObject(3445, 1277.720947, 1401.417114, 12.845118, 0, 0, -269.999944137); // object (20) CreateObject(3446, 1280.565308, 1420.389038, 13.248373, 0, 0, 89.9999813789); // object (22) CreateObject(3454, 1284.944824, 1445.666626, 14.090552, 0, 0, 89.9999813789); // object (23) CreateObject(3455, 1314.116333, 1477.255493, 12.899693, 0, 0, 0); // object (24) CreateObject(3464, 1360.738159, 1474.830688, 12.117188, 0, 0, 89.9999813789); // object (25) CreateObject(3483, 1322.830811, 1390.472656, 16.773510, 0, 0, 180.000020054); // object (26) CreateObject(3486, 1352.841431, 1390.321777, 16.773523, 0, 0, 180.000020054); // object (27) CreateObject(3555, 1362.211060, 1422.898804, 12.548267, 0, 0, 89.9999813789); // object (29) CreateObject(3555, 1362.246582, 1433.046997, 12.548267, 0, 0, 89.9999813789); // object (30) CreateObject(3556, 1334.794556, 1429.947510, 12.439378, 0, 0, 0); // object (31) CreateObject(3558, 1317.326050, 1431.018799, 12.774865, 0, 0, 0); // object (32) CreateObject(3580, 1340.458252, 1250.376099, 22.975895, 0, 0, 0); // object (33) CreateObject(4002, 1429.022827, 1637.801147, 32.910542, 0, 0, 0); // object (34) CreateObject(967, 1430.843994, 1637.861938, 132.640442, 0, 0, 180.000020054); // object (35) CreateObject(4007, 1441.476196, 1424.363892, 27.733803, 0, 0, 89.9999813789); // object (36) CreateObject(3819, 1451.600830, 1416.148804, 110.892059, 0, 0, 0); // object (37) CreateObject(2468, 1453.919800, 1421.421143, 109.891632, 0, 0, 0); // object (3 CreateObject(1380, 1425.212524, 1431.097534, 134.117889, 0, 0, 0); // object (39) CreateObject(1381, 1425.545532, 1431.001587, 135.035416, 0, 0, 0); // object (40) CreateObject(925, 1424.285767, 1429.671997, 134.769165, 0, 0, 0); // object (42) CreateObject(931, 1424.330811, 1432.146240, 134.769165, 0, 0, 0); // object (44) CreateObject(944, 1424.254639, 1431.070068, 135.313934, 0, 0, 0); // object (45) CreateObject(10948, 1516.120850, 1282.697266, 71.588142, 0, 0, 89.9999813789); // object (46) CreateObject(17533, 1488.275024, 1380.878784, 33.513824, 0, 0, 89.9999813789); // object (47) CreateObject(3873, 1435.840942, 1337.033936, 27.160978, 0, 0, 0); // object (4 CreateObject(4141, 1434.781738, 1514.502808, 20.870470, 0, 0, 0); // object (49) CreateObject(3988, 1556.328979, 1457.281250, 18.753263, 0, 0, 0); // object (50) CreateObject(3249, 1584.172119, 1467.992188, 9.829219, 0, 0, -89.9999813789); // object (51) CreateObject(1675, 1363.950439, 1246.275146, 12.972424, 0, 0, 0); // object (52) CreateObject(1675, 1382.403198, 1245.971436, 12.979776, 0, 0, 0); // object (53) CreateObject(1675, 1399.564941, 1237.801270, 12.979776, 0, 0, 0); // object (54) CreateObject(1677, 1425.770386, 1235.475952, 13.597261, 0, 0, 89.9999813789); // object (55) CreateObject(3707, 1518.078247, 1195.601074, 17.795628, 0, 0, 0); // object (56) CreateObject(6189, 1423.703369, 1577.975952, 24.439404, 0, 0, 89.9999813789); // object (5 CreateObject(5137, 1595.304443, 1581.187988, 15.785892, 0, 0, -89.9999813789); // object (60) CreateObject(3279, 1483.695679, 1566.105957, 39.022835, 0, 0, 180.000020054); // object (61) CreateObject(3279, 1481.519409, 1585.852905, 39.022835, 0, 0, -89.9999813789); // object (62) CreateObject(2932, 1360.759888, 1565.086182, 40.399136, 0, 0, 0); // object (63) CreateObject(2932, 1360.560547, 1572.001221, 40.399136, 0, 0, 0); // object (64) CreateObject(2932, 1360.618164, 1578.825928, 40.399136, 0, 0, 0); // object (65) CreateObject(2932, 1360.641602, 1585.676514, 40.399136, 0, 0, 0); // object (66) CreateObject(2932, 1360.593384, 1590.508423, 40.399136, 0, 0, 0); // object (67) CreateObject(1222, 1364.301758, 1562.679688, 39.423283, 0, 0, 0); // object (6 CreateObject(1222, 1363.057861, 1592.959839, 39.423283, 0, 0, 0); // object (69) CreateObject(3996, 1454.509277, 1376.971558, 69.015778, 0, 0, 0); // object (70) CreateObject(3996, 1511.012573, 1375.176025, 69.204788, 0, 0, 0); // object (71) CreateObject(744, 1558.898560, 1378.396606, 70.662537, 0, 0, 0); // object (72) CreateObject(744, 1558.964478, 1371.928345, 70.662537, 0, 0, 0); // object (73) CreateObject(744, 1559.361694, 1367.116577, 70.826599, 0, 0, 0); // object (74) CreateObject(744, 1561.286865, 1381.343018, 70.826599, 0, 0, 0); // object (75) CreateObject(624, 1553.402832, 1384.064453, 68.655212, 0, 0, 0); // object (76) CreateObject(624, 1540.941650, 1384.722900, 68.655212, 0, 0, 0); // object (77) CreateObject(624, 1521.482300, 1384.174072, 68.491150, 0, 0, 0); // object (7 CreateObject(624, 1505.149658, 1387.223755, 68.690384, 0, 0, 0); // object (79) CreateObject(624, 1487.014038, 1386.509155, 68.655212, 0, 0, 0); // object (80) CreateObject(624, 1471.274536, 1386.618896, 68.690384, 0, 0, 0); // object (81) CreateObject(624, 1459.311401, 1387.121704, 68.690384, 0, 0, 0); // object (82) CreateObject(624, 1449.418579, 1385.337646, 68.466202, 0, 0, 0); // object (83) CreateObject(624, 1423.417236, 1386.552856, 68.466202, 0, 0, 0); // object (84) CreateObject(624, 1407.663452, 1385.309937, 68.466202, 0, 0, 0); // object (85) CreateObject(624, 1405.519897, 1370.116455, 68.466202, 0, 0, 0); // object (86) CreateObject(624, 1420.355591, 1370.821411, 68.466202, 0, 0, 0); // object (87) CreateObject(624, 1441.077271, 1371.157227, 68.458412, 0, 0, 0); // object (8 CreateObject(624, 1454.821533, 1370.828125, 68.690384, 0, 0, 0); // object (89) CreateObject(624, 1461.803345, 1364.980957, 68.690384, 0, 0, 0); // object (90) CreateObject(624, 1475.290161, 1365.459106, 68.690384, 0, 0, 0); // object (91) CreateObject(624, 1496.638062, 1366.339478, 68.690384, 0, 0, 0); // object (92) CreateObject(624, 1510.743652, 1368.991333, 68.690384, 0, 0, 0); // object (93) CreateObject(624, 1533.463501, 1368.786011, 68.655212, 0, 0, 0); // object (94) CreateObject(624, 1554.536621, 1368.397705, 68.655212, 0, 0, 0); // object (96) CreateObject(17019, 1493.215088, 1497.169922, 15.818472, 0, 0, 0); // object (97) CreateObject(17020, 1479.684814, 1479.471191, 13.815962, 0, 0, 89.9999813789); // object (9 CreateObject(7971, 1351.403809, 1353.548340, 14.646531, 0, 0, 89.9999813789); // object (100) CreateObject(1245, 1407.991089, 1374.995483, 70.425224, 0, 0, 0); // object (101) CreateObject(1245, 1408.176147, 1379.527588, 70.425224, 0, 0, 0); // object (102) CreateObject(1245, 1364.743774, 1572.995972, 40.434788, 0, 0, 0); // object (103) CreateObject(1245, 1364.477295, 1583.111938, 40.434788, 0, 0, 0); // object (104) CreateObject(1245, 1364.760986, 1576.172119, 40.434788, 0, 0, 0); // object (105) CreateObject(1245, 1365.278442, 1579.338135, 40.434788, 0, 0, 0); // object (106) CreateObject(1260, 1463.115112, 1769.831665, 22.693155, 0, 0, 89.9999813789); // object (107) CreateObject(1312, 1470.063843, 1720.145142, 14.008887, 0, 0, 0); // object (10 CreateObject(1444, 1457.790039, 1769.313354, 10.617188, 0, 0, 0); // object (109) CreateObject(1540, 1470.215088, 1765.319214, 14.678295, 0, 0, 89.9999813789); // object (110) CreateObject(18568, 1460.964966, 1834.020996, 10.601507, 0, 0, 0); // object (111) CreateObject(18569, 1470.325195, 1829.930786, 11.138590, 0, 0, 0); // object (112) CreateObject(18569, 1485.229126, 1835.061646, 11.138590, 0, 0, 0); // object (113) CreateObject(18569, 1465.191528, 1816.747681, 11.138590, 0, 0, 0); // object (114) CreateObject(18569, 1458.626587, 1812.184082, 11.138590, 0, 0, 0); // object (115) CreateObject(18569, 1484.646240, 1817.908081, 11.138590, 0, 0, 0); // object (116) CreateObject(18569, 1471.238525, 1806.557373, 11.138590, 0, 0, 0); // object (117) CreateObject(18569, 1495.349854, 1806.255615, 11.138590, 0, 0, 0); // object (11 CreateObject(18569, 1502.908936, 1828.835815, 11.146402, 0, 0, 0); // object (119) CreateObject(18569, 1451.863892, 1830.081787, 11.139076, 0, 0, 0); // object (120) CreateObject(969, 1369.499268, 1763.364136, 9.987190, 0, 0, 0); // object (121) CreateObject(969, 1378.350586, 1763.457520, 9.987190, 0, 0, 0); // object (122) CreateObject(969, 1387.163940, 1763.489258, 9.987190, 0, 0, 0); // object (123) CreateObject(969, 1396.055542, 1763.522461, 9.987190, 0, 0, 0); // object (124) CreateObject(969, 1408.500732, 1763.719116, 9.987190, 0, 0, 89.9999813789); // object (125) CreateObject(969, 1408.950317, 1776.368042, 9.987190, 0, 0, 180.000020054); // object (126) CreateObject(969, 1400.114868, 1776.267334, 9.987190, 0, 0, 180.000020054); // object (127) CreateObject(969, 1391.302368, 1776.255371, 9.987190, 0, 0, 180.000020054); // object (12 CreateObject(969, 1382.483154, 1776.193481, 9.987190, 0, 0, 179.99996275; // object (129) CreateObject(969, 1369.468750, 1763.563599, 9.987190, 0, 0, 89.9999813789); // object (130) CreateObject(969, 1368.806152, 1770.895752, 9.987190, 0, 0, 44.9999906894); // object (132) CreateObject(969, 1402.346313, 1762.476685, 9.987190, 0, 0, 22.4999953447); // object (133) CreateObject(969, 1409.609619, 1771.103882, 9.987190, 0, 0, 134.99997206; // object (134) CreateObject(1682, 1336.898926, 1790.843750, 16.274540, 0, 0, 270.000001432); // object (135) CreateObject(1479, 1401.550049, 1769.550049, 11.225307, 0, 0, -89.9999813789); // object (136) CreateObject(1479, 1376.000732, 1769.953491, 11.225307, 0, 0, 89.9999813789); // object (137) CreateObject(982, 1365.341675, 1769.029053, 10.503867, 0, 0, 0); // object (13 CreateObject(982, 1378.531616, 1755.793213, 10.503867, 0, 0, 89.9999813789); // object (139) CreateObject(982, 1404.104492, 1755.719971, 10.503867, 0, 0, 89.9999813789); // object (140) CreateObject(982, 1416.802002, 1768.343384, 10.503867, 0, 0, 0); // object (141) CreateObject(982, 1403.458496, 1781.383667, 10.496541, 0, 0, 89.9999813789); // object (143) CreateObject(982, 1378.088867, 1781.359497, 10.496541, 0, 0, 89.9999813789); // object (144) CreateObject(1634, 1368.359497, 1505.609131, 11.117630, 0, 0, 180.000020054); // object (146) CreateObject(1634, 1362.098877, 1506.512207, 11.117630, 0, 0, 168.749993733); // object (147) CreateObject(18060, 1444.173096, 1491.106445, 47.936817, 0, 0, 0); // object (14 CreateObject(18060, 1443.438477, 1496.576172, 47.936207, 0, 0, 0); // object (149) CreateObject(643, 1452.562866, 1505.276611, 46.622284, 0, 0, 0); // object (150) CreateObject(17511, 1403.702271, 1513.960449, 195.231171, 0, 0, 0); // object (152) CreateObject(3988, 1349.238403, 1499.095825, 216.229492, 0, 0, 0); // object (153) CreateObject(3988, 1451.211060, 1507.266235, 218.044250, 0, 0, 0); // object (154) CreateObject(3988, 1670.253540, 1502.114258, 29.387850, 0, 0, -33.750021665); // object (155) CreateObject(3988, 1655.767334, 1409.593384, 31.759581, 0, 0, 22.4999953447); // object (156) CreateObject(3988, 1648.917725, 1450.140381, 37.483536, 0, 0, 0); // object (157) CreateObject(3249, 1681.378296, 1550.266846, 20.375444, 0, 0, 89.9999813789); // object (15 CreateObject(914, 1674.375000, 1545.314331, 25.462191, 0, 0, 0); // object (159) CreateObject(914, 1675.626465, 1545.266846, 25.357767, 0, 0, 0); // object (160) CreateObject(914, 1677.169678, 1545.266846, 25.492922, 0, 0, 0); // object (161) CreateObject(914, 1678.421875, 1545.266846, 25.619829, 0, 0, 0); // object (162) CreateObject(919, 1674.410034, 1545.289063, 26.557373, 0, 0, 0); // object (163) CreateObject(919, 1678.061523, 1545.241577, 26.785954, 0, 0, 0); // object (164) CreateObject(919, 1676.601685, 1545.241577, 26.523968, 0, 0, 0); // object (165) CreateObject(18266, 1427.698853, 1289.679565, 14.403174, 0, 0, 180.000020054); // object (166) CreateObject(1542, 1427.337158, 1287.403931, 11.401099, 0, 0, 0); // object (167) CreateObject(1842, 1423.792725, 1304.722534, 10.947375, 0, 0, 0); // object (16 CreateObject(1843, 1423.580688, 1297.667969, 10.535608, 0, 0, 0); // object (169) CreateObject(643, 1425.723022, 1295.102539, 11.021941, 0, 0, 0); // object (170) CreateObject(643, 1424.826294, 1291.001831, 11.090108, 0, 0, 0); // object (171) //-----------Vozila------------// CreateVehicle(522, 1306.538330, 1279.499146, 10.480690, 360, -1, -1, 300); // spawnpoint (1) CreateVehicle(522, 1310.379028, 1279.728271, 10.480690, 360, -1, -1, 300); // spawnpoint (2) CreateVehicle(522, 1313.759277, 1279.343628, 10.480690, 360, -1, -1, 300); // spawnpoint (3) CreateVehicle(522, 1317.071655, 1279.627808, 10.480690, 360, -1, -1, 300); // spawnpoint (4) CreateVehicle(522, 1319.883545, 1280.028076, 10.480690, 360, -1, -1, 300); // spawnpoint (5) CreateVehicle(522, 1323.293335, 1279.864746, 10.480690, 360, -1, -1, 300); // spawnpoint (6) CreateVehicle(522, 1326.394775, 1279.808594, 10.480691, 360, -1, -1, 300); // spawnpoint (7) CreateVehicle(522, 1329.290894, 1279.639893, 10.480690, 360, -1, -1, 300); // spawnpoint ( CreateVehicle(522, 1283.534790, 1287.406250, 10.480690, 271, -1, -1, 300); // spawnpoint (9) CreateVehicle(522, 1283.664063, 1291.661621, 10.480690, 271, -1, -1, 300); // spawnpoint (10) CreateVehicle(522, 1283.671021, 1294.718872, 10.480690, 271, -1, -1, 300); // spawnpoint (11) CreateVehicle(522, 1283.325195, 1297.806885, 10.480690, 282, -1, -1, 300); // spawnpoint (12) CreateVehicle(522, 1283.798706, 1300.750000, 10.480690, 271, -1, -1, 300); // spawnpoint (13) CreateVehicle(522, 1283.172729, 1304.852295, 10.480690, 271, -1, -1, 300); // spawnpoint (14) CreateVehicle(522, 1283.735352, 1307.734863, 10.480690, 271, -1, -1, 300); // spawnpoint (15) CreateVehicle(522, 1283.443726, 1310.575562, 10.480690, 271, -1, -1, 300); // spawnpoint (16) CreateVehicle(522, 1507.142090, 1365.637939, 69.986275, 360, -1, -1, 300); // spawnpoint (17) CreateVehicle(522, 1502.985352, 1365.784790, 69.986275, 360, -1, -1, 300); // spawnpoint (1 CreateVehicle(522, 1498.234985, 1365.447632, 69.986275, 360, -1, -1, 300); // spawnpoint (19) CreateVehicle(522, 1435.534912, 1413.135864, 110.558243, 271, -1, -1, 300); // spawnpoint (20) CreateVehicle(522, 1435.550293, 1416.087036, 110.558243, 271, -1, -1, 300); // spawnpoint (21) CreateVehicle(522, 1435.517456, 1419.401123, 110.558243, 271, -1, -1, 300); // spawnpoint (22) CreateVehicle(522, 1482.145386, 1579.850098, 39.607594, 78, -1, -1, 300); // spawnpoint (23) CreateVehicle(522, 1481.841553, 1576.485107, 39.607594, 89, -1, -1, 300); // spawnpoint (24) CreateVehicle(522, 1481.552856, 1572.959961, 39.607594, 89, -1, -1, 300); // spawnpoint (25) CreateVehicle(522, 1371.410156, 1563.417603, 39.607594, 271, -1, -1, 300); // spawnpoint (26) CreateVehicle(522, 1368.956543, 1591.165527, 39.607594, 270, -1, -1, 300); // spawnpoint (27) 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 OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new string[128]; format(string, sizeof(string), "Ulazis u vozilo %i",vehicleid); SendClientMessage(playerid, 0xFFFFFFFF, string); return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { new string[128]; format(string, sizeof(string), "Izlazis iz vozila %i", vehicleid); SendClientMessage(playerid, 0xFFFFFFFF, string); return 1; } |