03.12.2012, 01:30
(
Последний раз редактировалось ajmac22; 03.12.2012 в 02:14.
)
Also! When I die, it will fix it and I can see the map again
So here is what happens, it compiles fine, and when I go on my server, after I press Spawn, there is no map, just some things around the city and any of my custom mapping with CreateObject.
The rest is just gone! This is for everone on my server not just me
pawn Код:
#include <a_samp>
#include <core>
#include <float>
#pragma tabsize 0
//Color Defines
#define COLOR_GREEN 0x008000FF
#define COLOR_BLUE 0x0000FFFF
#define COLOR_BRIGHTRED 0xFF000AAA
#define COLOR_AQUA 0x00FFFFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_BEIGE 0xFFF8DCAA
#define COLOR_BLACK 0x000000AA
#define COLOR_LIGHTERBLUE 0x00BFFFAA
#define COLOR_BLUELIGHT 0x1E90FFAA
#define COLOR_BLUEMEDIUM 0x0000CDAA
#define COLOR_BLUEDARK 0x00008BAA
#define COLOR_PINK 0xFF1493AA
#define COLOR_PINKDARK 0xFF00FFAA
#define COLOR_GREENLIGHT 0x00FF00AA
#define COLOR_GREENDARK 0x006400AA
#define COLOR_MAROON 0x800000AA
#define COLOR_OKER 0x808000AA
#define COLOR_ORANGE 0xFF4500AA
#define COLOR_ORANGELIGHT 0xFF8C00AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_VIOLETDARK 0x9400D3AA
#define COLOR_INDIGO 0xAB0082AA
#define COLOR_RED 0xFF0000AA
#define COLOR_SAND 0xFFDEADAA
#define COLOR_SILVER 0xC0C0C0AA
#define COLOR_TEAL 0x008080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_GOLD 0xFFD700AA
#define COLOR_BROWN 0x8B4513AA
#define COLOR_BROWNLIGHT 0xA0522DAA
#define COLOR_GRAY 0xA9A9A9AA
#define COLOR_GRAYDARK 0x696969AA
#define COLOR_INVISIBLE 0xFFFFFF00
//Color Defines
main()
{
print("\n----------------------------------");
print(" Austin's Test Server\n");
print("----------------------------------\n");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/info"))
{
SendClientMessage(playerid, COLOR_RED, "/armor will refill your armor.");
SendClientMessage(playerid, COLOR_RED, "/info will display my scripts info");
SendClientMessage(playerid, COLOR_RED, "/gps will display GPS locations");
SendClientMessage(playerid, COLOR_RED, "/goto island will send you to my island, you can see my updated island");
return 1;
}
if(!strcmp(cmdtext, "/armor"))
{
SetPlayerArmour(playerid, 100.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Armour set to Full");
return 1;
}
if(!strcmp(cmdtext, "/gps"))
{
SendClientMessage(playerid, COLOR_RED, "[/gps lspd]");
return 1;
}
if(!strcmp(cmdtext, "/gps lspd"))
{
SendClientMessage(playerid, COLOR_RED, "GPS Set to LSPD-Follow the Red Checkpoint");
SetPlayerCheckpoint(playerid,1529.5492,-1674.8779,13.3828,5.0);
return 1;
}
if (strcmp("/goto island", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1046.9867, -2667.2463, 15.0484);
SendClientMessage(playerid, COLOR_RED, "Sent to SARP Island");
return 1;
}
return 0;
}
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_RED, "You have reached your destination!");
return 1;
}
public OnPlayerSpawn(playerid)
{
//spawnmessages
SendClientMessage(playerid, COLOR_GREEN, "Welcome to my Test Server");
SendClientMessage(playerid, COLOR_RED, "Here are my scripts and maps for testing.");
SendClientMessage(playerid, COLOR_ORANGE, "This is only a test server");
SendClientMessage(playerid, COLOR_WHITE, "/info for a list of commands");
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid, COLOR_RED, "You fucking died");
SetPlayerArmour(playerid, 100.0);
return 1;
}
SetupPlayerForClassSelection(playerid)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
return 1;
}
public OnGameModeInit()
{
SetGameModeText("Austin's Test Script");
ShowPlayerMarkers(1);
ShowNameTags(1);
AllowAdminTeleport(1);
//vehicles LSPD
AddStaticVehicleEx(411,1603.40002441,-1606.30004883,13.19999981,126.00000000,6,6,15); //Infernus
AddStaticVehicleEx(411,1602.50000000,-1611.90002441,13.30000019,128.00000000,6,6,15); //Infernus
AddStaticVehicleEx(415,1602.50000000,-1616.30004883,13.30000019,124.00000000,-1,-1,15); //Cheetah
AddStaticVehicleEx(522,1535.59997559,-1665.50000000,13.00000000,88.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(522,1535.59997559,-1667.30004883,13.00000000,90.00000000,-1,-1,15); //NRG-500
AddStaticVehicleEx(406,1584.59997559,-1611.09997559,15.10000038,180.00000000,-1,-1,15); //Dumper
//Player Classes
AddPlayerClass(294,1544.7,-1675.6057,13.5589,89.8978,0,0,0,0,0,0); // LSPD 294 Spawn
AddPlayerClass(165,1544.7137,-1675.6057,13.5589,89.8978,0,0,0,0,0,0); // LSPD 165 Spawn
//Objects
//shit at lspd
CreateObject(2933,1539.09997559,-1636.40002441,14.10000038,0.00000000,0.00000000,270.25000000); //object(pol_comp_gate) (1)
CreateObject(2933,1539.40002441,-1618.90002441,14.10000038,0.00000000,0.00000000,270.00000000); //object(pol_comp_gate) (2)
CreateObject(970,1541.50000000,-1623.30004883,12.89999962,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (1)
CreateObject(2933,1539.09997559,-1645.19995117,14.10000038,0.00000000,0.00000000,269.99719238); //object(pol_comp_gate) (3)
CreateObject(2933,1539.00000000,-1648.80004883,14.10000038,0.00000000,0.00000000,269.25000000); //object(pol_comp_gate) (4)
CreateObject(3975,1964.80004883,-636.40002441,63.00000000,0.00000000,0.00000000,0.00000000); //object(policest01_lan) (1)
CreateObject(10821,392.29998779,-1678.09997559,95.19999695,0.00000000,0.00000000,0.00000000); //object(baybridge2_sfse) (1)
CreateObject(971,2506.50000000,-1460.59997559,25.10000038,2.00000000,0.00000000,90.00000000); //object(subwaygate) (1)
CreateObject(10281,2507.80004883,-1462.09997559,29.60000038,0.00000000,328.00000000,84.00000000); //object(michsign_sfe) (1)
CreateObject(971,2506.39990234,-1451.80004883,24.10000038,2.00170898,179.99993896,90.00100708); //object(subwaygate) (2)
CreateObject(8615,2474.50000000,-1464.19995117,25.70000076,0.00000000,0.00000000,0.00000000); //object(vgssstairs04_lvs) (1)
CreateObject(1764,2510.69995117,-1472.00000000,23.00000000,0.00000000,0.00000000,138.00000000); //object(low_couch_2) (2)
CreateObject(947,2512.19995117,-1455.40002441,25.20000076,0.00000000,0.00000000,180.00000000); //object(bskballhub_lax01) (1)
CreateObject(971,2446.39990234,-1460.69995117,26.29999924,1.99951172,0.00000000,90.00000000); //object(subwaygate) (3)
CreateObject(854,2516.10009766,-1474.50000000,23.20000076,0.00000000,0.00000000,0.00000000); //object(cj_urb_rub_3b) (1)
CreateObject(1764,2509.30004883,-1469.30004883,23.00000000,0.00000000,0.00000000,33.99914551); //object(low_couch_2) (3)
CreateObject(1516,2511.39990234,-1470.09997559,23.00000000,0.00000000,0.00000000,0.00000000); //object(dyn_table_03) (1)
//myisland
AddStaticVehicleEx(411,1107.00000000,-2613.19995117,10.30000019,258.00000000,6,1,15); //Infernus
AddStaticVehicleEx(541,1111.50000000,-2617.80004883,10.19999981,248.00000000,6,6,15); //Bullet
CreateObject(6976,1122.69921875,-2420.79980469,1.10000002,0.00000000,0.00000000,139.99877930); //object(shamheliprt04) (1)
CreateObject(3749,1059.80004883,-2559.80004883,21.39999962,0.00000000,0.00000000,319.98779297); //object(clubgate01_lax) (1)
CreateObject(6280,1007.89941406,-2654.59960938,10.39999962,0.00000000,0.00000000,141.24023438); //object(beach01_law2) (1)
CreateObject(3484,911.50000000,-2679.50000000,22.00000000,0.00000000,0.00000000,137.49890137); //object(vegasxrexhse03) (1)
CreateObject(3501,968.20001221,-2684.39990234,18.00000000,0.00000000,0.00000000,231.99829102); //object(vgsxrefpartm1) (1)
CreateObject(16114,1014.59997559,-2569.50000000,2.70000005,0.00000000,0.00000000,260.00000000); //object(des_rockgp2_) (1)
CreateObject(16114,1014.20001221,-2553.60009766,-0.50000000,0.00000000,0.00000000,59.99694824); //object(des_rockgp2_) (2)
CreateObject(16114,996.70001221,-2558.39990234,2.70000005,0.00000000,0.00000000,257.99694824); //object(des_rockgp2_) (3)
CreateObject(16114,985.70001221,-2552.39990234,-0.50000000,0.00000000,0.00000000,139.99633789); //object(des_rockgp2_) (4)
CreateObject(16114,975.70001221,-2538.80004883,-0.50000000,0.00000000,0.00000000,139.99328613); //object(des_rockgp2_) (5)
CreateObject(16114,1053.80004883,-2607.89990234,-0.50000000,0.00000000,0.00000000,67.99633789); //object(des_rockgp2_) (6)
CreateObject(16114,1062.09997559,-2601.00000000,2.70000005,0.00000000,0.00000000,63.99694824); //object(des_rockgp2_) (7)
CreateObject(16114,1072.50000000,-2596.09960938,-8.10000038,0.00000000,0.00000000,237.99133301); //object(des_rockgp2_) (8)
CreateObject(16114,1135.19921875,-2631.09960938,-8.39999962,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1078.00000000,-2600.00000000,-2.59999990,0.00000000,347.99743652,96.98730469); //object(des_rockgp2_) (11)
CreateObject(6356,935.40002441,-2567.00000000,2.79999995,330.96862793,86.23718262,139.33166504); //object(sunset06_law2) (2)
CreateObject(16114,948.00000000,-2568.00000000,-0.50000000,350.09832764,8.12173462,153.39361572); //object(des_rockgp2_) (14)
CreateObject(16114,1036.80004883,-2593.19995117,-19.20000076,0.00000000,0.00000000,237.99133301); //object(des_rockgp2_) (15)
CreateObject(6356,908.20001221,-2600.30004883,4.00000000,331.79260254,84.16076660,138.08227539); //object(sunset06_law2) (5)
CreateObject(6356,896.40002441,-2655.69995117,3.70000005,332.52868652,84.33654785,135.66467285); //object(sunset06_law2) (6)
CreateObject(16114,897.29998779,-2663.10009766,-0.50000000,0.00000000,0.00000000,163.74023438); //object(des_rockgp2_) (16)
CreateObject(16114,888.69921875,-2643.19921875,-0.50000000,0.00000000,0.00000000,161.73522949); //object(des_rockgp2_) (17)
CreateObject(6356,1124.50000000,-2682.60009766,0.89999998,321.80053711,81.41418457,322.57250977); //object(sunset06_law2) (7)
CreateObject(6356,1097.80004883,-2718.30004883,3.50000000,328.61206055,83.35327148,317.18066406); //object(sunset06_law2) (8)
CreateObject(6356,1070.40002441,-2750.60009766,4.00000000,329.58813477,83.60644531,317.81066895); //object(sunset06_law2) (9)
CreateObject(16114,1044.29980469,-2772.29980469,-7.80000019,0.00000000,0.00000000,165.99243164); //object(des_rockgp2_) (18)
CreateObject(16114,1029.09997559,-2766.60009766,-7.80000019,0.00000000,0.00000000,61.99243164); //object(des_rockgp2_) (19)
CreateObject(16114,1023.79998779,-2758.80004883,-8.10000038,0.00000000,0.00000000,65.99035645); //object(des_rockgp2_) (20)
CreateObject(6356,1004.59997559,-2757.30004883,4.09999990,330.31674194,83.79248047,227.90043640); //object(sunset06_law2) (11)
CreateObject(6356,972.00000000,-2730.79980469,4.09999990,330.31494141,83.78723145,227.89489746); //object(sunset06_law2) (12)
CreateObject(6356,939.79998779,-2704.69995117,4.09999990,330.31494141,83.78723145,227.90039062); //object(sunset06_law2) (13)
CreateObject(16114,942.70001221,-2689.69995117,-7.40000010,0.00000000,0.00000000,269.99328613); //object(des_rockgp2_) (21)
CreateObject(16114,937.90002441,-2693.50000000,-7.40000010,0.00000000,0.00000000,291.98901367); //object(des_rockgp2_) (22)
CreateObject(16114,931.09997559,-2707.39990234,-5.90000010,0.00000000,0.00000000,265.98364258); //object(des_rockgp2_) (23)
CreateObject(16114,914.40002441,-2704.89990234,-5.19999981,0.00000000,0.00000000,265.97900391); //object(des_rockgp2_) (24)
CreateObject(16114,902.79998779,-2693.10009766,-5.69999981,0.00000000,0.00000000,265.97900391); //object(des_rockgp2_) (25)
CreateObject(3607,1039.69921875,-2727.79980469,21.20000076,0.00000000,0.00000000,181.99951172); //object(bevman2_law2) (1)
CreateObject(5401,1001.00000000,-2721.59960938,17.00000000,0.00000000,0.00000000,327.99682617); //object(laegarages1nw) (1)
CreateObject(6295,1092.89941406,-2691.00000000,37.59999847,0.00000000,0.00000000,54.00000000); //object(sanpedlithus_law2) (1)
CreateObject(9247,1067.90002441,-2715.10009766,21.29999924,0.00000000,0.00000000,36.99096680); //object(hrbrmstr_sfn01) (1)
CreateObject(3115,930.90002441,-2575.50000000,14.10000038,0.00000000,0.00000000,320.00000000); //object(carrier_lift1_sfse) (1)
CreateObject(2774,919.40002441,-2575.60009766,1.29999995,0.00000000,0.00000000,0.00000000); //object(cj_airp_pillars) (1)
CreateObject(2774,928.90002441,-2564.00000000,1.29999995,0.00000000,0.00000000,0.00000000); //object(cj_airp_pillars) (2)
CreateObject(3877,928.50000000,-2562.69995117,16.10000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (16)
CreateObject(3877,918.09997559,-2575.60009766,16.10000038,0.00000000,0.00000000,0.00000000); //object(sf_rooflite) (17)
CreateObject(16114,1036.69995117,-2775.80004883,-7.80000019,0.00000000,0.00000000,165.99243164); //object(des_rockgp2_) (18)
CreateObject(16114,916.29998779,-2705.69995117,-7.80000019,0.00000000,0.00000000,165.99243164); //object(des_rockgp2_) (18)
CreateObject(16114,922.59997559,-2698.80004883,-7.80000019,0.00000000,0.00000000,165.99243164); //object(des_rockgp2_) (18)
CreateObject(16114,909.59997559,-2711.00000000,-7.80000019,0.00000000,0.00000000,165.99243164); //object(des_rockgp2_) (18)
CreateObject(16114,949.00000000,-2708.00000000,0.00000000,0.00000000,358.00000000,57.73522949); //object(des_rockgp2_) (17)
CreateObject(16114,916.59997559,-2610.80004883,2.79999995,0.00000000,0.00000000,161.73522949); //object(des_rockgp2_) (17)
CreateObject(3606,1082.09997559,-2704.39990234,17.70000076,357.99499512,0.00000000,226.24694824); //object(bevbrkhus1) (1)
CreateObject(3753,921.50000000,-2558.69995117,4.90000010,0.00000000,0.00000000,49.25000000); //object(dockwall_las2) (1)
CreateObject(10841,938.00000000,-2554.69995117,5.90000010,358.00115967,177.99884033,51.68005371); //object(drydock1_sfse01) (1)
CreateObject(10841,926.40002441,-2582.80004883,5.90000010,358.00122070,182.49768066,320.33679199); //object(drydock1_sfse01) (2)
CreateObject(16133,957.70001221,-2546.50000000,6.40000010,0.00000000,0.00000000,132.00000000); //object(des_rockgp2_18) (1)
CreateObject(16114,1133.00000000,-2740.19995117,0.00000000,0.00000000,1.99951172,9.98803711); //object(des_rockgp2_) (11)
CreateObject(13813,1135.29980469,-2596.69921875,-5.19999981,1.74682617,357.98400879,180.05493164); //object(cegraveblok03e) (1)
CreateObject(16114,1105.09997559,-2620.89990234,-17.60000038,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1097.90002441,-2615.89990234,-18.89999962,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1096.59997559,-2619.30004883,-17.79999924,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1100.09997559,-2619.00000000,-18.20000076,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1107.59997559,-2623.69995117,-17.60000038,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1111.19995117,-2623.80004883,-17.00000000,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(16114,1120.90002441,-2623.30004883,-17.39999962,0.00000000,0.00000000,65.23681641); //object(des_rockgp2_) (9)
CreateObject(7301,1024.80004883,-2572.80004883,47.00000000,0.00000000,1.99951172,271.99951172); //object(vgsn_addboard03) (2)
CreateObject(3598,162.30000305,134.00000000,472.79998779,0.00000000,0.00000000,0.00000000); //object(hillhouse01_la) (1)
CreateObject(3598,126.90000153,100.59999847,480.79998779,0.00000000,0.00000000,0.00000000); //object(hillhouse01_la) (2)
CreateObject(3598,1120.50000000,-2611.50000000,11.30000019,0.00000000,0.00000000,135.99975586); //object(hillhouse01_la) (3)
CreateObject(1372,1129.59997559,-2622.10009766,9.30000019,0.00000000,0.00000000,46.00000000); //object(cj_dump2_low) (1)
CreateObject(18450,1017.00000000,-2607.00000000,10.50000000,0.00000000,354.00000000,47.50003052); //object(cs_roadbridge04) (2)
CreateObject(18450,1070.69995117,-2548.10009766,14.69999981,0.00000000,359.99597168,47.74938965); //object(cs_roadbridge04) (3)
CreateObject(18450,1070.69921875,-2548.09960938,14.69999981,0.00000000,359.99450684,47.74658203); //object(cs_roadbridge04) (4)
CreateObject(18450,1111.40002441,-2503.30004883,14.69999981,0.00000000,359.99450684,47.74658203); //object(cs_roadbridge04) (5)
CreateObject(18450,1164.59997559,-2445.00000000,7.69999981,0.00000000,10.24453735,47.49658203); //object(cs_roadbridge04) (6)
CreateObject(18450,1134.30004883,-2477.89990234,11.80000019,0.00000000,359.99450684,47.24658203); //object(cs_roadbridge04) (8)
CreateObject(18450,1111.39941406,-2503.29980469,14.69999981,0.00000000,359.99450684,47.74658203); //object(cs_roadbridge04) (9)
CreateObject(7905,1164.30004883,-2446.50000000,11.50000000,299.31732178,12.32629395,151.78826904); //object(vgwestbillbrd06) (1)
return 1;
}
The rest is just gone! This is for everone on my server not just me