Can't spawn, and it doesn't show my classes, it only shows CJ.
#8

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

#define brown 0x993300AA
#define black 0x00000000
#define nerotrasp 0x00000050
#define grey 0xAFAFAFAA
#define greywhite 0xEEEEFFC4
#define COLOR_WHITE 0xFFFFFFAA
#define yellow 0xFFFF00AA
#define orange 0xFF9900AA
#define red 0xFF0000AA
#define darkred 0x660000AA
#define lightred 0xFF99AADD
#define pink 0xFF66FFAA
#define violet 0x9955DEEE
#define violet2 0x800080AA
#define COLOR_BLUE 0x4169FFAA
#define neutralblue 0xABCDEF01
#define mediumblue 0x63AFF00A
#define blue 0x0000BBAA
#define darkblue 0x300FFAAB
#define lightbluegreen 0x0FFDD349
#define darkgreen 0x12900BBF
#define green 0x33AA33AA
#define neutralgreen 0x81CFAB00
#define lightgreen 0x24FF0AB9
#define COLOR_DARKGOLD 0x808000AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"

#else

new GateOpen;
new Door;
new bool:GateOpenStatus;
new bool:DoorStatus;
new SunRoof;
new bool:SunStatus;

main()
{
    print("\n----------------------------------");
    print(" Robert Smith Testing");
    print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
    DisableInteriorEnterExits();
    SetGameModeText("RobertRPv1.0");
    LimitGlobalChatRadius(10);
    Create3DTextLabel("Brothel. Please type /enter.", 0xFFFFFFFF, 1341.5411, -1675.3422, 17.7164, 30.0, 0);
    Create3DTextLabel("Brothel. Please type /exit.", 0xFFFFFFFF, 963.70001221, -53.29999924, 1000.70001221, 30.0, 0, 0);
    Create3DTextLabel("Passpoint: /pass", 0xFFFFFFFF, 454.8862,-1480.8170,30.9008, 30.0, 0, 0);
    Create3DTextLabel("Passpoint: /pass", 0xFFFFFFFF, 459.6148,-1475.6578,45.5781, 30.0, 0, 0);
    Create3DTextLabel("Type '/' to activate the shade stand.", 0xFFFFFFFF, 458.0000,-1473.5013,45.5781, 30.0, 0, 0);
    CreateObject(5325,960.59997559,-51.50000000,1007.40002441,0.00000000,0.00000000,0.00000000); //object(dockfencee_las2) (1)
    Door = CreateObject(13028,955.70001221,-50.70000076,1002.00000000,0.00000000,0.00000000,0.00000000); //object(ce_spraydoor1) (1)


    CreateObject(983,453.50000000,-1483.40002441,30.60000038,0.00000000,0.00000000,18.25000000); //object(fenceshit3) (1)
    CreateObject(983,451.00000000,-1475.80004883,30.39999962,0.00000000,0.00000000,17.99963379); //object(fenceshit3) (2)
    CreateObject(970,456.50000000,-1485.69995117,30.60000038,0.00000000,0.00000000,16.00000000); //object(fencesmallb) (1)
    CreateObject(970,452.10000610,-1472.00000000,30.10000038,0.00000000,0.00000000,19.99609375); //object(fencesmallb) (2)
    CreateObject(1281,452.10000610,-1474.40002441,30.50000000,0.00000000,0.00000000,290.00000000); //object(parktable1) (1)
    CreateObject(2290,455.29998779,-1482.50000000,30.00000000,0.00000000,0.00000000,290.00000000); //object(swk_couch_1) (1)
    CreateObject(975,1360.40002441,-1684.19995117,14.50000000,0.00000000,0.00000000,0.00000000); //object(columbiangate) (1)
    CreateObject(975,1357.90002441,-1684.09997559,14.50000000,0.00000000,0.00000000,0.00000000); //object(columbiangate) (2)
    CreateObject(2933,1369.50000000,-1697.90002441,9.80000019,0.00000000,358.50000000,302.00000000); //object(pol_comp_gate) (1)
    CreateObject(2933,1373.40002441,-1599.50000000,14.30000019,0.00000000,0.00000000,344.50000000); //object(pol_comp_gate) (2)
    CreateObject(2933,1351.19995117,-1591.00000000,14.19999981,0.00000000,0.00000000,346.24609375); //object(pol_comp_gate) (3)
    CreateObject(2933,1363.90002441,-1592.69995117,14.30000019,0.00000000,0.00000000,345.24511719); //object(pol_comp_gate) (4)
    CreateObject(2933,1361.50000000,-1592.09997559,14.30000019,0.00000000,0.00000000,344.73986816); //object(pol_comp_gate) (5)
    CreateObject(974,1348.69995117,-1721.50000000,15.39999962,0.00000000,0.00000000,0.00000000); //object(tall_fence) (1)
    CreateObject(974,1404.50000000,-1705.80004883,15.30000019,0.00000000,0.00000000,267.50006104); //object(tall_fence) (2)
   
    //Profit House//
    CreateObject(1256,361.60000610,-1551.30004883,32.59999847,0.00000000,4.50000000,324.25000000); //object(stonebench1) (1)
    CreateObject(9833,363.29998779,-1554.69995117,38.59999847,0.00000000,0.00000000,0.00000000); //object(fountain_sfw) (1)
    CreateObject(1408,359.29998779,-1561.30004883,32.40000153,0.00000000,0.00000000,322.00000000); //object(dyn_f_wood_2) (1)
    CreateObject(1408,355.00000000,-1557.90002441,32.40000153,0.00000000,0.00000000,321.99829102); //object(dyn_f_wood_2) (2)
    CreateObject(1408,354.39999390,-1553.69995117,32.70000076,0.00000000,0.00000000,233.74829102); //object(dyn_f_wood_2) (3)
    CreateObject(1408,358.79998779,-1547.69995117,32.79999924,0.00000000,0.00000000,233.74511719); //object(dyn_f_wood_2) (4)
    CreateObject(1408,362.89999390,-1560.90002441,32.40000153,0.00000000,0.00000000,58.24514771); //object(dyn_f_wood_2) (5)
    CreateObject(1408,362.10000610,-1547.90002441,32.59999847,0.00000000,0.00000000,125.49502563); //object(dyn_f_wood_2) (6)
    //Profit House//
   
    //JB FIGHT//
    CreateObject(1712,2343.89990234,-1241.80004883,21.50000000,0.00000000,0.00000000,245.99487305); //object(kb_couch05) (1)
    CreateObject(1527,2352.00000000,-1246.59997559,22.50000000,0.00000000,0.00000000,0.00000000); //object(tag_rollin) (1)
    CreateObject(1527,2352.00000000,-1244.69995117,22.50000000,0.00000000,0.00000000,0.00000000); //object(tag_rollin) (2)
    CreateObject(1527,2352.00000000,-1242.80004883,22.50000000,0.00000000,0.00000000,0.00000000); //object(tag_rollin) (3)
    CreateObject(1527,2352.00000000,-1248.50000000,22.50000000,0.00000000,0.00000000,0.00000000); //object(tag_rollin) (4)
    CreateObject(1527,2352.00000000,-1250.40002441,22.50000000,0.00000000,0.00000000,0.00000000); //object(tag_rollin) (5)
    CreateObject(983,2314.69995117,-1213.69995117,23.60000038,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (1)
    CreateObject(983,2314.60009766,-1221.59997559,23.60000038,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (2)
    CreateObject(1491,2314.69995117,-1216.90002441,22.89999962,0.00000000,0.00000000,268.00000000); //object(gen_doorint01) (1)
    CreateObject(991,2361.00000000,-1272.09997559,24.20000076,0.00000000,0.00000000,90.00000000); //object(bar_barriergate1) (1)
    CreateObject(1712,2332.10009766,-1240.30004883,21.50000000,0.00000000,0.00000000,106.00000000); //object(kb_couch05) (2)
    CreateObject(956,2328.69995117,-1231.40002441,22.00000000,0.00000000,0.00000000,0.00000000); //object(cj_ext_candy) (1)
    CreateObject(18451,2350.39990234,-1235.30004883,22.00000000,0.00000000,0.00000000,82.00000000); //object(cs_oldcarjmp) (1)
    CreateObject(970,2337.39990234,-1235.00000000,22.10000038,0.00000000,0.00000000,0.00000000); //object(fencesmallb) (2)
    CreateObject(970,2340.10009766,-1237.00000000,22.10000038,0.00000000,0.00000000,286.00000000); //object(fencesmallb) (3)
    CreateObject(970,2339.30004883,-1240.50000000,22.10000038,0.00000000,0.00000000,46.00000000); //object(fencesmallb) (4)
    CreateObject(970,2334.50000000,-1236.90002441,22.10000038,0.00000000,0.00000000,66.00000000); //object(fencesmallb) (5)
    CreateObject(970,2335.00000000,-1240.40002441,22.10000038,0.00000000,0.00000000,127.99584961); //object(fencesmallb) (6)
    CreateObject(7894,2337.80004883,-1235.00000000,22.10000038,0.00000000,0.00000000,174.00000000); //object(vegascrashbar05) (1)
    //JB FIGHT//
   
    // JB HANG OUT //
    CreateObject(13011,2246.30004883,-1130.69995117,26.60000038,0.00000000,0.00000000,67.99993896); //object(cos_sbanksteps04) (1)
    CreateObject(1712,2246.50000000,-1119.09997559,29.39999962,0.00000000,0.00000000,338.00000000); //object(kb_couch05) (1)
    CreateObject(1712,2248.60009766,-1119.90002441,29.29999924,0.00000000,0.00000000,337.99987793); //object(kb_couch05) (2)
    CreateObject(2314,2246.89990234,-1121.00000000,29.60000038,0.00000000,0.00000000,338.00000000); //object(cj_tv_table3) (1)
    CreateObject(1543,2248.19995117,-1121.50000000,30.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (1)
    CreateObject(1543,2248.00000000,-1121.40002441,30.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (2)
    CreateObject(1543,2247.69995117,-1121.50000000,30.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (3)
    CreateObject(1543,2248.10009766,-1121.69995117,30.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (4)
    CreateObject(1543,2247.50000000,-1121.09997559,30.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (5)
    CreateObject(1543,2247.30004883,-1120.90002441,30.10000038,0.00000000,0.00000000,0.00000000); //object(cj_beer_b_2) (6)
    CreateObject(2452,2244.19995117,-1118.90002441,29.39999962,0.00000000,0.00000000,0.00000000); //object(cj_ff_fridge2) (1)
    CreateObject(1347,2251.19995117,-1121.30004883,29.89999962,0.00000000,0.00000000,0.00000000); //object(cj_wastebin) (1)
    CreateObject(3496,2241.50000000,-1124.40002441,30.00000000,0.00000000,358.00000000,248.00000000); //object(vgsxrefbballnet) (1)
    CreateObject(3065,2242.19995117,-1124.69995117,30.29999924,0.00000000,0.00000000,0.00000000); //object(bball_col) (1)
    CreateObject(2046,2242.89990234,-1121.09997559,30.20000076,0.00000000,0.00000000,68.00000000); //object(cj_guncupboard) (1)
    // JB HANG OUT//
   
    // IB GHETTO //
    CreateObject(3497,2165.60009766,-1729.80004883,16.00000000,0.00000000,0.00000000,0.00000000); //object(vgsxrefbballnet2) (1)
    CreateObject(3065,2165.39990234,-1729.00000000,12.69999981,0.00000000,0.00000000,0.00000000); //object(bball_col) (1)
    CreateObject(2314,2168.39990234,-1728.09997559,12.50000000,0.00000000,0.00000000,0.00000000); //object(cj_tv_table3) (1)
    CreateObject(1712,2169.89990234,-1729.40002441,12.50000000,0.00000000,0.00000000,180.00000000); //object(kb_couch05) (3)
    CreateObject(1712,2171.19995117,-1727.30004883,12.50000000,0.00000000,0.00000000,272.00000000); //object(kb_couch05) (4)
    CreateObject(1764,2149.19995117,-1730.50000000,16.29999924,0.00000000,0.00000000,0.00000000); //object(low_couch_2) (1)
    CreateObject(1524,2161.50000000,-1729.69995117,13.50000000,0.00000000,0.25000000,270.00000000); //object(tag_front) (2)
    CreateObject(1764,2147.00000000,-1730.50000000,16.29999924,0.00000000,0.00000000,0.00000000); //object(low_couch_2) (2)
    CreateObject(1764,2144.80004883,-1730.50000000,16.29999924,0.00000000,0.00000000,0.00000000); //object(low_couch_2) (3)
    CreateObject(1748,2148.00000000,-1734.40002441,16.29999924,0.00000000,0.00000000,180.00000000); //object(low_tv_3) (1)
    CreateObject(1841,2148.89990234,-1734.09997559,16.29999924,0.00000000,0.00000000,269.99996948); //object(speaker_1) (1)
    CreateObject(1841,2147.39990234,-1734.09997559,16.29999924,0.00000000,0.00000000,269.99996948); //object(speaker_1) (2)
    CreateObject(1841,2148.10009766,-1734.30004883,17.89999962,0.00000000,0.00000000,268.00000000); //object(speaker_1) (3)
    CreateObject(1841,2148.09960938,-1734.29980469,17.89999962,0.00000000,0.00000000,267.99499512); //object(speaker_1) (4)
    CreateObject(2630,2147.10009766,-1728.90002441,12.50000000,0.00000000,0.00000000,0.00000000); //object(gym_bike) (1)
    CreateObject(2630,2148.30004883,-1728.90002441,12.50000000,0.00000000,0.00000000,0.00000000); //object(gym_bike) (2)
    CreateObject(2630,2149.39990234,-1728.90002441,12.50000000,0.00000000,0.00000000,0.00000000); //object(gym_bike) (3)
    CreateObject(2627,2145.89990234,-1728.69995117,12.50000000,0.00000000,0.00000000,180.00000000); //object(gym_treadmill) (1)
    // IB GHETTO //
   
    // LSPD //
    AddStaticVehicleEx(596,1526.81054688,-1646.15429688,5.71062469,180.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(596,1530.78173828,-1646.14184570,5.71062469,180.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(596,1534.35278320,-1646.02832031,5.71062469,179.99993896,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(596,1538.44433594,-1645.98925781,5.71062469,180.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(525,1544.77221680,-1651.49926758,5.88062477,90.00000000,8,11,15); //Tow Truck
    AddStaticVehicleEx(523,1583.48852539,-1680.22546387,5.55736876,270.00000000,-1,-1,15); //HPV1000
    AddStaticVehicleEx(523,1583.44226074,-1679.16259766,5.55789089,270.00000000,-1,-1,15); //HPV1000
    AddStaticVehicleEx(523,1583.44213867,-1678.00158691,5.55675697,270.00000000,-1,-1,15); //HPV1000
    AddStaticVehicleEx(523,1583.47351074,-1676.78479004,5.55405903,270.00000000,-1,-1,15); //HPV1000
    AddStaticVehicleEx(523,1583.48217773,-1675.72766113,5.55405235,270.00000000,-1,-1,15); //HPV1000
    AddStaticVehicleEx(596,1544.71557617,-1658.84777832,5.71062469,90.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(596,1544.79296875,-1663.30273438,5.71062469,90.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(598,1528.52526855,-1688.17309570,5.76062489,270.00000000,11,1,15); //Police Car (LVPD)
    AddStaticVehicleEx(598,1528.51904297,-1684.52209473,5.76062489,270.00000000,11,1,15); //Police Car (LVPD)
    AddStaticVehicleEx(596,1544.64941406,-1667.46936035,5.71062469,90.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(596,1544.74011230,-1672.12585449,5.71062469,90.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(528,1544.37097168,-1680.14123535,6.07562494,90.00000000,-1,-1,15); //FBI Truck
    AddStaticVehicleEx(601,1544.10449219,-1676.22167969,5.82083368,90.00000000,-1,-1,15); //S.W.A.T. Van
    AddStaticVehicleEx(427,1566.38269043,-1710.06079102,6.13862514,0.00000000,11,-1,15); //Enforcer
    AddStaticVehicleEx(427,1562.22424316,-1710.07604980,6.13862514,0.00000000,11,-1,15); //Enforcer
    AddStaticVehicleEx(579,1574.44934082,-1709.90771484,5.98926258,0.00000000,11,1,15); //Huntley
    AddStaticVehicleEx(579,1578.36035156,-1709.86096191,5.98926258,0.00000000,11,11,15); //Huntley
    AddStaticVehicleEx(477,1595.28344727,-1709.68603516,5.74062490,0.00000000,11,1,15); //ZR-350
    AddStaticVehicleEx(477,1591.50964355,-1709.71520996,5.74062490,0.00000000,11,1,15); //ZR-350
    AddStaticVehicleEx(477,1587.54431152,-1709.80798340,5.74062490,0.00000000,11,1,15); //ZR-350
    AddStaticVehicleEx(599,1585.96667480,-1667.96008301,6.27698135,270.00000000,11,-1,15); //Police Ranger
    AddStaticVehicleEx(599,1586.21667480,-1671.28039551,6.27679825,270.00000000,11,-1,15); //Police Ranger
    AddStaticVehicleEx(596,1600.22924805,-1687.96142578,5.71062469,90.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(596,1600.31701660,-1684.07226562,5.71062469,90.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(596,1600.17834473,-1691.82409668,5.71062469,90.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(596,1600.21057129,-1696.03735352,5.71062469,90.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(596,1600.27697754,-1699.64074707,5.71062469,90.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(596,1600.19177246,-1703.60290527,5.71062469,90.00000000,11,1,15); //Police Car (LSPD)
    AddStaticVehicleEx(497,1558.70361328,-1639.59887695,28.66711426,87.99499512,-1,11,15); //Police Maverick
    AddStaticVehicleEx(497,1546.54785156,-1639.29760742,28.66711426,87.99499512,11,11,15); //Police Maverick
    AddStaticVehicleEx(428,1602.41345215,-1610.49841309,13.74124241,88.00000000,11,-1,15); //Securicar
    AddStaticVehicleEx(428,1602.39855957,-1613.83666992,13.74108219,87.99499512,11,-1,15); //Securicar
    AddStaticVehicleEx(428,1602.11682129,-1616.84973145,13.73805523,87.99499512,11,-1,15); //Securicar
    // LSPD //
   
    // I dunno //
    CreateObject(12942,3118.44677734,-2951.93627930,0.00000000,0.00000000,0.00000000,0.00000000); //object(sw_shedinterior01) (1)
    CreateObject(983,461.42202759,-18.16654205,1000.81634521,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (1)
    CreateObject(983,461.41735840,-19.77487946,1000.81634521,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (2)
    CreateObject(983,455.44845581,-22.89421844,999.41790771,0.00000000,0.00000000,90.00000000); //object(fenceshit3) (3)
    CreateObject(2948,438.19232178,-14.26211834,999.73437500,0.00000000,0.00000000,0.00000000); //object(cr_door_02) (1)
    CreateObject(9482,498.05862427,-1455.60107422,22.52236748,0.00000000,0.00000000,62.00000000); //object(chinagate) (1)
    CreateObject(9482,499.00097656,-1557.18750000,22.62259293,0.00000000,0.00000000,129.99365234); //object(chinagate) (2)
    CreateObject(2933,283.09823608,-1543.50402832,25.49065208,0.00000000,0.00000000,324.00000000); //object(pol_comp_gate) (1)
    CreateObject(2933,321.82174683,-1487.54748535,25.39599419,0.00000000,0.00000000,323.99780273); //object(pol_comp_gate) (2)
    CreateObject(2933,276.09854126,-1538.31677246,25.31016350,0.00000000,0.00000000,323.99780273); //object(pol_comp_gate) (3)
    CreateObject(2933,318.75402832,-1485.39306641,25.37612534,0.00000000,0.00000000,323.99780273); //object(pol_comp_gate) (4)
    // I dunno //
   
    // MAFIA //
    AddStaticVehicleEx(487,1006.09912109,-1422.76635742,22.80406189,0.00000000,-1,1,15); //Maverick
    AddStaticVehicleEx(487,1020.72570801,-1423.41516113,24.92430305,0.00000000,-1,1,15); //Maverick
    AddStaticVehicleEx(551,1019.56823730,-1433.46936035,13.42687511,178.00000000,-1,1,15); //Merit
    AddStaticVehicleEx(551,1022.44085693,-1433.54235840,13.42687511,177.99499512,-1,1,15); //Merit
    AddStaticVehicleEx(409,1013.84716797,-1460.44030762,13.47963428,90.00000000,-1,-1,15); //Stretch
    AddStaticVehicleEx(445,1013.52056885,-1455.48937988,13.54463387,0.00000000,-1,1,15); //Admiral
    AddStaticVehicleEx(445,1016.13378906,-1455.37915039,13.54463387,0.00000000,-1,47,15); //Admiral
    CreateObject(976,966.86364746,-1456.58093262,12.40534115,0.00000000,0.00000000,92.00000000); //object(phils_compnd_gate) (1)
    CreateObject(976,966.58264160,-1447.78137207,12.46105385,0.00000000,0.00000000,91.99951172); //object(phils_compnd_gate) (2)
    CreateObject(991,1040.70837402,-1463.42700195,13.79499149,0.00000000,0.00000000,269.00000000); //object(bar_barriergate1) (1)
    CreateObject(991,1040.78625488,-1458.75842285,13.82843781,0.00000000,0.00000000,268.99475098); //object(bar_barriergate1) (2)
    CreateObject(8572,988.78204346,-1435.39477539,14.77203941,0.00000000,0.00000000,269.50000000); //object(vgssstairs02_lvs) (1)
    CreateObject(8572,992.35803223,-1437.18212891,18.23157883,0.00000000,0.00000000,358.25000000); //object(vgssstairs02_lvs) (2)
    CreateObject(8572,994.16619873,-1433.67285156,21.51854897,0.00000000,0.00000000,88.24768066); //object(vgssstairs02_lvs) (3)
    CreateObject(2909,991.99633789,-1431.39611816,22.39201164,0.00000000,90.00000000,267.99887085); //object(kmb_frontgate) (1)
    CreateObject(16151,1031.20935059,-1446.38537598,12.55463409,0.00000000,0.00000000,2.00000000); //object(ufo_bar) (1)
    CreateObject(1791,1030.41357422,-1448.70080566,13.16005230,0.00000000,0.00000000,213.99993896); //object(swank_tv_2) (1)
    CreateObject(1594,1024.69335938,-1443.22485352,13.03162575,0.00000000,0.00000000,0.00000000); //object(chairsntable) (1)
    CreateObject(1594,1023.68225098,-1447.87683105,13.03162575,0.00000000,0.00000000,0.00000000); //object(chairsntable) (2)
    CreateObject(1594,1025.97302246,-1451.32409668,13.03162575,0.00000000,0.00000000,0.00000000); //object(chairsntable) (3)
    CreateObject(1432,1028.31091309,-1439.63317871,12.55463409,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (1)
    CreateObject(1432,1028.29455566,-1454.26074219,12.55463219,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (2)
    CreateObject(1703,1008.17681885,-1430.97900391,12.54687500,0.00000000,0.00000000,0.00000000); //object(kb_couch02) (1)
    CreateObject(1703,1010.62756348,-1431.02282715,12.54687500,0.00000000,0.00000000,0.00000000); //object(kb_couch02) (2)
    CreateObject(1703,1013.12988281,-1430.99572754,12.54687691,0.00000000,0.00000000,0.00000000); //object(kb_couch02) (3)
    CreateObject(1703,1005.82226562,-1430.94396973,12.54687500,0.00000000,0.00000000,0.00000000); //object(kb_couch02) (4)
    CreateObject(12929,1012.21569824,-1462.66613770,12.54687500,0.00000000,0.00000000,180.00000000); //object(sw_shed06) (1)
    CreateObject(359,994.61755371,-1464.13281250,14.13912582,0.00000000,0.00000000,0.00000000); //object(1)
    CreateObject(359,1001.97265625,-1464.13281250,14.31744194,0.00000000,0.00000000,0.00000000); //object(2)
    CreateObject(359,998.55004883,-1464.13281250,15.41219330,0.00000000,0.00000000,0.00000000); //object(3)
    CreateObject(1368,976.73413086,-1439.35803223,13.23718452,0.00000000,0.00000000,0.00000000); //object(cj_blocker_bench) (1)
    CreateObject(5837,962.14532471,-1443.39624023,14.26436996,0.00000000,0.00000000,274.00000000); //object(ci_guardhouse1) (1)
    CreateObject(2108,1017.38574219,-1431.42297363,12.54687500,0.00000000,0.00000000,0.00000000); //object(cj_mlight13) (1)
    CreateObject(2108,1003.57403564,-1430.54370117,12.54687500,0.00000000,0.00000000,0.00000000); //object(cj_mlight13) (2)
    CreateObject(2108,1029.63098145,-1433.22619629,12.55463409,0.00000000,0.00000000,0.00000000); //object(cj_mlight13) (3)
    CreateObject(2108,1022.49493408,-1459.03588867,12.54738808,0.00000000,0.00000000,0.00000000); //object(cj_mlight13) (4)
    // MAFIA //
   
    // LV MAFIA //
    AddStaticVehicleEx(551,2800.03198242,2167.08813477,10.70031261,310.00000000,-1,1,15); //Merit
    AddStaticVehicleEx(551,2797.47949219,2170.87304688,10.69298649,310.00000000,-1,1,15); //Merit
    AddStaticVehicleEx(551,2795.30297852,2173.44873047,10.69298649,309.99572754,-1,1,15); //Merit
    AddStaticVehicleEx(409,2820.09667969,2162.41088867,10.74531269,0.00000000,-1,-1,15); //Stretch
    AddStaticVehicleEx(409,2819.93310547,2176.57080078,10.73798656,0.00000000,-1,-1,15); //Stretch
    AddStaticVehicleEx(560,2812.35229492,2152.72167969,10.62528801,0.00000000,-1,1,15); //Sultan
    AddStaticVehicleEx(560,2809.83276367,2152.81591797,10.62528801,0.00000000,-1,1,15); //Sultan
    AddStaticVehicleEx(560,2814.74511719,2152.91967773,10.62528801,0.00000000,-1,1,15); //Sultan
    AddStaticVehicleEx(487,2812.94580078,2244.80883789,11.08531284,0.00000000,-1,-1,15); //Maverick
    CreateObject(983,2823.22387695,2208.50805664,10.49654102,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (1)
    CreateObject(983,2826.45605469,2215.97583008,10.70699215,0.00000000,0.00000000,86.00000000); //object(fenceshit3) (2)
    CreateObject(983,2823.23706055,2213.30688477,10.50386715,0.00000000,0.00000000,0.00000000); //object(fenceshit3) (3)
    CreateObject(976,2829.47412109,2200.62890625,9.81298637,0.00000000,0.00000000,268.00000000); //object(phils_compnd_gate) (1)
    CreateObject(997,2826.64038086,2202.12402344,9.81298637,0.00000000,0.00000000,334.00000000); //object(lhouse_barrier3) (1)
    CreateObject(3533,2810.78491211,2191.40112305,14.06587410,0.00000000,0.00000000,0.00000000); //object(trdpillar01) (1)
    CreateObject(3533,2811.61962891,2202.78442383,14.06587410,0.00000000,0.00000000,0.00000000); //object(trdpillar01) (2)
    CreateObject(3533,2812.65551758,2213.43115234,14.06587410,0.00000000,0.00000000,0.00000000); //object(trdpillar01) (3)
    CreateObject(3934,2812.83349609,2245.40649414,9.82031155,0.00000000,0.00000000,0.00000000); //object(helipad01) (1)
    CreateObject(1753,2825.02978516,2233.07080078,9.82031250,0.00000000,0.00000000,268.00000000); //object(swank_couch_1) (1)
    CreateObject(1753,2825.08691406,2226.42919922,9.82031250,0.00000000,0.00000000,267.99499512); //object(swank_couch_1) (2)
    CreateObject(1753,2825.09326172,2239.95434570,9.82031250,0.00000000,0.00000000,267.99499512); //object(swank_couch_1) (3)
    CreateObject(1281,2818.47241211,2235.61889648,10.62069511,0.00000000,0.00000000,0.00000000); //object(parktable1) (1)
    CreateObject(1281,2818.57812500,2232.14306641,10.62069511,0.00000000,0.00000000,0.00000000); //object(parktable1) (2)
    CreateObject(1281,2815.45361328,2234.04492188,10.62069511,0.00000000,0.00000000,0.00000000); //object(parktable1) (3)
    CreateObject(2745,2801.81005859,2231.60815430,11.02893162,0.00000000,0.00000000,92.00000000); //object(cj_stat_3) (1)
    CreateObject(1826,2801.61059570,2237.52368164,10.01564789,0.00000000,0.00000000,270.00000000); //object(kb_table1) (1)
    CreateObject(2837,2815.59643555,2233.98168945,10.62833405,0.00000000,0.00000000,0.00000000); //object(gb_takeaway02) (1)
    CreateObject(2837,2814.89062500,2234.10815430,10.62833405,0.00000000,0.00000000,0.00000000); //object(gb_takeaway02) (2)
    CreateObject(2837,2817.47436523,2235.66015625,10.62833405,0.00000000,0.00000000,0.00000000); //object(gb_takeaway02) (3)
    CreateObject(2837,2818.69213867,2232.44042969,10.62833405,0.00000000,0.00000000,0.00000000); //object(gb_takeaway02) (4)
    CreateObject(2685,2800.26391602,2236.90356445,10.19756889,0.00000000,0.00000000,0.00000000); //object(cj_food_post1) (1)
    CreateObject(16151,2800.92797852,2218.58447266,10.02343750,0.00000000,0.00000000,180.00000000); //object(ufo_bar) (1)
    // LV MAFIA //
   
    // SASD //
    CreateObject(3049,2337.12646484,2447.00585938,7.03674030,0.00000000,0.00000000,60.00000000); //object(des_quarrygate) (1)
    CreateObject(3049,2334.91430664,2443.17016602,7.03069305,0.00000000,0.00000000,59.99633789); //object(des_quarrygate) (2)
    CreateObject(984,2336.49023438,2445.62475586,8.65523434,0.00000000,0.00000000,328.00000000); //object(fenceshit2) (1)
    CreateObject(3050,2293.86230469,2502.74658203,4.63754559,0.00000000,0.00000000,90.00000000); //object(des_quarrygate2) (1)
    CreateObject(3050,2293.84765625,2499.33105469,4.58077669,0.00000000,0.00000000,90.00000000); //object(des_quarrygate2) (2)
    CreateObject(1569,2293.96533203,2492.91186523,2.27968645,0.00000000,0.00000000,90.00000000); //object(adam_v_door) (1)
    CreateObject(984,2293.78173828,2499.53710938,6.30464840,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (3)
    CreateObject(984,2293.76611328,2502.73535156,6.30464840,0.00000000,0.00000000,0.00000000); //object(fenceshit2) (4)
    // SASD //
   
    // TAXI //
    CreateObject(911,1748.59997559,-1863.82214355,13.14120388,0.00000000,0.00000000,0.00000000); //object(bust_cabinet_1) (1)
    CreateObject(1257,1749.67224121,-1861.24792480,13.69325447,0.00000000,2.00000000,269.99996948); //object(bustopm) (1)
    CreateObject(1257,1759.55798340,-1861.25024414,13.85753536,0.00000000,1.99951172,269.99450684); //object(bustopm) (2)
    CreateObject(3379,1731.59130859,-1854.97106934,12.41406250,0.00000000,0.00000000,92.00000000); //object(ce_hairpinr) (1)
    CreateObject(18014,1729.58374023,-1864.03662109,13.00645733,0.00000000,0.00000000,0.00000000); //object(int_rest_veg03) (1)
    CreateObject(18014,1732.37316895,-1864.05883789,13.00651932,0.00000000,0.00000000,0.00000000); //object(int_rest_veg03) (2)
    CreateObject(18014,1731.07592773,-1864.13256836,13.00642872,0.00000000,0.00000000,0.00000000); //object(int_rest_veg03) (3)
    // TAXI //

    CreateObject(1424,1569.57470703,-1721.25341797,27.85782242,0.00000000,0.00000000,0.00000000); //object(dyn_roadbarrier_2) (2)
    CreateObject(1424,1584.07006836,-1673.61889648,5.40675449,0.00000000,0.00000000,0.00000000); //object(dyn_roadbarrier_2) (3)
    CreateObject(1424,1582.04321289,-1673.62145996,5.40823936,0.00000000,0.00000000,0.00000000); //object(dyn_roadbarrier_2) (4)
    CreateObject(1424,1586.08093262,-1673.63378906,5.40820026,0.00000000,0.00000000,0.00000000); //object(dyn_roadbarrier_2) (6)
    CreateObject(1424,1588.12182617,-1673.62023926,5.41018105,0.00000000,0.00000000,0.00000000); //object(dyn_roadbarrier_2) (7)
    CreateObject(1424,1582.01635742,-1681.39172363,5.41050148,0.00000000,0.00000000,0.00000000); //object(dyn_roadbarrier_2) (8)
    CreateObject(1424,1588.16442871,-1681.38964844,5.41050148,0.00000000,0.00000000,0.00000000); //object(dyn_roadbarrier_2) (9)
    CreateObject(1424,1584.04455566,-1681.38916016,5.41050148,0.00000000,0.00000000,0.00000000); //object(dyn_roadbarrier_2) (10)
    CreateObject(1424,1586.14978027,-1681.38635254,5.41050148,0.00000000,0.00000000,0.00000000); //object(dyn_roadbarrier_2) (11)
    CreateObject(973,1537.52087402,-1668.49523926,13.38709545,0.00000000,0.00000000,90.00000000); //object(sub_roadbarrier) (1)
    CreateObject(973,1537.56835938,-1675.98474121,13.38709545,0.00000000,0.00000000,90.00000000); //object(sub_roadbarrier) (2)

    // Vito Roof //
    CreateObject(970,465.79998779,-1463.90002441,45.09999847,0.00000000,0.00000000,317.25000000); //object(fencesmallb) (1)
    CreateObject(970,468.70001221,-1466.59997559,45.09999847,0.00000000,0.00000000,317.24670410); //object(fencesmallb) (2)
    CreateObject(970,471.70001221,-1469.40002441,45.09999847,0.00000000,0.00000000,317.24670410); //object(fencesmallb) (3)
    CreateObject(970,473.60000610,-1472.80004883,45.09999847,0.00000000,0.00000000,281.99670410); //object(fencesmallb) (4)
    CreateObject(970,472.20001221,-1476.00000000,45.09999847,0.00000000,0.00000000,208.24157715); //object(fencesmallb) (5)
    CreateObject(970,468.60000610,-1477.90002441,45.09999847,0.00000000,0.00000000,208.24035645); //object(fencesmallb) (6)
    CreateObject(970,464.89999390,-1479.90002441,45.09999847,0.00000000,0.00000000,208.24035645); //object(fencesmallb) (7)
    CreateObject(970,461.20001221,-1481.90002441,45.09999847,0.00000000,0.00000000,208.24035645); //object(fencesmallb) (8)
    CreateObject(970,458.39999390,-1483.40002441,45.09999847,0.00000000,0.00000000,208.24035645); //object(fencesmallb) (9)
    CreateObject(970,454.60000610,-1478.50000000,45.09999847,0.00000000,0.25000000,108.75003052); //object(fencesmallb) (11)
    CreateObject(970,462.89999390,-1463.69995117,45.09999847,0.00000000,0.00000000,40.99548340); //object(fencesmallb) (12)
    CreateObject(970,459.79998779,-1466.40002441,45.09999847,0.00000000,0.00000000,40.99548340); //object(fencesmallb) (13)
    CreateObject(970,456.70001221,-1469.09997559,45.09999847,0.00000000,0.00000000,40.99548340); //object(fencesmallb) (14)
    CreateObject(970,454.10000610,-1471.40002441,45.09999847,0.00000000,0.00000000,40.99548340); //object(fencesmallb) (15)
    CreateObject(970,453.29998779,-1474.69995117,45.09999847,0.00000000,0.00000000,108.99548340); //object(fencesmallb) (16)
    CreateObject(970,455.89999390,-1482.40002441,45.09999847,0.00000000,0.24719238,108.74816895); //object(fencesmallb) (17)
    CreateObject(1753,453.70001221,-1472.40002441,44.59999847,0.00000000,0.00000000,41.00000000); //object(swank_couch_1) (1)
    CreateObject(1753,455.89999390,-1470.50000000,44.59999847,0.00000000,0.00000000,42.25000000); //object(swank_couch_1) (2)
    SunRoof = CreateObject(1482,456.29998779,-1469.59997559,42.29999924,359.93893433,271.74871826,298.50097656); //object(dyn_garrage1) (1)
    // Vito Roof //
   
    //house//
    CreateObject(2765,964.90002441,-53.09999847,1000.29998779,0.00000000,270.25024414,89.49993896); //object(cj_cb_list1) (1)
    CreateObject(2765,964.90002441,-52.09999847,1000.29998779,0.00000000,270.24719238,89.49462891); //object(cj_cb_list1) (2)
    CreateObject(1569,965.29998779,-54.00000000,1000.09997559,0.00000000,359.75000000,88.00000000); //object(adam_v_door) (1)
    CreateObject(1792,957.50000000,-61.59999847,1000.90002441,0.00000000,0.00000000,148.00000000); //object(swank_tv_1) (1)
    CreateObject(1671,956.79998779,-53.59999847,1000.59997559,0.00000000,0.00000000,122.24996948); //object(swivelchair_a) (1)
    CreateObject(2315,959.90002441,-49.09999847,1000.09997559,0.00000000,0.00000000,0.00000000); //object(cj_tv_table4) (1)
    CreateObject(7191,983.50000000,-55.90000153,1002.09997559,0.00000000,0.00000000,90.00000000); //object(vegasnnewfence2b) (2)
    CreateObject(7191,937.70001221,-55.79999924,1002.09997559,0.00000000,358.00000000,270.00000000); //object(vegasnnewfence2b) (3)
    CreateObject(1491,961.40002441,-55.90000153,1000.09997559,0.00000000,0.00000000,180.00000000); //object(gen_doorint01) (1)
    CreateObject(983,961.40002441,-55.90000153,1003.29998779,0.00000000,0.00000000,88.25000000); //object(fenceshit3) (1)
    //house//
   
    //PLAYER CLASSES//
    AddPlayerClass(0, 1351.3706, -1621.3577, 13.6096, 267.4002, 0, 0, 0, 0, 0, 0); // spawn
    AddPlayerClass(186, 1351.3706, -1621.3577, 13.6096, 267.4002, 0, 0, 0, 0, 0, 0); // spawn
    //PLAYER CLASSES//
   
    AddStaticVehicleEx(480,1361.5043,-1659.1171,13.0876,272.0952,1,0, -1); // comet
    AddStaticVehicleEx(507,1361.9521,-1650.4392,13.0894,271.1468,0,0, -1); // elegant
    AddStaticVehicleEx(451,1361.9991,-1642.4241,13.0899,272.0598,0,0, -1); // turismo
    AddStaticVehicleEx(482,1361.4960,-1634.9474,13.0892,270.5276,0,0, -1); // burrito

    GateOpen = CreateObject(8674,1410.19995117,-1650.09997559,13.80000019,0.00000000,0.00000000,89.00000000); //object(csrsfence02_lvs) (1)
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid)
{
    SetPlayerPos(playerid, 1540.2454,-851.1772,64.3361);
    SetPlayerFacingAngle(playerid, 88.5800);
    SetPlayerCameraLookAt(playerid, 1540.2454,-851.1772,64.3361);
    SetPlayerCameraPos(playerid, 1534.1233,-851.4346,65.6077);
}

public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, 0xFF0000AA, "Welcome to Unnamed Roleplay Server.");
    SendClientMessage(playerid, 0xFF0000AA, "I am currently working on making a final version 1 of this script.");
    SendClientMessage(playerid, 0xFF0000AA, "Forums will be implemented soon.");
    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;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/", true))//you need to put the command name here ^^
        {
            if(IsPlayerInRangeOfPoint(playerid, 10, 1410.19995117, -1650.09997559, 13.80000019))
        {
            if(!GateOpenStatus)
        {
            MoveObject(GateOpen, 1410.09997559, -1650.09997559, 10.80000019, 3);
            SendClientMessage(playerid, 0xEF994300, "You have opened the gate.");
            GateOpenStatus = true;
        }
            else
        {
            MoveObject(GateOpen, 1410.19995117, -1650.09997559, 13.80000019, 3);
            SendClientMessage(playerid, 0xEF994300, "You have closed the gate.");
            GateOpenStatus = false;
        }
        }
            else if(IsPlayerInRangeOfPoint(playerid, 10, 955.70001221,-50.70000076,1002.00000000))
        {
        if(!DoorStatus)
        {
            MoveObject(Door, 955.70001221,-50.59999847,998.20001221, 3);
            DoorStatus = true;
        }
        else
        {
            MoveObject(Door, 955.70001221,-50.70000076,1002.00000000, 3);
            DoorStatus = false;
        }
        }
            else if(IsPlayerInRangeOfPoint(playerid, 10, 456.29998779,-1469.59997559,42.29999924))
        {
        if(!SunStatus)
        {
            MoveObject(SunRoof, 456.00000000,-1471.00000000,46.00000000, 3, 0.00000000,358.00000000,310.50000000);
            SunStatus = true;
        }
        else
        {
            MoveObject(SunRoof, 456.29998779,-1469.59997559,42.29999924, 3, 359.93893433,271.74871826,298.50097656);
            SunStatus = false;
        }
  }
            return true;
}
       
    if(!strcmp(cmdtext, "/enter", true))
        {
            if(IsPlayerInRangeOfPoint(playerid, 10, 1341.5411, -1675.3422, 17.7164))
        {
            SetPlayerPos(playerid, 963.70001221, -53.29999924, 1000.70001221);
            SetPlayerInterior(playerid, 3);
        }
            return 1;
        }

    if(!strcmp(cmdtext, "/pass", true))
        {
            if(IsPlayerInRangeOfPoint(playerid, 5, 454.8862,-1480.8170,30.9008))
        {
            SetPlayerPos(playerid, 459.6148,-1475.6578,45.5781);
        }
            if(IsPlayerInRangeOfPoint(playerid, 5, 459.6148,-1475.6578,45.5781))
        {
            SetPlayerPos(playerid, 454.8862,-1480.8170,30.9008);
        }
            return 1;
        }


    if(!strcmp(cmdtext, "/exit", true))
        {
            if(IsPlayerInRangeOfPoint(playerid, 10, 963.70001221, -53.29999924, 1000.70001221))
        {
            SetPlayerPos(playerid, 1341.5411, -1675.3422, 17.7164);
            SetPlayerInterior(playerid, 0);
        }
            return 1;
        }
       
    if(!strcmp(cmdtext, "/fix", true))
        {
            if(IsPlayerInAnyVehicle(playerid))
        {
            RepairVehicle(GetPlayerVehicleID(playerid));
            SendClientMessage(playerid, 0xFFFFFFFF, "You have fixed your vehicle.");
        }
            else
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle.");
        }
            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 OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)