01.02.2014, 00:52
HEllo, I downloaded a VIP system for my samp server but my problem is my server uses .sav not MYSQL, If someone could edit this script so it makes a line in the .sav and be able to work with my .sav
the script is here
+1 REP for first
the script is here
Код:
#if defined VIP //maded by KINGINA It will be more Version of VIP and I will make it more powerfull //maybe is new version of VIP maked, chack it on my server: 188.138.121.84:26777 //do not remove my credits, Please #endif //============ [ Includes ] ============// #include < a_samp > // Main include! #include < zcmd > // Find it on: https://sampforum.blast.hk/showthread.php?tid=91354&highlight=zcmd #include < sscanf2 > // Find it on: https://sampforum.blast.hk/showthread.ph...7.33788985 #include < foreach > #include < streamer > //======================================// #pragma tabsize 0 #define VIPS_SEND_COMMAND //Put this: // In front of this define to do not use //VIPS_SEND_COMAND //============ [ Colours ] ============// #define neondialog 8131 #define RED 0xE60000AA #define YELLOW 0xFFFF00AA #define GREEN 0x00FF08AA #define ABLUE 0x2646FEAA #define COLOR_VIP 0xFF5512AA //aka Orange:P //====================================// //========== [ Dialogs ] ==========// /* I put the dialogids bigest to not confuse with other dialogs in your FSs/GM */ #define MYLVL 12000 #define VIPS 12001 #define VIPCMDS 12002 #define ONCONN 12003 #define VSPA 12004 #define Zuta 0xFFFF00AA #define Plava 0x1200FAFF //====================================// //============= [ SPEC ] =============// #define ADMIN_SPEC_TYPE_NONE 0 #define ADMIN_SPEC_TYPE_PLAYER 1 #define ADMIN_SPEC_TYPE_VEHICLE 2 /* Do not touch this! */ //=========== [ Shortcuts ] ==========// #define Public:%0(%1) \ forward%0(%1); public%0(%1) //====================================// //========== [ News&Enums ] ==========// enum pInfo { Vip, SpecID, SpecType, God, CarGod }; new P_DATA[ MAX_PLAYERS ][ pInfo ]; new DB:Database; new Float:Position[ MAX_PLAYERS ][ 4 ]; //====================================// //======================================================== [ CallBacks ] ========================================================// public OnFilterScriptInit( ) { Database = db_open( "Vips.db" ); //Name of the database! You can change it! db_query( Database, "CREATE TABLE IF NOT EXISTS `Vips` \ (`Key` INTEGER PRIMARY KEY AUTOINCREMENT, \ `Nume` TEXT, \ `VipLevel` NUMERIC, \ `VSkin` NUMERIC)" ); //VIP Island AddStaticVehicleEx(589,230.00000000,2999.80004883,8.50000000,0.00000000,-1,-1,15); //Club AddStaticVehicleEx(589,275.70001221,3008.50000000,10.30000019,0.00000000,-1,-1,15); //Club AddStaticVehicleEx(589,404.50000000,3082.39990234,9.89999962,180.00000000,-1,-1,15); //Club AddStaticVehicleEx(589,417.50000000,3066.69995117,9.80000019,180.00000000,-1,-1,15); //Club AddStaticVehicleEx(411,426.39999390,3025.19995117,9.30000019,0.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(411,520.79998779,3030.00000000,8.10000038,90.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(411,520.70001221,3044.19995117,8.10000038,90.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(411,594.09997559,3022.60009766,10.19999981,90.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(411,593.59997559,3049.30004883,9.69999981,90.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(411,762.29998779,2938.30004883,18.70000076,90.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(411,762.59997559,2949.89990234,18.50000000,90.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(411,744.90002441,3134.10009766,17.29999924,90.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(411,770.20001221,3121.39990234,16.10000038,90.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(411,541.79998779,3088.60009766,11.00000000,90.00000000,-1,-1,15); //Infernus AddStaticVehicleEx(454,111.19999695,3062.10009766,0.00000000,94.00000000,-1,-1,15); //Tropic AddStaticVehicleEx(454,130.30000305,3063.80004883,0.00000000,93.99902344,-1,-1,15); //Tropic AddStaticVehicleEx(454,275.79998779,3104.39990234,0.00000000,357.99902344,-1,-1,15); //Tropic AddStaticVehicleEx(454,398.29998779,3151.80004883,0.00000000,357.99499512,-1,-1,15); //Tropic AddStaticVehicleEx(446,362.29998779,3145.10009766,0.00000000,0.00000000,-1,-1,15); //Squalo AddStaticVehicleEx(446,399.50000000,3139.10009766,0.00000000,332.00000000,-1,-1,15); //Squalo AddStaticVehicleEx(484,222.10000610,3122.00000000,0.00000000,0.00000000,-1,-1,15); //Marquis AddStaticVehicleEx(493,226.89999390,3104.60009766,0.00000000,0.00000000,-1,-1,15); //Jetmax CreateDynamicObject(6235,256.39999390,2915.69995117,20.39999962,0.00000000,0.00000000,0.00000000); //object(canal_arch01) (1) CreateDynamicObject(6959,254.39999390,2918.60009766,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (1) CreateDynamicObject(6959,254.39999390,2958.49902344,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (2) CreateDynamicObject(6959,254.39999390,2998.19995117,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (3) CreateDynamicObject(6959,213.19999695,2998.19995117,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (4) CreateDynamicObject(6959,254.39900208,3038.19995117,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (5) CreateDynamicObject(6959,213.19999695,3038.19995117,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (6) CreateDynamicObject(6959,295.70001221,2998.19995117,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (7) CreateDynamicObject(6959,295.70001221,3038.17993164,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (8) CreateDynamicObject(4897,210.69921875,3098.39941406,-3.00000000,0.00000000,0.00000000,275.74584961); //object(beach1a1_las) (1) CreateDynamicObject(4897,148.00000000,2975.00000000,-3.09999990,0.00000000,0.00000000,3.99902344); //object(beach1a1_las) (2) CreateDynamicObject(16117,232.00000000,2950.80004883,10.00000000,0.00000000,0.00000000,80.00000000); //object(des_rockgp1_04) (1) CreateDynamicObject(16117,289.99899292,2952.89990234,0.00000000,0.00000000,0.00000000,298.74694824); //object(des_rockgp1_04) (2) CreateDynamicObject(16117,235.00000000,2979.69921875,15.00000000,0.00000000,0.00000000,85.99694824); //object(des_rockgp1_04) (3) CreateDynamicObject(16118,275.90002441,2955.60009766,10.89999962,0.00000000,0.00000000,178.00000000); //object(des_rockgp2_05) (1) CreateDynamicObject(16120,271.60000610,2974.69995117,21.90000153,0.00000000,0.00000000,221.99475098); //object(des_rockgp2_07) (4) CreateDynamicObject(16120,257.29998779,2937.39990234,30.00000000,0.00000000,0.00000000,53.99475098); //object(des_rockgp2_07) (6) CreateDynamicObject(16120,254.89941406,2924.69921875,21.59999847,0.00000000,0.00000000,53.99230957); //object(des_rockgp2_07) (7) CreateDynamicObject(16120,257.50000000,2954.79980469,27.79999924,0.00000000,0.00000000,43.99475098); //object(des_rockgp2_07) (8) CreateDynamicObject(16139,286.10000610,2965.80004883,18.10000038,0.00000000,0.00000000,104.00000000); //object(des_rockgp2_19) (1) CreateDynamicObject(16139,328.79998779,2964.30004883,0.00000000,0.00000000,0.00000000,87.99658203); //object(des_rockgp2_19) (2) CreateDynamicObject(16139,305.89941406,2971.09960938,8.19999981,0.00000000,0.00000000,87.99499512); //object(des_rockgp2_19) (3) CreateDynamicObject(16120,301.99993896,2994.00000000,5.00000000,0.00000000,0.00000000,247.98974609); //object(des_rockgp2_07) (9) CreateDynamicObject(16120,213.10000610,2966.30004883,0.00000000,0.00000000,0.00000000,307.98828125); //object(des_rockgp2_07) (11) CreateDynamicObject(16120,195.89999390,2957.30004883,0.00000000,0.00000000,0.00000000,267.98522949); //object(des_rockgp2_07) (12) CreateDynamicObject(16120,194.19999695,2969.89990234,0.00000000,0.00000000,0.00000000,267.98400879); //object(des_rockgp2_07) (13) CreateDynamicObject(16120,176.69999695,2970.19995117,0.00000000,0.00000000,0.00000000,305.98400879); //object(des_rockgp2_07) (14) CreateDynamicObject(11556,149.00000000,2963.10009766,8.00000000,0.00000000,0.00000000,210.00000000); //object(des_adrocks) (1) CreateDynamicObject(16112,171.69999695,2983.39990234,0.00000000,0.00000000,0.00000000,0.00000000); //object(des_rockfl1_) (1) CreateDynamicObject(16112,349.00000000,3004.89941406,-2.00000000,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(16112,185.89941406,2997.00000000,-2.00000000,0.00000000,0.00000000,0.00000000); //object(des_rockfl1_) (3) CreateDynamicObject(16112,226.79980469,2980.09960938,0.00000000,0.00000000,0.00000000,239.99633789); //object(des_rockfl1_) (4) CreateDynamicObject(16112,166.50000000,3101.89990234,-1.00000000,0.00000000,0.00000000,264.00000000); //object(des_rockfl1_) (5) CreateDynamicObject(16112,205.99414062,3075.00000000,0.00000000,0.00000000,0.00000000,263.99597168); //object(des_rockfl1_) (6) CreateDynamicObject(16112,192.00000000,3086.39941406,0.00000000,0.00000000,0.00000000,263.99597168); //object(des_rockfl1_) (7) CreateDynamicObject(6959,336.99902344,3038.09960938,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(3618,214.30000305,2994.50000000,8.50000000,0.00000000,0.00000000,180.00000000); //object(nwlaw2husjm3_law2) (1) CreateDynamicObject(3607,311.69921875,3056.79980469,12.00000000,0.00000000,0.00000000,0.00000000); //object(bevman2_law2) (1) CreateDynamicObject(3607,246.89941406,3057.09960938,12.00000000,0.00000000,0.00000000,0.00000000); //object(bevman2_law2) (2) CreateDynamicObject(3603,329.69921875,3011.00000000,11.60000038,0.00000000,0.00000000,0.00000000); //object(bevman_law2) (1) CreateDynamicObject(16112,328.00000000,2982.79980469,0.00000000,0.00000000,0.00000000,21.99462891); //object(des_rockfl1_) (8) CreateDynamicObject(6959,378.29998779,3037.89990234,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(6959,378.20001221,3077.89990234,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(6959,419.29998779,3038.00000000,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(6959,419.50000000,2998.00048828,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(6959,419.29998779,3077.99511719,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(4897,617.00000000,3135.60009766,0.00000000,0.00000000,0.00000000,273.74584961); //object(beach1a1_las) (1) CreateDynamicObject(16112,345.60000610,3074.19995117,0.00000000,0.00000000,0.00000000,269.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(16112,533.50000000,3186.50000000,0.00000000,0.00000000,0.00000000,315.99450684); //object(des_rockfl1_) (2) CreateDynamicObject(16112,340.00000000,3111.10009766,0.00000000,0.00000000,0.00000000,269.99450684); //object(des_rockfl1_) (2) CreateDynamicObject(16112,315.79998779,3118.10009766,0.00000000,0.00000000,0.00000000,269.99450684); //object(des_rockfl1_) (2) CreateDynamicObject(16112,334.39999390,3129.80004883,-1.00000000,0.00000000,0.00000000,269.99450684); //object(des_rockfl1_) (2) CreateDynamicObject(16112,383.79998779,3006.80004883,0.00000000,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(16112,385.29998779,2977.60009766,0.00000000,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(16112,364.20001221,2969.39990234,0.00000000,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(16112,352.20001221,2951.00000000,0.00000000,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(16112,377.70001221,2924.39990234,0.00000000,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(16112,451.89999390,2963.89990234,1.00000000,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(16112,392.89941406,2942.39941406,0.00000000,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(16112,425.89999390,2941.00000000,0.60000002,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(16112,419.69921875,2969.59960938,0.00000000,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(16112,307.20001221,3132.80004883,0.00000000,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(6522,400.60000610,3002.89990234,14.00000000,0.00000000,0.00000000,90.00000000); //object(country_law2) (1) CreateDynamicObject(16112,367.60000610,3018.80004883,0.00000000,0.00000000,0.00000000,269.99450684); //object(des_rockfl1_) (2) CreateDynamicObject(16112,462.59960938,2927.69921875,0.00000000,0.00000000,0.00000000,349.99694824); //object(des_rockfl1_) (2) CreateDynamicObject(4835,539.70001221,3036.50000000,10.15999985,0.00000000,0.00000000,180.00000000); //object(airoad1b_las) (1) CreateDynamicObject(6959,460.52999878,3078.00000000,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(6959,460.51998901,2998.00048828,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(6959,602.99987793,3024.00000000,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(6959,604.09997559,3062.00000000,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(4837,714.97558594,3128.29980469,14.30999947,0.00000000,0.00000000,270.00000000); //object(lapedhusrea_las) (1) CreateDynamicObject(4837,714.59997559,2945.00097656,14.30000019,0.00000000,0.00000000,270.00000000); //object(lapedhusrea_las) (2) CreateDynamicObject(3607,458.70001221,3060.00000000,12.10000038,0.00000000,0.00000000,0.00000000); //object(bevman2_law2) (1) CreateDynamicObject(6959,459.70001221,3037.99951172,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(3603,458.50000000,3016.00000000,11.80000019,0.00000000,0.00000000,0.00000000); //object(bevman_law2) (1) CreateDynamicObject(9270,546.29998779,3106.50000000,10.69999981,0.00000000,0.00000000,178.57580566); //object(preshoosbig01_sfn01) (1) CreateDynamicObject(9270,374.50000000,3078.59960938,11.00100040,0.00000000,0.00000000,268.57177734); //object(preshoosbig01_sfn01) (2) CreateDynamicObject(3353,693.40002441,3151.30004883,15.10000038,0.00000000,0.00000000,0.00000000); //object(sw_bigburbsave2) (1) CreateDynamicObject(3606,729.29998779,3142.19995117,17.39999962,0.00000000,0.00000000,0.00000000); //object(bevbrkhus1) (1) CreateDynamicObject(3606,520.70001221,3128.89990234,9.19999981,0.00000000,0.00000000,90.00000000); //object(bevbrkhus1) (2) CreateDynamicObject(3606,750.29998779,2932.80004883,17.39999962,0.00000000,0.00000000,180.00000000); //object(bevbrkhus1) (3) CreateDynamicObject(3605,750.40002441,3106.00000000,19.89999962,0.00000000,0.00000000,0.00000000); //object(bevman3_law2) (1) CreateDynamicObject(7885,620.50000000,3036.39990234,5.88999987,0.00000000,0.00000000,0.00000000); //object(vegasglfhse1) (1) CreateDynamicObject(8437,789.00000000,3128.60009766,20.39999962,0.00000000,0.00000000,90.00000000); //object(residntial01_lvs) (1) CreateDynamicObject(4897,338.69921875,3140.00097656,-3.00000000,0.00000000,0.00000000,273.74084473); //object(beach1a1_las) (1) CreateDynamicObject(4897,644.79998779,3208.60009766,5.69999981,0.00000000,0.00000000,273.74084473); //object(beach1a1_las) (1) CreateDynamicObject(4897,614.39941406,3155.39941406,0.00000000,0.00000000,0.00000000,273.74084473); //object(beach1a1_las) (1) CreateDynamicObject(4897,511.50000000,3179.69921875,-3.00000000,0.00000000,0.00000000,273.74084473); //object(beach1a1_las) (1) CreateDynamicObject(4897,729.09997559,3196.10009766,5.90000010,0.00000000,0.00000000,273.74084473); //object(beach1a1_las) (1) CreateDynamicObject(4897,624.29998779,3179.80004883,5.30000019,0.00000000,0.00000000,273.74084473); //object(beach1a1_las) (1) CreateDynamicObject(16112,349.09960938,3092.29980469,0.00000000,0.00000000,0.00000000,269.99450684); //object(des_rockfl1_) (2) CreateDynamicObject(16112,563.20001221,3176.39990234,0.00000000,0.00000000,0.00000000,315.99426270); //object(des_rockfl1_) (2) CreateDynamicObject(16112,553.29998779,3217.89990234,0.00000000,0.00000000,0.00000000,315.99426270); //object(des_rockfl1_) (2) CreateDynamicObject(16112,590.20001221,3203.60009766,7.80000019,0.00000000,0.00000000,315.99426270); //object(des_rockfl1_) (2) CreateDynamicObject(16112,616.20001221,3204.69995117,6.50000000,0.00000000,0.00000000,315.99426270); //object(des_rockfl1_) (2) CreateDynamicObject(16112,629.90002441,3151.10009766,5.59999990,0.00000000,0.00000000,181.99426270); //object(des_rockfl1_) (2) CreateDynamicObject(16112,612.20001221,3174.89990234,8.00000000,0.00000000,0.00000000,181.99401855); //object(des_rockfl1_) (2) CreateDynamicObject(16112,598.09997559,3154.60009766,7.50000000,0.00000000,0.00000000,181.99401855); //object(des_rockfl1_) (2) CreateDynamicObject(16112,645.20001221,3176.19995117,7.59999990,0.00000000,0.00000000,181.99401855); //object(des_rockfl1_) (2) CreateDynamicObject(16112,665.70001221,3170.60009766,8.80000019,0.00000000,0.00000000,181.99401855); //object(des_rockfl1_) (2) CreateDynamicObject(16112,757.09997559,3150.10009766,6.59999990,0.00000000,0.00000000,181.99401855); //object(des_rockfl1_) (2) CreateDynamicObject(16112,724.99902344,3167.99902344,10.00000000,0.00000000,0.00000000,181.99401855); //object(des_rockfl1_) (2) CreateDynamicObject(16112,780.40002441,3149.50000000,6.69999981,0.00000000,0.00000000,185.99401855); //object(des_rockfl1_) (2) CreateDynamicObject(16112,810.20001221,3150.39990234,8.00000000,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,842.20001221,3142.30004883,9.89999962,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,863.70001221,3161.19995117,7.19999981,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,863.79998779,3184.69995117,7.40000010,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,858.00000000,3208.60009766,4.50000000,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,858.50000000,3231.60009766,0.00000000,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,889.50000000,3199.00000000,2.59999990,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,891.79998779,3172.80004883,0.80000001,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,891.20001221,3148.00000000,1.50000000,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,873.79998779,3135.10009766,7.59999990,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,789.20001221,3126.60009766,0.00000000,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,749.00000000,3090.30004883,1.60000002,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,716.20001221,3082.19995117,0.00000000,0.00000000,0.00000000,137.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,696.00000000,3077.00000000,1.29999995,0.00000000,0.00000000,137.98828125); //object(des_rockfl1_) (2) CreateDynamicObject(16112,720.70001221,3099.69995117,8.89999962,0.00000000,0.00000000,159.98828125); //object(des_rockfl1_) (2) CreateDynamicObject(16112,646.20001221,3086.89990234,0.00000000,0.00000000,0.00000000,137.98828125); //object(des_rockfl1_) (2) CreateDynamicObject(16112,620.29998779,3089.19995117,1.50000000,0.00000000,0.00000000,137.98828125); //object(des_rockfl1_) (2) CreateDynamicObject(16112,621.09997559,3096.39990234,10.00000000,0.00000000,0.00000000,177.98828125); //object(des_rockfl1_) (2) CreateDynamicObject(16112,575.09997559,3098.80004883,0.00000000,0.00000000,0.00000000,177.98400879); //object(des_rockfl1_) (2) CreateDynamicObject(16112,590.59997559,3098.69995117,6.00000000,0.00000000,0.00000000,177.98400879); //object(des_rockfl1_) (2) CreateDynamicObject(16112,678.09960938,3071.09960938,4.69999981,0.00000000,0.00000000,137.98828125); //object(des_rockfl1_) (2) CreateDynamicObject(16112,693.59997559,3102.10009766,12.10000038,0.00000000,0.00000000,175.98291016); //object(des_rockfl1_) (2) CreateDynamicObject(16112,654.09997559,3106.39990234,9.00000000,0.00000000,0.00000000,265.97900391); //object(des_rockfl1_) (2) CreateDynamicObject(16112,632.79998779,3107.50000000,9.00000000,0.00000000,0.00000000,265.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(16112,503.70001221,3158.30004883,4.30000019,0.00000000,0.00000000,265.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(16112,511.00000000,3173.00000000,0.69999999,0.00000000,0.00000000,265.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(16112,509.79998779,3106.80004883,0.00000000,0.00000000,0.00000000,265.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(16112,487.29998779,3120.50000000,0.00000000,0.00000000,0.00000000,265.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(16112,474.00000000,3145.89990234,0.00000000,0.00000000,0.00000000,265.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(16112,462.29998779,3115.60009766,1.50000000,0.00000000,0.00000000,265.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(16112,481.70001221,3169.50000000,0.00000000,0.00000000,0.00000000,265.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(16112,460.29998779,3174.19995117,0.00000000,0.00000000,0.00000000,265.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(16112,488.20001221,2938.10009766,0.30000001,0.00000000,0.00000000,113.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(16112,471.59960938,3072.89941406,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,483.39941406,2964.59960938,1.79999995,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,496.50000000,2917.30004883,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,528.59997559,2915.19995117,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,583.09997559,3083.39990234,0.00000000,0.00000000,0.00000000,35.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,625.59997559,2994.39990234,-3.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,505.50000000,2937.69995117,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,511.29980469,2970.69921875,0.00000000,0.00000000,0.00000000,265.96801758); //object(des_rockfl1_) (2) CreateDynamicObject(16112,489.19921875,2980.00000000,0.00000000,0.00000000,0.00000000,265.96801758); //object(des_rockfl1_) (2) CreateDynamicObject(16112,481.19921875,2998.19921875,-5.59999990,0.00000000,0.00000000,265.96801758); //object(des_rockfl1_) (2) CreateDynamicObject(3604,599.90002441,3074.00000000,8.69999981,0.00000000,0.00000000,0.00000000); //object(bevmangar_law2) (1) CreateDynamicObject(3604,600.09997559,3005.60009766,8.50000000,0.00000000,0.00000000,180.00000000); //object(bevmangar_law2) (2) CreateDynamicObject(3604,586.50000000,3005.60009766,8.50000000,0.00000000,0.00000000,179.99450684); //object(bevmangar_law2) (3) CreateDynamicObject(3604,786.70001221,2944.69995117,16.89999962,0.00000000,0.00000000,269.99450684); //object(bevmangar_law2) (4) CreateDynamicObject(3604,712.50000000,3142.80004883,16.79999924,0.00000000,0.00000000,359.98901367); //object(bevmangar_law2) (5) CreateDynamicObject(3604,533.29998779,3142.89990234,8.60000038,0.00000000,0.00000000,359.98352051); //object(bevmangar_law2) (6) CreateDynamicObject(3604,430.50000000,3067.80004883,8.50000000,0.00000000,0.00000000,359.98352051); //object(bevmangar_law2) (7) CreateDynamicObject(3604,394.60000610,3082.89990234,8.50000000,0.00000000,0.00000000,359.98352051); //object(bevmangar_law2) (8) CreateDynamicObject(3604,285.50000000,3049.50000000,8.50000000,0.00000000,0.00000000,359.98352051); //object(bevmangar_law2) (9) CreateDynamicObject(3604,217.00000000,3051.80004883,8.50000000,0.00000000,0.00000000,359.98352051); //object(bevmangar_law2) (10) CreateDynamicObject(3604,303.79998779,3002.50000000,8.50000000,0.00000000,0.00000000,179.98352051); //object(bevmangar_law2) (11) CreateDynamicObject(3604,287.79998779,3002.89990234,8.50000000,0.00000000,0.00000000,179.98352051); //object(bevmangar_law2) (12) CreateDynamicObject(3353,694.09997559,2968.89990234,15.10000038,0.00000000,0.00000000,0.00000000); //object(sw_bigburbsave2) (2) CreateDynamicObject(3603,728.00000000,2966.10009766,20.00000000,0.00000000,0.00000000,0.00000000); //object(bevman_law2) (3) CreateDynamicObject(3603,541.20001221,3037.19995117,11.88000011,0.00000000,0.00000000,90.00000000); //object(bevman_law2) (4) CreateDynamicObject(3603,551.89941406,2967.70019531,11.60000038,0.00000000,0.00000000,90.00000000); //object(bevman_law2) (5) CreateDynamicObject(8640,263.00000000,2851.60009766,23.50000000,0.00000000,0.00000000,90.00000000); //object(chnatwnmll02_lvs) (1) CreateDynamicObject(1498,689.59997559,3146.50000000,15.80000019,0.00000000,0.00000000,0.00000000); //object(gen_doorext03) (1) CreateDynamicObject(1498,690.29998779,2964.10009766,15.80000019,0.00000000,0.00000000,0.00000000); //object(gen_doorext03) (2) CreateDynamicObject(6959,571.99975586,2967.09960938,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(6959,612.50000000,2967.60009766,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(6959,653.40002441,2977.80004883,6.00000000,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (9) CreateDynamicObject(16112,546.09960938,2910.69921875,1.10000002,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,601.40002441,2994.50000000,-3.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,578.09997559,2992.10009766,-4.90000010,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,643.79998779,3006.60009766,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,662.09997559,3007.10009766,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,635.50000000,2940.50000000,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,658.59997559,2939.10009766,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,685.20001221,2947.60009766,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,682.20001221,2981.69995117,0.60000002,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,601.79998779,2951.60009766,-3.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,701.29998779,2965.89990234,2.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,786.59997559,2963.30004883,6.30000019,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,765.40002441,2962.89990234,5.69999981,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,723.20001221,2975.39990234,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,777.90002441,2922.19995117,8.89999962,0.00000000,0.00000000,7.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,725.40002441,2920.19995117,10.69999981,0.00000000,0.00000000,7.97058105); //object(des_rockfl1_) (2) CreateDynamicObject(16112,758.09960938,2919.00000000,10.50000000,0.00000000,0.00000000,7.97058105); //object(des_rockfl1_) (2) CreateDynamicObject(16112,699.29998779,2921.10009766,12.00000000,0.00000000,0.00000000,7.97058105); //object(des_rockfl1_) (2) CreateDynamicObject(16112,675.79998779,2919.69995117,10.50000000,0.00000000,0.00000000,7.97058105); //object(des_rockfl1_) (2) CreateDynamicObject(16112,649.09997559,2918.69995117,13.30000019,0.00000000,0.00000000,7.97058105); //object(des_rockfl1_) (2) CreateDynamicObject(16112,621.90002441,2919.50000000,11.39999962,0.00000000,0.00000000,7.97058105); //object(des_rockfl1_) (2) CreateDynamicObject(16112,593.09997559,2919.60009766,7.40000010,0.00000000,0.00000000,9.97058105); //object(des_rockfl1_) (2) CreateDynamicObject(16112,568.20001221,2922.30004883,2.50000000,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,591.40002441,2903.60009766,0.00000000,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,562.40002441,2904.10009766,0.00000000,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,605.20001221,2886.19995117,3.59999990,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,570.50000000,2881.00000000,0.00000000,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,638.59997559,2892.00000000,4.00000000,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,668.50000000,2898.19995117,6.09999990,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,689.59997559,2899.69995117,13.00000000,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,725.79998779,2901.39990234,15.30000019,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,761.00000000,2897.00000000,5.80000019,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,795.79998779,2904.60009766,0.40000001,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,809.90002441,2934.19995117,0.00000000,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,781.50000000,2938.00000000,0.00000000,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,803.70001221,2954.00000000,1.39999998,0.00000000,0.00000000,9.97009277); //object(des_rockfl1_) (2) CreateDynamicObject(16112,743.50000000,2968.09960938,7.50000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,755.70001221,2989.50000000,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,646.29998779,3043.89990234,0.00000000,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,669.90002441,3032.50000000,2.70000005,0.00000000,0.00000000,113.97216797); //object(des_rockfl1_) (2) CreateDynamicObject(16112,783.09960938,3107.29980469,5.09999990,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,797.59997559,3115.39990234,6.80000019,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,810.29998779,3130.69995117,8.50000000,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,765.09997559,3089.19995117,6.40000010,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,727.29998779,3071.19995117,2.20000005,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,680.90002441,3060.89990234,0.00000000,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(16112,709.00000000,3018.69995117,0.00000000,0.00000000,0.00000000,185.99304199); //object(des_rockfl1_) (2) CreateDynamicObject(3934,662.00000000,2968.80004883,6.00000000,0.00000000,0.00000000,0.00000000); //object(helipad01) (1) CreateDynamicObject(3934,644.20001221,2968.50000000,6.00000000,0.00000000,0.00000000,0.00000000); //object(helipad01) (2) CreateDynamicObject(3934,643.79998779,2982.80004883,6.00000000,0.00000000,0.00000000,0.00000000); //object(helipad01) (3) CreateDynamicObject(3934,661.29998779,2983.00000000,6.00000000,0.00000000,0.00000000,0.00000000); //object(helipad01) (4) CreateDynamicObject(3934,625.20001221,2973.10009766,6.00000000,0.00000000,0.00000000,0.00000000); //object(helipad01) (5) CreateDynamicObject(3934,604.09997559,2973.89990234,6.00000000,0.00000000,0.00000000,0.00000000); //object(helipad01) (6) CreateDynamicObject(3934,585.59997559,2981.00000000,6.00000000,0.00000000,0.00000000,0.00000000); //object(helipad01) (7) CreateDynamicObject(3934,585.29998779,2964.60009766,6.00000000,0.00000000,0.00000000,0.00000000); //object(helipad01) (8) CreateDynamicObject(3934,200.80000305,3043.60009766,6.00000000,0.00000000,0.00000000,0.00000000); //object(helipad01) (9) CreateDynamicObject(3934,200.30000305,3026.39990234,6.00000000,0.00000000,0.00000000,0.00000000); //object(helipad01) (10) CreateDynamicObject(17514,518.29998779,3037.00000000,7.09999990,0.00000000,0.00000000,270.00000000); //object(starthootra1_lae) (1) CreateDynamicObject(17514,557.59997559,3036.80004883,7.09999990,0.00000000,0.00000000,90.00000000); //object(starthootra1_lae) (2) CreateDynamicObject(11489,255.50000000,2915.19995117,22.50000000,0.00000000,0.00000000,0.00000000); //object(dam_statues) (1) CreateDynamicObject(1231,508.29998779,3027.60009766,8.89999962,0.00000000,0.00000000,0.00000000); //object(streetlamp2) (1) CreateDynamicObject(1231,508.20001221,3046.30004883,8.89999962,0.00000000,0.00000000,0.00000000); //object(streetlamp2) (2) CreateDynamicObject(1231,519.09997559,3046.60009766,9.00000000,0.00000000,0.00000000,0.00000000); //object(streetlamp2) (3) CreateDynamicObject(1231,518.59997559,3027.39990234,8.89999962,0.00000000,0.00000000,0.00000000); //object(streetlamp2) (4) CreateDynamicObject(1231,602.40002441,3044.00000000,8.89999962,0.00000000,0.00000000,110.00000000); //object(streetlamp2) (5) CreateDynamicObject(1231,603.00000000,3028.80004883,8.89999962,0.00000000,0.00000000,113.99511719); //object(streetlamp2) (6) CreateDynamicObject(1231,524.40002441,2952.80004883,8.89999962,0.00000000,0.00000000,91.99414062); //object(streetlamp2) (7) CreateDynamicObject(1231,564.40002441,2951.60009766,10.19999981,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (8) CreateDynamicObject(1231,676.70001221,2951.80004883,17.10000038,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (9) CreateDynamicObject(1231,703.40002441,2952.10009766,17.10000038,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (10) CreateDynamicObject(1231,722.59997559,2951.39990234,17.00000000,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (11) CreateDynamicObject(1231,736.29998779,2951.30004883,17.10000038,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (12) CreateDynamicObject(1231,774.59997559,2951.50000000,17.20000076,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (13) CreateDynamicObject(1231,778.50000000,2938.30004883,17.10000038,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (14) CreateDynamicObject(1231,774.50000000,2939.10009766,17.10000038,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (15) CreateDynamicObject(1231,736.50000000,2939.10009766,17.10000038,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (16) CreateDynamicObject(1231,722.00000000,2938.50000000,17.10000038,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (17) CreateDynamicObject(1231,702.79998779,2939.50000000,17.10000038,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (18) CreateDynamicObject(1231,677.20001221,2938.60009766,17.10000038,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (19) CreateDynamicObject(1231,564.00000000,2938.50000000,10.19999981,0.00000000,0.00000000,91.99401855); //object(streetlamp2) (20) CreateDynamicObject(1231,477.79998779,3045.30004883,8.89999962,0.00000000,0.00000000,85.99401855); //object(streetlamp2) (21) CreateDynamicObject(1231,478.70001221,3029.19995117,8.89999962,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (22) CreateDynamicObject(1231,266.89999390,2938.60009766,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (23) CreateDynamicObject(1231,266.70001221,2915.19995117,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (24) CreateDynamicObject(1231,245.39999390,2915.19995117,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (25) CreateDynamicObject(1231,245.50000000,2938.60009766,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (26) CreateDynamicObject(1231,245.60000610,2978.50000000,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (27) CreateDynamicObject(1231,266.79998779,2978.50000000,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (28) CreateDynamicObject(1231,245.39999390,2959.80004883,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (29) CreateDynamicObject(1231,266.89999390,2962.10009766,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (30) CreateDynamicObject(1231,246.00000000,2992.30004883,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (31) CreateDynamicObject(1231,268.89999390,2993.89990234,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (32) CreateDynamicObject(1231,202.80000305,2998.60009766,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (33) CreateDynamicObject(1231,209.60000610,3046.50000000,8.69999981,0.00000000,0.00000000,85.98999023); //object(streetlamp2) (34) CreateDynamicObject(1231,224.00000000,3046.80004883,8.69999981,0.00000000,0.00000000,351.98999023); //object(streetlamp2) (35) CreateDynamicObject(1231,417.60000610,3028.80004883,9.00000000,0.00000000,0.00000000,351.98547363); //object(streetlamp2) (36) CreateDynamicObject(17068,358.79998779,3144.50000000,0.00000000,0.00000000,0.00000000,180.00000000); //object(xjetty01) (1) CreateDynamicObject(17068,394.20001221,3142.50000000,0.00000000,0.00000000,0.00000000,179.99450684); //object(xjetty01) (2) CreateDynamicObject(17068,221.69999695,3103.50000000,0.00000000,0.00000000,0.00000000,179.99450684); //object(xjetty01) (3) CreateDynamicObject(17068,271.50000000,3102.69995117,0.00000000,0.00000000,0.00000000,179.99450684); //object(xjetty01) (4) CreateDynamicObject(17068,141.00000000,3060.50000000,0.00000000,0.00000000,0.00000000,275.99450684); //object(xjetty01) (5) CreateDynamicObject(17068,126.59999847,3059.00000000,0.00000000,0.00000000,0.00000000,275.99304199); //object(xjetty01) (6) CreateDynamicObject(17068,112.90000153,3057.50000000,0.00000000,0.00000000,0.00000000,275.99304199); //object(xjetty01) (7) CreateDynamicObject(9958,89.09999847,2980.89990234,1.79999995,0.00000000,0.00000000,274.00000000); //object(submarr_sfe) (1) CreateDynamicObject(16112,492.70001221,3086.80004883,-5.00000000,0.00000000,0.00000000,265.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(16112,478.70001221,3100.69995117,0.00000000,0.00000000,0.00000000,265.97351074); //object(des_rockfl1_) (2) CreateDynamicObject(673,507.39999390,3027.60009766,6.09999990,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (1) CreateDynamicObject(673,507.39999390,3046.30004883,6.09999990,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (2) CreateDynamicObject(673,507.20001221,3018.19995117,6.09999990,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (3) CreateDynamicObject(673,507.20001221,3059.19995117,6.09999990,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (4) CreateDynamicObject(673,518.29998779,3058.89990234,6.09999990,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (5) CreateDynamicObject(673,526.90002441,3058.69995117,6.09999990,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (6) CreateDynamicObject(673,518.79998779,3017.39990234,6.09999990,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (7) CreateDynamicObject(673,527.50000000,3018.00000000,6.09999990,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (8) CreateDynamicObject(673,252.60000610,2864.89990234,17.39999962,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (9) CreateDynamicObject(673,272.39999390,2864.39990234,15.39999962,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (10) CreateDynamicObject(673,269.60000610,2875.60009766,12.60000038,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (11) CreateDynamicObject(673,250.50000000,2877.19995117,14.60000038,0.00000000,0.00000000,0.00000000); //object(sm_bevhiltree) (12) CreateDynamicObject(1374,266.60000610,2915.39990234,7.59989977,0.00000000,0.00000000,92.00000000); //object(traincross2) (1) CreateDynamicObject(1374,245.39999390,2915.80004883,7.59999990,0.00000000,0.00000000,271.99951172); //object(traincross2) (2) CreateDynamicObject(4638,255.80000305,2917.10009766,7.69999981,0.00000000,0.00000000,90.00000000); //object(paypark_lan01) (1) CreateDynamicObject(1374,254.80000305,2915.60009766,7.59999990,0.00000000,0.00000000,91.99951172); //object(traincross2) (3) CreateDynamicObject(1374,257.10000610,2915.69995117,7.59989977,0.00000000,0.00000000,271.99951172); //object(traincross2) (4) CreateDynamicObject(8493,65.69999695,3047.19995117,14.00000000,0.00000000,0.00000000,26.00000000); //object(pirtshp01_lvs) (1) return 1; } public OnFilterScriptExit( ) return db_close( Database ); public OnVehicleDeath(vehicleid, killerid) { DestroyObject(GetPVarInt(vehicleid, "neon")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon1")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon2")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon3"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon4"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon5"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon6"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon7"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon8"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon9"));DeletePVar(vehicleid, "Status"); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon28")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon29")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon30")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon31")); return 1; } public OnPlayerConnect( playerid ) { new Query[ 256 ], string[ 128 ], DBResult:Result; format( Query, sizeof( Query ), "SELECT `Key`,`VipLevel` FROM `Vips` WHERE `Nume` = '%s'", PlayerName2( playerid ) ); Result = db_query( Database, Query ); if ( db_num_rows( Result ) ) { new Field[ 30 ]; db_get_field_assoc( Result, "VipLevel", Field, 30 ); P_DATA[ playerid ][ Vip ] = strval( Field ); format( string, sizeof( string ), "\t{005500}Your V.I.P Level:\n\n{FF5500}You have V.I.P level {00FF00}%d\n\n{E60000}Congratulations!", P_DATA[ playerid ][ Vip ] ); ShowPlayerDialog( playerid, ONCONN, DIALOG_STYLE_MSGBOX, "{00FF00}V.I.P", string, "Quit", "" ); } else { ShowPlayerDialog( playerid, ONCONN+1, DIALOG_STYLE_MSGBOX, "{00FF00}V.I.P", "{E60000}This username have V.I.P level 0", "Quit", "" ); } db_free_result( Result ); return 1; } public OnPlayerDisconnect( playerid, reason ) { foreach(Player, i ) { if ( GetPlayerState( i ) == PLAYER_STATE_SPECTATING && P_DATA[ i ][ SpecID ] == playerid ) { AdvanceSpectate( i ); } } return 1; } public OnPlayerDeath( playerid, killerid, reason ) { foreach(Player, i ) { if ( GetPlayerState( i ) == PLAYER_STATE_SPECTATING && P_DATA[ i ][ SpecID ] == playerid ) { AdvanceSpectate( i ); } } return 1; } public OnPlayerInteriorChange( playerid, newinteriorid, oldinteriorid ) { new i = 0; while( i != MAX_PLAYERS ) { if ( IsPlayerConnected( i ) && GetPlayerState( i ) == PLAYER_STATE_SPECTATING && P_DATA[ i ][ SpecID ] == playerid && P_DATA[ i ][ SpecType ] == ADMIN_SPEC_TYPE_PLAYER ) { SetPlayerInterior( i, newinteriorid ); } i++; } } public OnPlayerKeyStateChange( playerid, newkeys, oldkeys ) { if ( GetPlayerState( playerid ) == PLAYER_STATE_SPECTATING && P_DATA[ playerid ][ SpecID ] != INVALID_PLAYER_ID ) { if ( newkeys == KEY_JUMP ) AdvanceSpectate( playerid ); else if ( newkeys == KEY_SPRINT ) ReverseSpectate( playerid ); } return 1; } public OnPlayerEnterVehicle( playerid, vehicleid ) { foreach(Player, i ) { if ( GetPlayerState( i ) == PLAYER_STATE_SPECTATING && P_DATA[ i ][ SpecID ] == playerid ) { TogglePlayerSpectating( i, 1 ); PlayerSpectateVehicle( i, vehicleid ); P_DATA[ i ][ SpecType ] = ADMIN_SPEC_TYPE_VEHICLE; } } return 1; } public OnPlayerStateChange( playerid, newstate, oldstate ) { switch( newstate ) { case PLAYER_STATE_ONFOOT: { switch( oldstate ) { case PLAYER_STATE_DRIVER: OnPlayerExitVehicle( playerid, 255 ); case PLAYER_STATE_PASSENGER: OnPlayerExitVehicle( playerid, 255 ); } } } return 1; } public OnPlayerText( playerid, text[ ] ) { new textstr[ 128 ]; if ( text[ 0 ] == '!' && P_DATA[ playerid ][ Vip ] >= 1 ) { GetPlayerName( playerid, textstr, sizeof( textstr ) ); format( textstr, sizeof( textstr ),"{1234ae}V.I.P Chat: {00FF00}%s{AEC702}: %s", textstr, text[ 1 ] ); SendVipMessage( COLOR_VIP, textstr ); return 0; } return 1; } public OnPlayerExitVehicle( playerid, vehicleid ) { foreach(Player, i ) { if ( GetPlayerState( i ) == PLAYER_STATE_SPECTATING && P_DATA[ i ][ SpecID ] == playerid && P_DATA[ i ][ SpecType ] == ADMIN_SPEC_TYPE_VEHICLE) { TogglePlayerSpectating( i, 1 ); PlayerSpectatePlayer( i, playerid ); P_DATA[ i ][ SpecType ] = ADMIN_SPEC_TYPE_PLAYER; } } return 1; } //================================================================================================================================// //======================================================== [ Commands v1.0 ] =====================================================// CMD:setvip( playerid, params[ ] ) { new giveplayerid, level; new string[ 128 ], Query[ 256 ], DBResult:Resultat; if ( !IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, RED, "Only RCON Administrator can use this command!" ); if ( sscanf( params, "ud", giveplayerid, level ) ) return SendClientMessage( playerid, RED, "USAGE: {FFFF00}/setvip [playerid] [level]" ); if ( giveplayerid == INVALID_PLAYER_ID ) return SendClientMessage( playerid, RED, "Player Is Not Connected!" ); if ( level > 3 ) return SendClientMessage( playerid, RED, "Maximum V.I.P level is 3!" ); if ( level == 0 ) { P_DATA[ giveplayerid ][ Vip ] = level; format( Query, sizeof( Query ), "DELETE FROM `Vips` WHERE `Nume` = '%s'" , PlayerName2( giveplayerid ) ); db_query( Database, Query ); format( string, sizeof( string ), "Administrator %s has deleted you V.I.P account!", PlayerName2( playerid ) ); return SendClientMessage( giveplayerid, ABLUE, string ); } format( Query, sizeof( Query ), "SELECT `Key` FROM `Vips` WHERE `Nume` = '%s'", PlayerName2( playerid ) ); Resultat = db_query( Database, Query ); if ( !db_num_rows( Resultat ) ) { P_DATA[ giveplayerid ][ Vip ] = level; format( string, sizeof( string ), "Administrator %s has set your V.I.P level to %d!", PlayerName2( playerid ), level ); SendClientMessage( giveplayerid, ABLUE, string ); format( Query, sizeof( Query ), "INSERT INTO `Vips` VALUES(NULL,'%s','%d','-1')", PlayerName2( giveplayerid ), level ); db_query( Database, Query ); } else { P_DATA[ giveplayerid ][ Vip ] = level; format( string, sizeof( string ), "Administrator %s has set update your V.I.P level to %d!", PlayerName2( playerid ), level ); SendClientMessage( giveplayerid, ABLUE, string ); format( Query, sizeof( Query ), "UPDATE `Vips` SET `VipLevel` = '%d' WHERE `Nume` = '%s'", level, PlayerName2( giveplayerid ) ); db_query( Database, Query ); } db_free_result( Resultat ); return 1; } CMD:vips( playerid, params[ ] ) { new V, vstr[ 2048 ]; // I put big string to apeear all V.I.Ps foreach(Player, i ) if ( P_DATA[ i ][ Vip ] > 0 ) { format( vstr, 2048, "{10550c}%s\n{1F58A0}V.I.P {00FF00}%s {1F58A0}- Level {00FF00}%d", vstr, ReturnPlayerName( i ), P_DATA[ i ][ Vip ] ); V++; } if ( V == 0 ) { format ( vstr, sizeof( vstr ), "\n{E60000}No V.I.Ps online at the moment!" ); } return ShowPlayerDialog( playerid, VIPS, DIALOG_STYLE_MSGBOX, "{00FF00}Online V.I.Ps:", vstr, "Quit", "" ); } CMD:myweather( playerid, params[ ] ) { new weather, string[ 128 ]; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( sscanf( params, "d", weather ) ) return SendClientMessage( playerid, RED, "USAGE: {FFFF00}/myweather [weatherid]" ); if ( ( weather < 0 ) || ( weather > 52 ) ) return SendClientMessage( playerid, RED, "Only between 0 and 52 weather ids!" ); SetPlayerWeather( playerid, weather ); format( string, sizeof( string ), "You have set your weather to {E60000}%d", weather ); SendClientMessage( playerid, COLOR_VIP, string ); #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/myweather" ); #endif } else { return SendLevel( playerid, 1 ); } return 1; } CMD:mytime( playerid, params[ ] ) { new time, string[ 128 ]; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( sscanf( params, "d", time ) ) return SendClientMessage( playerid, RED, "USAGE: {FFFF00}/mytime [time]" ); if ( ( time < 0 ) || ( time > 24 ) ) return SendClientMessage( playerid, RED, "Only between 0 and 24 hours you can set your time!" ); SetPlayerTime( playerid, time, 0 ); format( string, sizeof( string ), "You have set your time to {E60000}%d", time ); SendClientMessage( playerid, COLOR_VIP, string ); #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/mytime" ); #endif } else { return SendLevel( playerid, 1 ); } return 1; } CMD:vasay( playerid, params[ ] ) { new VipMessage[ 180 ]; if ( P_DATA[ playerid ][ Vip ] >= 2 ) { if ( sscanf( params, "s[ 120 ]", VipMessage ) ) return SendClientMessage( playerid, RED, "USAGE: {FFFF00}/vasay [text]" ); format( VipMessage, sizeof( VipMessage ), "V.I.P - %s {FFFF00}(lvl: %d): {00FF00}%s", PlayerName2( playerid ), P_DATA[ playerid ][ Vip ], VipMessage ); SendClientMessageToAll( COLOR_VIP, VipMessage ); #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/vasay" ); #endif } else { return SendLevel( playerid, 2 ); } return 1; } CMD:vcmds( playerid, params[ ] ) { new string[ 1024 ]; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { strcat( string, "{ABCDEF}V.I.P {F0FF00}Sys{004802}tem {FF0000}By {FFFFFF}KING{0000FF}INA{AA00BE}, Have Fun! \n" ); strcat( string, "{FF5500}V.I.P Level {F0FF00}1 {005500}Commands: /mytime /myweather /vcmds /vips /neon \n" ); strcat( string, "{FF5500}V.I.P Level {00FF00}2 {005500}Commands: /vipgoto /vasay /ltc[1 - 13] /jetpack \n" ); strcat( string, "{FF5500}V.I.P Level {00FF0F}3 {005500}Commands: /vannounce /vipisland /godcar /vipgod \n" ); strcat( string, "{FF5500}Use simbol {00FF00}! {005500}in front of your text to speak in V.I.P Chat\n" ); ShowPlayerDialog( playerid, VIPCMDS, DIALOG_STYLE_MSGBOX, "V.I.P Commands:", string, "Quit", "" ); #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/vcmds" ); #endif } else { return SendLevel( playerid, 1 ); } return 1; } //================================================================================================================================// //===================================================== [ Comenzi v2.0 ] =========================================================// CMD:vipgod( playerid, params[ ] ) { if ( P_DATA[ playerid ][ Vip ] >= 3 ) { if ( P_DATA[ playerid ][ God ] == 1 ) { P_DATA[ playerid ][ God ] = 1; SendClientMessage( playerid, COLOR_VIP, "You have activated the V.I.P {00FF00}God Mode!" ); #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/vipgod" ); #endif } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/vipgod" ); #endif P_DATA[ playerid ][ God ] = 0; } } else { return SendLevel( playerid, 3 ); } return 1; } CMD:godcar( playerid, params[ ] ) { if ( P_DATA[ playerid ][ Vip ] >= 3 ) { if ( P_DATA[ playerid ][ CarGod ] == 1 ) { P_DATA[ playerid ][ CarGod ] = 1; SendClientMessage( playerid, COLOR_VIP, "You have activated the Vehicle {00FF00}God Mode!" ); #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/GodCar" ); #endif } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/GodCar" ); #endif P_DATA[ playerid ][ CarGod ] = 0; } } else { return SendLevel( playerid, 3 ); } return 1; } CMD:ltc1( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, VehiclulRt; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED, "ERROR: You already have a vehicle" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc1" ); #endif GetPlayerPos( playerid, x, y, z); GetPlayerFacingAngle( playerid, Angle ); VehiclulRt = CreateVehicle( 560, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, VehiclulRt, 0); AddVehicleComponent( VehiclulRt, 1028 ); AddVehicleComponent( VehiclulRt, 1030 ); AddVehicleComponent( VehiclulRt, 1031 ); AddVehicleComponent( VehiclulRt, 1138 ); AddVehicleComponent(VehiclulRt, 1140); AddVehicleComponent(VehiclulRt, 1170); AddVehicleComponent( VehiclulRt, 1028 ); AddVehicleComponent( VehiclulRt, 1030 ); AddVehicleComponent( VehiclulRt, 1031 ); AddVehicleComponent( VehiclulRt, 1138 ); AddVehicleComponent(VehiclulRt, 1140); AddVehicleComponent(VehiclulRt, 1170); AddVehicleComponent( VehiclulRt, 1080 ); AddVehicleComponent( VehiclulRt, 1086 ); AddVehicleComponent( VehiclulRt, 1087 ); AddVehicleComponent( VehiclulRt, 1010 ); PlayerPlaySound( playerid, 1133, 0.0, 0.0, 0.0 ); ChangeVehiclePaintjob( VehiclulRt, 0 ); SetVehicleVirtualWorld( VehiclulRt, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( VehiclulRt, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc2( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, VehiclulRt; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED, "ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc2" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); VehiclulRt = CreateVehicle( 560, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, VehiclulRt, 0 ); AddVehicleComponent( VehiclulRt, 1028 ); AddVehicleComponent( VehiclulRt, 1030 ); AddVehicleComponent( VehiclulRt, 1031 ); AddVehicleComponent( VehiclulRt, 1138 ); AddVehicleComponent( VehiclulRt, 1140 ); AddVehicleComponent( VehiclulRt, 1170 ); AddVehicleComponent( VehiclulRt, 1028 ); AddVehicleComponent( VehiclulRt, 1030 ); AddVehicleComponent( VehiclulRt, 1031 ); AddVehicleComponent( VehiclulRt, 1138 ); AddVehicleComponent( VehiclulRt, 1140 ); AddVehicleComponent( VehiclulRt, 1170 ); AddVehicleComponent( VehiclulRt, 1080 ); AddVehicleComponent( VehiclulRt, 1086 ); AddVehicleComponent( VehiclulRt, 1087 ); AddVehicleComponent( VehiclulRt, 1010 ); PlayerPlaySound( playerid, 1133, 0.0, 0.0, 0.0 ); ChangeVehiclePaintjob( VehiclulRt, 1 ); SetVehicleVirtualWorld( VehiclulRt, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( VehiclulRt, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc3( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, VehiclulRt; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED, "ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc3" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); VehiclulRt = CreateVehicle( 560, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, VehiclulRt, 0 ); AddVehicleComponent( VehiclulRt, 1028 ); AddVehicleComponent( VehiclulRt, 1138 ); AddVehicleComponent( VehiclulRt, 1170 ); AddVehicleComponent( VehiclulRt, 1030 ); AddVehicleComponent( VehiclulRt, 1031 ); AddVehicleComponent( VehiclulRt, 1140 ); AddVehicleComponent( VehiclulRt, 1080 ); AddVehicleComponent( VehiclulRt, 1086 ); AddVehicleComponent( VehiclulRt, 1087 ); AddVehicleComponent( VehiclulRt, 1010 ); PlayerPlaySound( playerid, 1133, 0.0, 0.0, 0.0 ); ChangeVehiclePaintjob( VehiclulRt, 2 ); SetVehicleVirtualWorld( VehiclulRt, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( VehiclulRt, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc4( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, carid; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED, "ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc4" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); carid = CreateVehicle( 559, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, carid, 0 ); AddVehicleComponent( carid, 1065 ); AddVehicleComponent( carid, 1067 ); AddVehicleComponent( carid, 1073 ); AddVehicleComponent( carid, 1162 ); AddVehicleComponent( carid, 1010 ); ChangeVehiclePaintjob( carid, 1 ); SetVehicleVirtualWorld( carid, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( carid, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc5( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, carid; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED, "ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc5" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); carid = CreateVehicle( 565, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, carid, 0 ); AddVehicleComponent( carid, 1046 ); AddVehicleComponent( carid, 1049 ); AddVehicleComponent( carid, 1073 ); AddVehicleComponent( carid, 1053 ); AddVehicleComponent( carid, 1010 ); ChangeVehiclePaintjob( carid, 1 ); SetVehicleVirtualWorld( carid, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( carid, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc6( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, carid; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED, "ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc6" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); carid = CreateVehicle( 558, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, carid, 0 ); AddVehicleComponent( carid, 1088 ); AddVehicleComponent( carid, 1092 ); AddVehicleComponent( carid, 1073 ); AddVehicleComponent( carid, 1139 ); AddVehicleComponent( carid, 1010 ); ChangeVehiclePaintjob( carid, 1 ); SetVehicleVirtualWorld( carid, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( carid, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc7( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, carid; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED, "ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc7" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); carid = CreateVehicle( 561, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, carid, 0 ); AddVehicleComponent( carid, 1055 ); AddVehicleComponent( carid, 1058 ); AddVehicleComponent( carid, 1073 ); AddVehicleComponent( carid, 1064 ); AddVehicleComponent( carid, 1010 ); ChangeVehiclePaintjob( carid, 1 ); SetVehicleVirtualWorld( carid, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( carid, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc8( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, carid; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED, "ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc8" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); carid = CreateVehicle( 562, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, carid, 0 ); AddVehicleComponent( carid, 1034 ); AddVehicleComponent( carid, 1038 ); AddVehicleComponent( carid, 1073 ); AddVehicleComponent( carid, 1147 ); AddVehicleComponent( carid, 1010 ); ChangeVehiclePaintjob( carid, 1 ); SetVehicleVirtualWorld( carid, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( carid, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc9( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, carid; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED, "ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc9" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); carid = CreateVehicle( 567, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, carid, 0 ); AddVehicleComponent( carid, 1102 ); AddVehicleComponent( carid, 1129 ); AddVehicleComponent( carid, 1188 ); AddVehicleComponent( carid, 1087 ); AddVehicleComponent( carid, 1086 ); AddVehicleComponent( carid, 1133 ); AddVehicleComponent( carid, 1186 ); AddVehicleComponent( carid, 1010 ); AddVehicleComponent( carid, 1085 ); ChangeVehiclePaintjob( carid, 1 ); SetVehicleVirtualWorld( carid, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( carid, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc10( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, carid; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED,"ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc10" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); carid = CreateVehicle( 558, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, carid, 0 ); AddVehicleComponent( carid, 1092 ); AddVehicleComponent( carid, 1166 ); AddVehicleComponent( carid, 1165 ); AddVehicleComponent( carid, 1090 ); AddVehicleComponent( carid, 1094 ); AddVehicleComponent( carid, 1010 ); AddVehicleComponent( carid, 1087 ); AddVehicleComponent( carid, 1163 ); AddVehicleComponent( carid, 1091 ); ChangeVehiclePaintjob( carid, 2 ); SetVehicleVirtualWorld( carid, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( carid, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc11( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, carid; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED,"ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc11" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); carid = CreateVehicle( 557, x, y, z, Angle, 1, 1, -1 ); PutPlayerInVehicle( playerid, carid, 0 ); AddVehicleComponent( carid, 1010 ); AddVehicleComponent( carid, 1081 ); SetVehicleVirtualWorld( carid, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( carid, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc12( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, carid; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED,"ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc12" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); carid = CreateVehicle( 535, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, carid, 0 ); ChangeVehiclePaintjob( carid, 1 ); AddVehicleComponent( carid, 1109 ); AddVehicleComponent( carid, 1115 ); AddVehicleComponent( carid, 1117 ); AddVehicleComponent( carid, 1073 ); AddVehicleComponent( carid, 1010 ); AddVehicleComponent( carid, 1087 ); AddVehicleComponent( carid, 1114 ); AddVehicleComponent( carid, 1081 ); AddVehicleComponent( carid, 1119 ); AddVehicleComponent( carid, 1121 ); SetVehicleVirtualWorld( carid, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( carid, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:ltc13( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, carid; if ( P_DATA[ playerid ][ Vip ] >= 1 ) { if ( IsPlayerInAnyVehicle( playerid ) ) { SendClientMessage( playerid, RED,"ERROR: You already have a vehicle!" ); } else { #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc13" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); carid = CreateVehicle( 562, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, carid, 0 ); AddVehicleComponent( carid, 1034 ); AddVehicleComponent( carid, 1038 ); AddVehicleComponent( carid, 1147 ); AddVehicleComponent( carid, 1010 ); AddVehicleComponent( carid, 1073 ); ChangeVehiclePaintjob( carid, 0 ); SetVehicleVirtualWorld( carid, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( carid, GetPlayerInterior( playerid ) ); } } else { return SendLevel( playerid, 1 ); } return 1; } CMD:vannounce( playerid, params[ ] ) { if ( P_DATA[ playerid ][ Vip ] == 3 ) { if ( sscanf( params, "s[128]", params[ 0 ] ) ) return SendClientMessage( playerid, RED, "USAGE: {FFFF00}/vannounce [playerid]" ); GameTextForAll( params[ 0 ], 6000, 1 ); #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/vannounce" ); #endif } else { return SendLevel( playerid, 3 ); } return 1; } CMD:neon(playerid, params[]) { if ( P_DATA[ playerid ][ Vip ] >= 1 ) { SendClientMessage(playerid, Zuta,"Commands:"); SendClientMessage(playerid, Plava,"Type: {FF00FF}/NeonViolet, {FFFFFF}/NeonWhite, {0000FF}/NeonBlue, {ACFA58}/NeonLime,"); SendClientMessage(playerid, Plava,"{00FF00}/NeonGreen, {FF0000}/NeonRed, {FE9A2E}/NeonOrange {FFFFFF}/NeonRemove - removes neon from your car"); #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/Neon" ); #endif } else { return SendLevel( playerid, 1 ); } return 1; } CMD:neonorange(playerid, params[]) { if ( P_DATA[ playerid ][ Vip ] >= 1 ) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon24", CreateObject(18647,0,0,0,0,0,0)); SetPVarInt(playerid, "neon25", CreateObject(18647,0,0,0,0,0,0)); SetPVarInt(playerid, "neon26", CreateObject(18650,0,0,0,0,0,0)); SetPVarInt(playerid, "neon27", CreateObject(18650,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon24"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon25"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon26"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon27"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); } else { return SendLevel( playerid, 1 ); } return 1; } CMD:neonred(playerid, params[]) { if ( P_DATA[ playerid ][ Vip ] >= 1 ) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0)); SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed"); } else { return SendLevel( playerid, 1 ); } return 1; } CMD:neongreen(playerid, params[]) { if ( P_DATA[ playerid ][ Vip ] >= 1 ) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0)); SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed"); } else { return SendLevel( playerid, 1 ); } return 1; } CMD:neonlime(playerid, params[]) { if ( P_DATA[ playerid ][ Vip ] >= 1 ) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon28", CreateObject(18649,0,0,0,0,0,0)); SetPVarInt(playerid, "neon29", CreateObject(18649,0,0,0,0,0,0)); SetPVarInt(playerid, "neon30", CreateObject(18652,0,0,0,0,0,0)); SetPVarInt(playerid, "neon31", CreateObject(18652,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon28"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon29"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon30"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon31"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed"); } else { return SendLevel( playerid, 1 ); } return 1; } CMD:neonblue(playerid, params[]) { if ( P_DATA[ playerid ][ Vip ] >= 1 ) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0)); SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed"); } else { return SendLevel( playerid, 1 ); } return 1; } CMD:neonwhite(playerid, params[]) { if ( P_DATA[ playerid ][ Vip ] >= 1 ) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0)); SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed"); } else { return SendLevel( playerid, 1 ); } return 1; } CMD:neonviolet(playerid, params[]) { if ( P_DATA[ playerid ][ Vip ] >= 1 ) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0)); SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed"); } else { return SendLevel( playerid, 1 ); } return 1; } CMD:neonremove(playerid, params[]) { if ( P_DATA[ playerid ][ Vip ] >= 1 ) { DestroyObject(GetPVarInt(playerid, "neon")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon2")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon3"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon4"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon5"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon6"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon7"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon8"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon9"));DeletePVar(playerid, "Status"); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon24")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon25")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon26")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon27")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon28")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon29")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon30")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon31")); SendClientMessage(playerid, 0xFFFFFFAA, "Neon removed"); } else { return SendLevel( playerid, 1 ); } return 1; } CMD:vipisland( playerid, params[ ] ) { if ( P_DATA[ playerid ][ Vip ] >= 1 ) { SetPlayerPos( playerid, 255.6181, 2913.4609, 6.9688); RemovePlayerFromVehicle( playerid ); #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/VipIsland" ); #endif SendClientMessage( playerid, COLOR_VIP, "You have teleported to V.I.P. Island, try to find a nice house for yourselfe!" ); } else { return SendLevel( playerid, 1 ); } return 1; } //================================================================================================================================// //====================================================== [ public's ] ============================================================// Public: SendLevel( playerid, level ) { if ( level == 1 ) return SendClientMessage( playerid, RED, "ERROR: You need to be V.I.P Level 1 or bigest to use this command!" ); if ( level == 2 ) return SendClientMessage( playerid, RED, "ERROR: You need to be V.I.P Level 2 or bigest to use this command!" ); if ( level == 3 ) return SendClientMessage( playerid, RED, "ERROR: You need to be V.I.P Level 3 to use this command!" ); return 1; } Public: SendVipMessage( color, const string[ ] ) { foreach(Player, i ) { if ( P_DATA[ i ][ Vip ] >= 1 ) { SendClientMessage( i, color, string ); } } return 1; } Public: ReturnPosition( playerid ) { SetPlayerPos( playerid, Position[ playerid ][ 0 ], Position[ playerid ][ 1 ], Position[ playerid ][ 2 ] ); SetPlayerFacingAngle( playerid, Position[ playerid ][ 3 ] ); } Public: GodUpdate( ) { foreach(Player, i ) { if ( P_DATA[ i ][ God ] == 1 ) { SetPlayerHealth( i, 100000 ); } if ( P_DATA[ i ][ CarGod ] == 1 && IsPlayerInAnyVehicle( i ) ) { SetVehicleHealth( GetPlayerVehicleID( i ), 10000 ); } } } //======================================================== [ Stocks ] ============================================================// stock PlayerName2( i ){ new n[ 24 ]; GetPlayerName( i, n, 24 ); return n; } stock ReturnPlayerName( id ) { new tehname[ MAX_PLAYER_NAME ]; GetPlayerName( id, tehname, sizeof( tehname ) ); return tehname; } stock SpectatePlayer( playerid, PID ) { new string[ 100 ], Float:health, Float:armour; for(new i = 0; i < MAX_PLAYERS; i++ ) { if ( GetPlayerState( i ) == PLAYER_STATE_SPECTATING && P_DATA[ i ][ SpecID ] == playerid ) { AdvanceSpectate( i ); } } SetPlayerInterior( playerid, GetPlayerInterior( PID ) ); TogglePlayerSpectating( playerid, 1 ); if ( IsPlayerInAnyVehicle( PID ) ) { PlayerSpectateVehicle( playerid, GetPlayerVehicleID( PID ) ); P_DATA[ playerid ][ SpecID ] = PID; P_DATA[ playerid ][ SpecType ] = ADMIN_SPEC_TYPE_VEHICLE; } else { PlayerSpectatePlayer( playerid, PID ); P_DATA[ playerid ][ SpecID ] = PID; P_DATA[ playerid ][ SpecType ] = ADMIN_SPEC_TYPE_PLAYER; } GetPlayerName( PID, string, sizeof( string ) ); GetPlayerHealth( PID, health ); GetPlayerArmour( PID, armour ); format( string, sizeof( string ),"~n~~n~~n~~n~~n~~n~~n~n~~w~%s - id:%d~n~< sprint - jump >~n~~r~Health:%0.1f ~b~Armour:%0.1f~n~~g~$%d~n~~g~%d", string, PID, health, armour, GetPlayerMoney( PID ), GetPlayerScore( PID ) ); GameTextForPlayer( playerid, string, 25000, 3 ); return 1; } stock StopSpectate( playerid ) { TogglePlayerSpectating( playerid, 0 ); P_DATA[ playerid ][ SpecID ] = INVALID_PLAYER_ID; P_DATA[ playerid ][ SpecType ] = ADMIN_SPEC_TYPE_NONE; GameTextForPlayer( playerid,"~n~~n~~n~~w~Spectate mode ended", 1000, 3 ); return 1; } stock AdvanceSpectate( playerid ) { if ( ConnectedPlayers( ) == 2 ) { StopSpectate( playerid ); return 1; } if ( GetPlayerState( playerid ) == PLAYER_STATE_SPECTATING && P_DATA[ playerid ][ SpecID ] != INVALID_PLAYER_ID ) { for ( new i = P_DATA[ playerid ][ SpecID] +1; i <= MAX_PLAYERS; i++ ) { if ( i == MAX_PLAYERS ) i = 0; if ( IsPlayerConnected( i ) && i != playerid ) { if ( GetPlayerState( i ) == PLAYER_STATE_SPECTATING && P_DATA[ i ][ SpecID ] != INVALID_PLAYER_ID || ( GetPlayerState( i ) != 1 && GetPlayerState( i ) != 2 && GetPlayerState( i ) != 3 ) ) { continue; } else { SpectatePlayer( playerid, i ); break; } } } } return 1; } stock ConnectedPlayers( ) { new Connected; foreach(Player, i ) Connected++; return Connected; } stock Send2Clients( playerid, Client1[ ], Client2[ ] ) { new Str[ 256 ]; format( Str, sizeof( Str ), "Usage: {FFFF00} %s", Client1 ); SendClientMessage( playerid, RED, Str ); format( Str, sizeof( Str ), "Colours: {00FF00} %s", Client2 ); SendClientMessage( playerid, RED, Str ); return 1; } #if defined VIPS_SEND_COMMAND stock SendVipsCommand( playerid, cmdtext[ ] ) { new str[ 128 ]; format( str, sizeof( str ),"[V.I.P] {00FF00}%s(%d) {FF5500}has used command {00FF00}%s", PlayerName2( playerid ), playerid, cmdtext ); return SendVipMessage( COLOR_VIP, str ); } #endif stock ReverseSpectate( playerid ) { if ( ConnectedPlayers( ) == 2 ) { StopSpectate( playerid ); return 1; } if ( GetPlayerState( playerid ) == PLAYER_STATE_SPECTATING && P_DATA[ playerid ][ SpecID ] != INVALID_PLAYER_ID ) { for ( new i = P_DATA[ playerid ][ SpecID ]-1; i >= 0; i-- ) { if ( i == 0 ) i = MAX_PLAYERS; if ( IsPlayerConnected( i ) && i != playerid ) { if ( GetPlayerState( i ) == PLAYER_STATE_SPECTATING && P_DATA[ i ][ SpecID ] != INVALID_PLAYER_ID || ( GetPlayerState( i ) != 1 && GetPlayerState( i ) != 2 && GetPlayerState( i ) != 3 ) ) { continue; } else { SpectatePlayer( playerid, i ); break; } } } } return 1; } stock SendPlayerMaxAmmo( playerid ) { new slot, weap, ammo; for ( slot = 0; slot < 14; slot++ ) { GetPlayerWeaponData( playerid, slot, weap, ammo ); if ( IsValidWeapon( weap ) ) { GivePlayerWeapon( playerid, weap, 99999 ); } } return 1; } stock IsValidWeapon( weaponid ) { if ( weaponid > 0 && weaponid < 19 || weaponid > 21 && weaponid < 47 ) return 1; return 0; } //============================================================ [ EOF ] ===========================================================//