Jump to content

Saringan_cs

Membru
  • Posts

    45
  • Joined

  • Last visited

    Never

Everything posted by Saringan_cs

  1. GG!!! Foarte Frumosa mapa ! :cool:! 5/5
  2. Acoperisu se numeste :: CARRIER_LIFT1_SFSE ceva de genu
  3. Este Prima mea Mapa Postata pe Sa-Mp.ro Timp De Lucru :vreo 3 H Imagini: http://imageshack.us/g/838/samp089i.png/ Cod!!! [pawn]CreateObject(3115, 1002.3994140625, -919.099609375, 45.900001525879, 0, 0, 7.9925537109375); CreateObject(3115, 1004.69921875, -936.099609375, 46.900001525879, 0, 0, 7.987060546875); CreateObject(14394, 1004, -925.8994140625, 46.5, 0, 0, 277.998046875); CreateObject(3524, 999.20001220703, -953.59997558594, 43.900001525879, 0, 0, 0); CreateObject(5130, 1005.2998046875, -951.5, 44.099998474121, 0, 0, 231.49841308594); CreateObject(3524, 1011.5999755859, -952.40002441406, 43.900001525879, 0, 0, 0); CreateObject(3524, 1006.2998046875, -945.19921875, 50.099998474121, 0, 0, 0); CreateObject(3524, 1002.8994140625, -945.69921875, 50.099998474121, 0, 0, 10); CreateObject(1419, 1008.4000244141, -945, 47.799999237061, 0, 0, 8); CreateObject(1419, 1012.200012207, -944.5, 47.799999237061, 0, 0, 7.998046875); CreateObject(1419, 1016.0999755859, -941.70001220703, 47.799999237061, 0, 0, 98.748046875); CreateObject(1419, 1014.299987793, -944, 47.799999237061, 0, 0, 7.998046875); CreateObject(1419, 1015.5999755859, -937.79998779297, 47.799999237061, 0, 0, 98.7451171875); CreateObject(1419, 1015, -933.79998779297, 47.799999237061, 0, 0, 98.7451171875); CreateObject(1419, 1014.4000244141, -929.79998779297, 47.799999237061, 0, 0, 98.7451171875); CreateObject(1419, 1014.0999755859, -927.40002441406, 47.799999237061, 0, 0, 98.2451171875); CreateObject(1419, 993.19921875, -930.2998046875, 47.799999237061, 0, 0, 278.73413085938); CreateObject(1419, 993.79998779297, -934.29998779297, 47.799999237061, 0, 0, 278.23413085938); CreateObject(1419, 994.40002441406, -938.29998779297, 47.799999237061, 0, 0, 277.98413085938); CreateObject(1419, 994.90002441406, -942.09997558594, 47.799999237061, 0, 0, 278.48413085938); CreateObject(1419, 995.2998046875, -944.7998046875, 47.799999237061, 0, 0, 278.47595214844); CreateObject(1419, 997.59997558594, -946.5, 47.799999237061, 0, 0, 7.4759521484375); CreateObject(1419, 1001, -946.09997558594, 47.799999237061, 0, 0, 7.470703125); CreateObject(16151, 1013.700012207, -933, 47.200000762939, 0, 0, 9); CreateObject(1809, 1014, -930.70001220703, 48.700000762939, 0, 0, 279.75); CreateObject(1839, 1012.799987793, -926.09997558594, 47.200000762939, 0, 0, 40.75); CreateObject(1839, 1012.799987793, -926.09997558594, 47.700000762939, 0, 0, 40.748291015625); CreateObject(1840, 1013.0999755859, -935.20001220703, 47.799999237061, 0, 0, 0); CreateObject(1840, 1012.4000244141, -930.79998779297, 47.799999237061, 0, 0, 2); CreateObject(2028, 1012.4000244141, -930.79998779297, 48.299999237061, 0, 0, 7.5); CreateObject(2099, 1015.9000244141, -943, 47.200000762939, 0, 0, 244); CreateObject(2099, 993.5, -929, 47.200000762939, 0, 0, 65.995361328125); CreateObject(2100, 996.20001220703, -946.40002441406, 47.200000762939, 0, 0, 142); CreateObject(2103, 998, -945.79998779297, 47.200000762939, 0, 0, 0); CreateObject(2104, 1006.0999755859, -945, 47.200000762939, 0, 0, 188); CreateObject(2104, 1002.700012207, -945.59997558594, 47.200000762939, 0, 0, 187.998046875); CreateObject(2232, 1015.0999755859, -941.59997558594, 47.799999237061, 0, 0, 248.75); CreateObject(2232, 1013.0999755859, -927.09997558594, 47.799999237061, 0, 0, 286.74694824219); CreateObject(2233, 995, -928.09997558594, 47.200000762939, 0, 0, 44); CreateObject(2233, 993.79998779297, -929.5, 47.200000762939, 0, 0, 43.994750976563); CreateObject(2233, 996, -945.79998779297, 47.200000762939, 0, 0, 143.99475097656); CreateObject(2229, 1000.299987793, -927.20001220703, 47.200000762939, 0, 0, 8.75); CreateObject(2229, 1008.5999755859, -926.09997558594, 47.200000762939, 0, 0, 8.7451171875); CreateObject(2230, 993.79998779297, -930.20001220703, 47.200000762939, 0, 0, 50); CreateObject(2227, 1014.5, -943.70001220703, 47.200000762939, 0, 0, 242); CreateObject(2226, 1006.299987793, -944.70001220703, 48.5, 0, 0, 189.5); CreateObject(2226, 1002.9000244141, -945.20001220703, 48.5, 0, 0, 189.49768066406); CreateObject(2224, 1012.799987793, -935.40002441406, 47.799999237061, 0, 0, 232.5); CreateObject(1649, 1009.299987793, -908.70001220703, 47.799999237061, 0, 0, 188.24523925781); CreateObject(1649, 1005, -909.29998779297, 47.799999237061, 0, 0, 188.23974609375); CreateObject(1649, 1000.700012207, -909.90002441406, 47.799999237061, 0, 0, 9.23974609375); CreateObject(1649, 996.40002441406, -910.5, 47.799999237061, 0, 0, 188.23974609375); CreateObject(1649, 992.90002441406, -911, 47.799999237061, 0, 0, 188.23974609375); CreateObject(1649, 1009.2998046875, -908.69921875, 47.799999237061, 0, 0, 9.239501953125); CreateObject(1649, 1005, -909.2998046875, 47.799999237061, 0, 0, 6.4874267578125); CreateObject(1649, 1000.69921875, -909.8994140625, 47.799999237061, 0, 0, 188.23425292969); CreateObject(1649, 996.3994140625, -910.5, 47.799999237061, 0, 0, 6.23974609375); CreateObject(1649, 992.90002441406, -911, 47.799999237061, 0, 0, 8.23974609375); CreateObject(1649, 992.90002441406, -911, 51.099998474121, 0, 0, 8.23974609375); CreateObject(1649, 1000.700012207, -909.90002441406, 51.099998474121, 0, 0, 9.239501953125); CreateObject(1649, 1005, -909.29998779297, 51.099998474121, 0, 0, 6.9874267578125); CreateObject(1649, 1009.2998046875, -908.69921875, 51.099998474121, 0, 0, 9.2340087890625); CreateObject(1649, 996.40002441406, -910.5, 51.099998474121, 0, 0, 6.4847412109375); CreateObject(1649, 992.90002441406, -911, 51.099998474121, 0, 0, 188.23974609375); CreateObject(1649, 996.40002441406, -910.5, 51.099998474121, 0, 0, 188.23974609375); CreateObject(1649, 1000.700012207, -909.90002441406, 51.099998474121, 0, 0, 188.23425292969); CreateObject(1649, 1005, -909.29998779297, 51.099998474121, 0, 0, 188.23974609375); CreateObject(1649, 1009.299987793, -908.70001220703, 51.099998474121, 0, 0, 188.23974609375); CreateObject(1649, 991, -913.5, 47.799999237061, 0, 0, 278.23974609375); CreateObject(1649, 991.59997558594, -917.79998779297, 47.799999237061, 0, 0, 277.73425292969); CreateObject(1649, 992.20001220703, -922.09997558594, 47.799999237061, 0, 0, 277.97888183594); CreateObject(1649, 992.79998779297, -926.40002441406, 47.799999237061, 0, 0, 278.22607421875); CreateObject(1649, 992.7998046875, -926.3994140625, 47.799999237061, 0, 0, 96.718139648438); CreateObject(1649, 992.20001220703, -922.09997558594, 47.799999237061, 0, 0, 97.97607421875); CreateObject(1649, 991.599609375, -917.7998046875, 47.799999237061, 0, 0, 97.728881835938); CreateObject(1649, 991, -913.5, 47.799999237061, 0, 0, 97.484252929688); CreateObject(1649, 991, -913.5, 51.099998474121, 0, 0, 97.481689453125); CreateObject(1649, 991.59997558594, -917.79998779297, 51.099998474121, 0, 0, 277.72888183594); CreateObject(1649, 992.20001220703, -922.09997558594, 51.099998474121, 0, 0, 97.97607421875); CreateObject(1649, 992.79998779297, -926.40002441406, 51.099998474121, 0, 0, 96.718139648438); CreateObject(1649, 991, -913.5, 51.099998474121, 0, 0, 278.23425292969); CreateObject(1649, 992.7998046875, -926.3994140625, 51.099998474121, 0, 0, 278.2177734375); CreateObject(1649, 992.19921875, -922.099609375, 51.099998474121, 0, 0, 277.97607421875); CreateObject(1649, 991.599609375, -917.7998046875, 51.099998474121, 0, 0, 97.728881835938); CreateObject(1649, 1011.7998046875, -910.5, 47.799999237061, 0, 0, 97.987060546875); CreateObject(1649, 1011.7998046875, -910.5, 47.799999237061, 0, 0, 277.98706054688); CreateObject(1649, 1011.799987793, -910.5, 51.099998474121, 0, 0, 97.987060546875); CreateObject(1649, 1011.7998046875, -910.5, 51.099998474121, 0, 0, 277.98706054688); CreateObject(1649, 1013.5999755859, -923.09997558594, 47.799999237061, 0, 0, 98.976440429688); CreateObject(1649, 1013.5999755859, -923.09997558594, 51.099998474121, 0, 0, 98.476440429688); CreateObject(1649, 1012.9000244141, -918.79998779297, 51.099998474121, 0, 0, 98.476440429688); CreateObject(14387, 1014.299987793, -918.5, 45.299999237061, 0, 0, 8); CreateObject(14387, 1014, -916.2998046875, 45.299999237061, 0, 0, 7.9925537109375); CreateObject(1649, 1012, -912, 47.799999237061, 0, 0, 97.987060546875); CreateObject(1649, 1012, -912, 47.799999237061, 0, 0, 277.48706054688); CreateObject(1649, 1012, -912, 51.099998474121, 0, 0, 97.987060546875); CreateObject(1649, 1012, -912, 51.099998474121, 0, 0, 277.48168945313); CreateObject(1649, 1012.4000244141, -914.79998779297, 51.099998474121, 0, 0, 97.237060546875); CreateObject(1649, 1012.3994140625, -914.7998046875, 51.099998474121, 0, 0, 275.98706054688); CreateObject(9833, 1018.799987793, -917.40002441406, 48.700000762939, 0, 0, 6); CreateObject(1419, 1014.0999755859, -928.29998779297, 46.200000762939, 0, 0, 187.73962402344); CreateObject(1419, 1015.700012207, -926.09997558594, 46.200000762939, 0, 0, 97.734375); CreateObject(1419, 1015.5, -924.59997558594, 46.200000762939, 0, 0, 97.734375); CreateObject(1419, 1017.299987793, -922.29998779297, 46.200000762939, 0, 0, 187.734375); CreateObject(1419, 1019.4000244141, -922, 46.200000762939, 0, 0, 187.734375); CreateObject(1419, 1021.200012207, -919.79998779297, 46.200000762939, 0, 0, 96.984375); CreateObject(1419, 1020.5999755859, -915.79998779297, 46.200000762939, 0, 0, 96.981811523438); CreateObject(1419, 1020.5, -914.79998779297, 46.200000762939, 0, 0, 96.981811523438); CreateObject(1419, 1018.299987793, -913, 46.200000762939, 0, 0, 187.48181152344); CreateObject(1419, 1016, -913.29998779297, 46.200000762939, 0, 0, 187.48168945313); CreateObject(1419, 1013.700012207, -911.59997558594, 46.200000762939, 0, 0, 97.231689453125); CreateObject(1419, 1013.5, -910.09997558594, 46.200000762939, 0, 0, 97.22900390625); CreateObject(1419, 1011.299987793, -908.29998779297, 46.200000762939, 0, 0, 188.48168945313); CreateObject(9833, 1018.799987793, -917.40002441406, 43.700000762939, 0, 0, 5.99853515625); CreateObject(3037, 1015.0999755859, -913.59997558594, 43.400001525879, 0, 0, 278); CreateObject(3037, 1016.299987793, -922.29998779297, 43.400001525879, 0, 0, 277.998046875); CreateObject(1649, 995.20001220703, -928.29998779297, 47.799999237061, 0, 0, 188.71813964844); CreateObject(1649, 995.20001220703, -928.29998779297, 51.099998474121, 0, 0, 188.71765136719); CreateObject(1649, 995.19921875, -928.2998046875, 51.099998474121, 0, 0, 6.7176513671875); CreateObject(1649, 995.20001220703, -928.29998779297, 47.799999237061, 0, 0, 6.7176513671875); CreateObject(1649, 998.09997558594, -927.90002441406, 47.799999237061, 0, 0, 188.71765136719); CreateObject(1649, 998.09997558594, -927.90002441406, 51.099998474121, 0, 0, 188.71765136719); CreateObject(1649, 998.099609375, -927.8994140625, 51.099998474121, 0, 0, 6.7176513671875); CreateObject(1649, 998.09997558594, -927.90002441406, 47.799999237061, 0, 0, 6.712646484375); CreateObject(1649, 1011.799987793, -925.59997558594, 47.799999237061, 0, 0, 188.46765136719); CreateObject(1649, 1011.799987793, -925.59997558594, 51.099998474121, 0, 0, 188.46496582031); CreateObject(1649, 1011.7998046875, -925.599609375, 47.799999237061, 0, 0, 8.4649658203125); CreateObject(1649, 1011.7998046875, -925.599609375, 51.099998474121, 0, 0, 8.4649658203125); CreateObject(1649, 1010.299987793, -925.90002441406, 47.799999237061, 0, 0, 188.46496582031); CreateObject(1649, 1010.299987793, -925.90002441406, 51.099998474121, 0, 0, 188.46496582031); CreateObject(1649, 1010.299987793, -925.79998779297, 51.099998474121, 0, 0, 8.4649658203125); CreateObject(1649, 1010.299987793, -925.79998779297, 47.799999237061, 0, 0, 8.4649658203125); CreateObject(1649, 1002.4000244141, -927.20001220703, 51.099998474121, 0, 0, 11.217651367188); CreateObject(1649, 1006.5999755859, -926.40002441406, 51.099998474121, 0, 0, 11.214233398438); CreateObject(1649, 1006.599609375, -926.3994140625, 51.099998474121, 0, 0, 189.96179199219); CreateObject(1649, 1002.3994140625, -927.19921875, 51.099998474121, 0, 0, 190.96423339844); CreateObject(1649, 1013.599609375, -923.099609375, 47.799999237061, 0, 0, 278.97583007813); CreateObject(1649, 1013.599609375, -923.099609375, 51.099998474121, 0, 0, 278.47595214844); CreateObject(1649, 1012.8994140625, -918.7998046875, 51.099998474121, 0, 0, 278.47595214844); CreateObject(3115, 1002.4000244141, -919.09997558594, 53, 0, 0, 7.9925537109375); CreateObject(2964, 998.09997558594, -939.59997558594, 47.200000762939, 0, 0, 8); CreateObject(2964, 997.20001220703, -933.40002441406, 47.200000762939, 0, 0, 7.998046875); CreateObject(2964, 996, -936.79998779297, 47.200000762939, 0, 0, 7.998046875); CreateObject(1978, 999.40002441406, -943.40002441406, 48.299999237061, 0, 0, 10); CreateObject(2785, 997.70001220703, -928.40002441406, 48.099998474121, 0, 0, 8); CreateObject(1712, 994.29998779297, -931.29998779297, 47.200000762939, 0, 0, 10); CreateObject(1712, 996.59997558594, -930.90002441406, 47.200000762939, 0, 0, 9.99755859375); CreateObject(1712, 996.70001220703, -944.90002441406, 47.200000762939, 0, 0, 100.24755859375); CreateObject(1712, 996.20001220703, -942.5, 47.200000762939, 0, 0, 100.24475097656); CreateObject(1709, 1005.799987793, -910.79998779297, 46.200000762939, 0, 0, 10); CreateObject(1709, 993.59997558594, -916.90002441406, 46.200000762939, 0, 0, 101.99752807617); CreateObject(1709, 998.79998779297, -925.29998779297, 46.200000762939, 0, 0, 187.9970703125); CreateObject(1709, 1012, -921.20001220703, 46.200000762939, 0, 0, 227.99255371094); CreateObject(1825, 997.79998779297, -923.20001220703, 46.200000762939, 0, 0, 0); CreateObject(1825, 997.09997558594, -918.59997558594, 46.200000762939, 0, 0, 0); CreateObject(1825, 996.20001220703, -913.59997558594, 46.200000762939, 0, 0, 0); CreateObject(1825, 1006.9000244141, -912.79998779297, 46.200000762939, 0, 0, 0); CreateObject(1825, 1007.299987793, -917.79998779297, 46.200000762939, 0, 0, 0); CreateObject(1825, 1007.799987793, -922.09997558594, 46.200000762939, 0, 0, 0); CreateObject(2592, 1000.799987793, -910.09997558594, 47.099998474121, 0, 0, 8); CreateObject(2799, 1001.5999755859, -913.29998779297, 46.700000762939, 0, 0, 40); CreateObject(2799, 1001.599609375, -913.2998046875, 46.700000762939, 0, 0, 129.99572753906); CreateObject(2799, 1002.200012207, -917.79998779297, 46.700000762939, 0, 0, 129.99572753906); CreateObject(2799, 1002.19921875, -917.7998046875, 46.700000762939, 0, 0, 39.995727539063); CreateObject(14835, 1007.299987793, -935.79998779297, 48.299999237061, 0, 0, 278); CreateObject(1542, 1012.4000244141, -932.70001220703, 48, 0, 0, 280);[/pawn] €njoy (care ma ajuta si pe mn cu NPC) PLSS
  4. Streamer:: Folosesc Incognito's Streamer .inainte sa pun streameru apar iar cand il pun dispar dc )??(e fix invers) Streamer.inc a fst modificat de mn ca imi dadea niste errori [pawn]/* SA-MP Streamer Plugin v2.5.2 R2 Copyright © 2011 Incognito This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <a_samp> // Definitions #define STREAMER_TYPE_OBJECT (0) #define STREAMER_TYPE_PICKUP (1) #define STREAMER_TYPE_CP (2) #define STREAMER_TYPE_RACE_CP (3) #define STREAMER_TYPE_MAP_ICON (4) #define STREAMER_TYPE_3D_TEXT_LABEL (5) #define STREAMER_TYPE_AREA (6) // Enumerator enum { E_STREAMER_ATTACHED_PLAYER, E_STREAMER_ATTACHED_VEHICLE, E_STREAMER_COLOR, E_STREAMER_DISTANCE, E_STREAMER_DRAW_DISTANCE, E_STREAMER_EXTRA_ID, E_STREAMER_INTERIOR_ID, E_STREAMER_MAX_X, E_STREAMER_MAX_Y, E_STREAMER_MAX_Z, E_STREAMER_MIN_X, E_STREAMER_MIN_Y, E_STREAMER_MIN_Z, E_STREAMER_MODEL_ID, E_STREAMER_MOVE_SPEED, E_STREAMER_MOVE_X, E_STREAMER_MOVE_Y, E_STREAMER_MOVE_Z, E_STREAMER_NEXT_X, E_STREAMER_NEXT_Y, E_STREAMER_NEXT_Z, E_STREAMER_PLAYER_ID, E_STREAMER_R_X, E_STREAMER_R_Y, E_STREAMER_R_Z, E_STREAMER_SIZE, E_STREAMER_STYLE, E_STREAMER_TEST_LOS, E_STREAMER_TYPE, E_STREAMER_WORLD_ID, E_STREAMER_X, E_STREAMER_Y, E_STREAMER_Z } // Natives (Settings) native Streamer_TickRate(rate); native Streamer_MaxItems(type, items); native Streamer_VisibleItems(type, items); native Streamer_CellDistance(Float:distance); native Streamer_CellSize(Float:size); // Natives (Updates) native Streamer_Update(playerid); native Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z); // Natives (Data Manipulation) native Streamer_GetFloatData(type, {Text3D,_}:id, data, &Float:result); native Streamer_SetFloatData(type, {Text3D,_}:id, data, Float:value); native Streamer_GetIntData(type, {Text3D,_}:id, data); native Streamer_SetIntData(type, {Text3D,_}:id, data, value); native Streamer_IsInArrayData(type, {Text3D,_}:id, data, value); native Streamer_AppendArrayData(type, {Text3D,_}:id, data, value); native Streamer_RemoveArrayData(type, {Text3D,_}:id, data, value); native Streamer_GetUpperBound(type); // Natives (Miscellaneous) native Streamer_IsItemVisible(playerid, type, {Text3D,_}:id); native Streamer_DestroyAllVisibleItems(playerid, type); native Streamer_CountVisibleItems(playerid, type); // Natives (Objects) native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0); native DestroyDynamicObject(objectid); native IsValidDynamicObject(objectid); native SetDynamicObjectPos(objectid, Float:x, Float:y, Float:z); native GetDynamicObjectPos(objectid, &Float:x, &Float:y, &Float:z); native SetDynamicObjectRot(objectid, Float:rx, Float:ry, Float:rz); native GetDynamicObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz); native MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed); native StopDynamicObject(objectid); native DestroyAllDynamicObjects(); native CountDynamicObjects(); // Natives (Pickups) native CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); native DestroyDynamicPickup(pickupid); native IsValidDynamicPickup(pickupid); native DestroyAllDynamicPickups(); native CountDynamicPickups(); // Natives (Checkpoints) native CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); native DestroyDynamicCP(checkpointid); native IsValidDynamicCP(checkpointid); native TogglePlayerDynamicCP(playerid, checkpointid, toggle); native TogglePlayerAllDynamicCPs(playerid, toggle); native IsPlayerInDynamicCP(playerid, checkpointid); native DestroyAllDynamicCPs(); native CountDynamicCPs(); // Natives (Race Checkpoints) native CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); native DestroyDynamicRaceCP(checkpointid); native IsValidDynamicRaceCP(checkpointid); native TogglePlayerDynamicRaceCP(playerid, checkpointid, toggle); native TogglePlayerAllDynamicRaceCPs(playerid, toggle); native IsPlayerInDynamicRaceCP(playerid, checkpointid); native DestroyAllDynamicRaceCPs(); native CountDynamicRaceCPs(); // Natives (Map Icons) native CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); native DestroyDynamicMapIcon(iconid); native IsValidDynamicMapIcon(iconid); native DestroyAllDynamicMapIcons(); native CountDynamicMapIcons(); // Natives (3D Text Labels) native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); native DestroyDynamic3DTextLabel(Text3D:id); native IsValidDynamic3DTextLabel(Text3D:id); native UpdateDynamic3DTextLabelText(Text3D:id, color, const text[]); native DestroyAllDynamic3DTextLabels(); native CountDynamic3DTextLabels(); // Natives (Areas) native CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1); native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1); native CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1); native CreateDynamicCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1); native DestroyDynamicArea(areaid); native IsValidDynamicArea(areaid); native TogglePlayerDynamicArea(playerid, areaid, toggle); native TogglePlayerAllDynamicAreas(playerid, toggle); native IsPlayerInDynamicArea(playerid, areaid); native AttachDynamicAreaToPlayer(areaid, playerid); native AttachDynamicAreaToVehicle(areaid, vehicleid); native DestroyAllDynamicAreas(); native CountDynamicAreas(); // Natives (Internals) native Streamer_AddPlayer(playerid); native Streamer_RemovePlayer(playerid); native Streamer_VerifyPickup(playerid, pickupid); native Streamer_VerifyCheckpoint(playerid, type, status); native Streamer_RegisterInterface(); // Callbacks forward OnDynamicObjectMoved(objectid); forward OnPlayerPickUpDynamicPickup(playerid, pickupid); forward OnPlayerEnterDynamicCP(playerid, checkpointid); forward OnPlayerLeaveDynamicCP(playerid, checkpointid); forward OnPlayerEnterDynamicRaceCP(playerid, checkpointid); forward OnPlayerLeaveDynamicRaceCP(playerid, checkpointid); forward OnPlayerEnterDynamicArea(playerid, areaid); forward OnPlayerLeaveDynamicArea(playerid, areaid); // Callback Hook Section static bool:Streamer_g_OPC = false; static bool:Streamer_g_OPDC = false; static bool:Streamer_g_OPPP = false; static bool:Streamer_g_OPEC = false; static bool:Streamer_g_OPLC = false; static bool:Streamer_g_OPERC = false; static bool:Streamer_g_OPLRC = false; static bool:Streamer_g_RI = false; public OnFilterScriptInit() { if (!Streamer_g_RI) { Streamer_g_OPC = funcidx("Streamer_OnPlayerConnect") != -1; Streamer_g_OPDC = funcidx("Streamer_OnPlayerDisconnect") != -1; Streamer_g_OPPP = funcidx("Streamer_OnPlayerPickUpPickup") != -1; Streamer_g_OPEC = funcidx("Streamer_OnPlayerEnterCP") != -1; Streamer_g_OPLC = funcidx("Streamer_OnPlayerLeaveCP") != -1; Streamer_g_OPERC = funcidx("Streamer_OnPlayerEnterRaceCP") != -1; Streamer_g_OPLRC = funcidx("Streamer_OnPlayerLeaveRaceCP") != -1; Streamer_g_RI = true; Streamer_RegisterInterface(); } if (funcidx("Streamer_OnFilterScriptInit") != -1) { return CallLocalFunction("Streamer_OnFilterScriptInit", ""); } return 1; } #if defined _ALS_OnFilterScriptInit #undef OnFilterScriptInit #else #define _ALS_OnFilterScriptInit #endif #define OnFilterScriptInit Streamer_OnFilterScriptInit forward Streamer_OnFilterScriptInit(); public OnGameModeInit() { if (!Streamer_g_RI) { Streamer_g_OPC = funcidx("Streamer_OnPlayerConnect") != -1; Streamer_g_OPDC = funcidx("Streamer_OnPlayerDisconnect") != -1; Streamer_g_OPPP = funcidx("Streamer_OnPlayerPickUpPickup") != -1; Streamer_g_OPEC = funcidx("Streamer_OnPlayerEnterCP") != -1; Streamer_g_OPLC = funcidx("Streamer_OnPlayerLeaveCP") != -1; Streamer_g_OPERC = funcidx("Streamer_OnPlayerEnterRaceCP") != -1; Streamer_g_OPLRC = funcidx("Streamer_OnPlayerLeaveRaceCP") != -1; Streamer_g_RI = true; Streamer_RegisterInterface(); } if (funcidx("Streamer_OnGameModeInit") != -1) { return CallLocalFunction("Streamer_OnGameModeInit", ""); } return 1; } #if defined _ALS_OnGameModeInit #undef OnGameModeInit #else #define _ALS_OnGameModeInit #endif #define OnGameModeInit Streamer_OnGameModeInit forward Streamer_OnGameModeInit(); public OnPlayerConnect(playerid) { if (!IsPlayerNPC(playerid)) { Streamer_AddPlayer(playerid); } if (Streamer_g_OPC) { return CallLocalFunction("Streamer_OnPlayerConnect", "d", playerid); } return 1; } #if defined _ALS_OnPlayerConnect #undef OnPlayerConnect #else #define _ALS_OnPlayerConnect #endif #define OnPlayerConnect Streamer_OnPlayerConnect forward Streamer_OnPlayerConnect(playerid); public OnPlayerDisconnect(playerid, reason) { if (!IsPlayerNPC(playerid)) { Streamer_RemovePlayer(playerid); } if (Streamer_g_OPDC) { return CallLocalFunction("Streamer_OnPlayerDisconnect", "dd", playerid, reason); } return 1; } #if defined _ALS_OnPlayerDisconnect #undef OnPlayerDisconnect #else #define _ALS_OnPlayerDisconnect #endif #define OnPlayerDisconnect Streamer_OnPlayerDisconnect forward Streamer_OnPlayerDisconnect(playerid, reason); public OnPlayerPickUpPickup(playerid, pickupid) { if (!IsPlayerNPC(playerid)) { Streamer_VerifyPickup(playerid, pickupid); } if (Streamer_g_OPPP) { return CallLocalFunction("Streamer_OnPlayerPickUpPickup", "dd", playerid, pickupid); } return 1; } #if defined _ALS_OnPlayerPickUpPickup #undef OnPlayerPickUpPickup #else #define _ALS_OnPlayerPickUpPickup #endif #define OnPlayerPickUpPickup Streamer_OnPlayerPickUpPickup forward Streamer_OnPlayerPickUpPickup(playerid, pickupid); public OnPlayerEnterCheckpoint(playerid) { if (!IsPlayerNPC(playerid)) { Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_CP, 0); } if (Streamer_g_OPEC) { return CallLocalFunction("Streamer_OnPlayerEnterCP", "d", playerid); } return 1; } #if defined _ALS_OnPlayerEnterCheckpoint #undef OnPlayerEnterCheckpoint #else #define _ALS_OnPlayerEnterCheckpoint #endif #define OnPlayerEnterCheckpoint Streamer_OnPlayerEnterCP forward Streamer_OnPlayerEnterCP(playerid); public OnPlayerLeaveCheckpoint(playerid) { if (!IsPlayerNPC(playerid)) { Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_CP, 1); } if (Streamer_g_OPLC) { return CallLocalFunction("Streamer_OnPlayerLeaveCP", "d", playerid); } return 1; } #if defined _ALS_OnPlayerLeaveCheckpoint #undef OnPlayerLeaveCheckpoint #else #define _ALS_OnPlayerLeaveCheckpoint #endif #define OnPlayerLeaveCheckpoint Streamer_OnPlayerLeaveCP forward Streamer_OnPlayerLeaveCP(playerid); public OnPlayerEnterRaceCheckpoint(playerid) { if (!IsPlayerNPC(playerid)) { Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_RACE_CP, 0); } if (Streamer_g_OPERC) { return CallLocalFunction("Streamer_OnPlayerEnterRaceCP", "d", playerid); } return 1; } #if defined _ALS_OnPlayerEnterRaceCP #undef OnPlayerEnterRaceCheckpoint #else #define _ALS_OnPlayerEnterRaceCP #endif forward Streamer_OnPlayerEnterRaceCP(playerid); public OnPlayerLeaveRaceCheckpoint(playerid) { if (!IsPlayerNPC(playerid)) { Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_RACE_CP, 1); } if (Streamer_g_OPLRC) { return CallLocalFunction("Streamer_OnPlayerLeaveRaceCP", "d", playerid); } return 1; } #if defined _ALS_OnPlayerLeaveRaceCP #undef OnPlayerLeaveRaceCheckpoint #else #define _ALS_OnPlayerLeaveRaceCP #endif #define OnPlayerLeaveRaceCheckpoint Streamer_OnPlayerLeaveRaceCP forward Streamer_OnPlayerLeaveRaceCP(playerid); // PAWN Invoke Section forward Streamer_PublicFunction(); public Streamer_PublicFunction() { new Float:value; CreatePickup(0, 0, 0.0, 0.0, 0.0, 0); CreatePlayer3DTextLabel(0, "", 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0); CreatePlayerObject(0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); DeletePlayer3DTextLabel(0, PlayerText3D:0); DestroyPickup(0); DestroyPlayerObject(0, 0); DisablePlayerCheckpoint(0); DisablePlayerRaceCheckpoint(0); GetPlayerInterior(0); GetPlayerPos(0, value, value, value); GetPlayerState(0); GetPlayerVirtualWorld(0); GetVehiclePos(0, value, value, value); MovePlayerObject(0, 0, 0.0, 0.0, 0.0, 0.0); RemovePlayerMapIcon(0, 0); SetPlayerCheckpoint(0, 0.0, 0.0, 0.0, 0.0); SetPlayerMapIcon(0, 0, 0.0, 0.0, 0.0, 0, 0, 0); SetPlayerObjectPos(0, 0, 0.0, 0.0, 0.0); SetPlayerObjectRot(0, 0, 0.0, 0.0, 0.0); SetPlayerRaceCheckpoint(0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); StopPlayerObject(0, 0); UpdatePlayer3DTextLabelText(0, PlayerText3D:0, 0, ""); return 1; } [/pawn]
  5. Saringan_cs

    NPC||

    salut.. deci asta E in Fs [pawn]// This is a comment // uncomment the line below if you want to write a filterscript #define FILTERSCRIPT #include <a_samp> new bus; #if defined FILTERSCRIPT public OnFilterScriptInit() { ConnectNPC("Lorenzo", "dave"); bus = CreateVehicle(431,1785.0498,-1929.7227,13.4885,0.8961,21,42,9999999); } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului if(!strcmp(npcname, "Lorenzo", true)) //Verificam daca numele NPCului este "NUME" { PutPlayerInVehicle(playerid, bus, 0); //Punem NPCul in vehicul } } return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } [/pawn] asta este FS . nume [pawn]npc[/pawn] acesta este in folderu npcmodes [pawn]// This is a comment // uncomment the line below if you want to write a filterscript #define FILTERSCRIPT #include <a_samp> new bus; #if defined FILTERSCRIPT public OnFilterScriptInit() { ConnectNPC("Lorenzo", "dave"); bus = CreateVehicle(431,1785.0498,-1929.7227,13.4885,0.8961,21,42,9999999); } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului if(!strcmp(npcname, "Lorenzo", true)) //Verificam daca numele NPCului este "NUME" { PutPlayerInVehicle(playerid, bus, 0); //Punem NPCul in vehicul } } return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } [/pawn] nume [pawn]Lorenzo[/pawn] si mai am fiseru dave.rec in [pawn]recordings[/pawn] deci intra pe svr numai ca mil da pe un camp .el trebuia sa conduca. cum rezolv? P.S Puteti da lock la celelate topicuri ale mele legate de npc
  6. salut.. deci asta E in Fs [pawn]// This is a comment // uncomment the line below if you want to write a filterscript #define FILTERSCRIPT #include <a_samp> new bus; #if defined FILTERSCRIPT public OnFilterScriptInit() { ConnectNPC("Lorenzo", "dave"); bus = CreateVehicle(431,1785.0498,-1929.7227,13.4885,0.8961,21,42,9999999); } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului if(!strcmp(npcname, "Lorenzo", true)) //Verificam daca numele NPCului este "NUME" { PutPlayerInVehicle(playerid, bus, 0); //Punem NPCul in vehicul } } return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } [/pawn] asta este FS . nume [pawn]npc[/pawn] acesta este in folderu npcmodes [pawn]// This is a comment // uncomment the line below if you want to write a filterscript #define FILTERSCRIPT #include <a_samp> new bus; #if defined FILTERSCRIPT public OnFilterScriptInit() { ConnectNPC("Lorenzo", "dave"); bus = CreateVehicle(431,1785.0498,-1929.7227,13.4885,0.8961,21,42,9999999); } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului if(!strcmp(npcname, "Lorenzo", true)) //Verificam daca numele NPCului este "NUME" { PutPlayerInVehicle(playerid, bus, 0); //Punem NPCul in vehicul } } return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } [/pawn] nume [pawn]Lorenzo[/pawn] si mai am fiseru dave.rec in [pawn]recordings[/pawn] deci intra pe svr numai ca mil da pe un camp .el trebuia sa conduca. cum rezolv?
  7. akm nici nul mai deschide..
  8. UP!!!!!!! mai am un post da vad ca nimica .. sariti peste el ... parca nu lati vedea ;)
  9. nsh dc imi conecteaza npc si dp mil deconecteaza Aici e FS [pawn]// This is a comment // uncomment the line below if you want to write a filterscript #define FILTERSCRIPT #pragma tabsize 0 #include <a_samp> new david; #if defined FILTERSCRIPT public OnFilterScriptInit() { } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnGameModeInit() { ConnectNPC("dave", "dave"); { david = CreateVehicle(431,1785.0498,-1929.7227,13.4885,0.8961,21,42); // pleacare; return 1; } } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { if( IsPlayerNPC( playerid ) ) return 1; SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { if( IsPlayerNPC( playerid ) ) return 1; return 1; } public OnPlayerDisconnect(playerid, reason) { if( IsPlayerNPC( playerid ) ) return 1; return 1; } public OnPlayerSpawn(playerid) { if( IsPlayerNPC( playerid ) ) return 1; { if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului if(!strcmp(npcname, "dave", true)) //Verificam daca numele NPCului este "NUME" { PutPlayerInVehicle(playerid, david, 0); //Punem NPCul in vehicul } return 1; } } return 1; } [/pawn] Chair daca am pus [pawn]if( IsPlayerNPC( playerid ) ) return 1;[/pawn]
  10. da copaci in aer ai vz )=)) (copaci in pamant nu prea am vazut eu) 5/5
  11. la aia cu stremeru ma ajutat :cookie (ms mult) mai am asta .:C:\Users\Cbu-Samp\Desktop\BestLife\gamemodes\edit.pwn(14270) : warning 219: local variable "mod" shadows a variable at a preceding level
  12. Saringan_cs

    WARN

    poi am un streamer ala mai nou http://forum.sa-mp.com/showthread.php?t=102865 [pawn]C:\Users\Cbu-Samp\Desktop\BestLife\pawno\include\streamer.inc(395) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint") C:\Users\Cbu-Samp\Desktop\BestLife\gamemodes\edit.pwn(14270) : warning 219: local variable "mod" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 11188 bytes Code size: 1769576 bytes Data size: 6725356 bytes Stack/heap size: 16384 bytes; estimated max. usage=4462 cells (17848 bytes) Total requirements: 8522504 bytes 2 Warnings. [/pawn] Linea new mod = 100;
  13. Ms merge .. numai ca tot mai da warnu ala.. MAI AM O MICA problema .. cand ma loghez .. pun o parola la abureala si merge OnPlayerLogin [pawn]{ new tmp2[256]; new string2[64]; new playername2[MAX_PLAYER_NAME]; new playernamesplit[3][MAX_PLAYER_NAME]; GetPlayerName(playerid, playername2, sizeof(playername2)); split(playername2, playernamesplit, '_'); format(string2, sizeof(string2), "%s.ini", playername2); new File: UserFile = fopen(string2, io_read); if ( UserFile ) { new PassData[256]; new keytmp[256], valtmp[256]; fread( UserFile , PassData , sizeof( PassData ) ); keytmp = ini_GetKey( PassData ); if( strcmp( keytmp , "Key" , true ) == 0 ) { valtmp = ini_GetValue( PassData ); strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255); } if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 ) { new key[ 256 ] , val[ 256 ]; new Data[ 256 ]; while ( fread( UserFile , Data , sizeof( Data ) ) ) { key = ini_GetKey( Data ); if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); } if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); } if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); } if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strval( val ); } if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); } if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); } if( strcmp( key , "NFS CLub" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNfs] = strval( val ); } if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); } if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); } if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid] = strval( val ); } if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); } if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); } if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); } if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); } if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); } if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); } if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); } if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); } if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); } if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); } if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); } if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); } if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); } if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); } if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); } if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); } if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); } if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); } if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); } if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); } if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); } if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); } if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); } if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); } if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); } if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); } if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); } if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); } if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); } if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); } if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); } if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); } if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); } if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); } if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); } if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); } if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); } if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); } if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); } if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); } if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); } if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); } if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); } if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); } if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); } if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); } if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); } if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); } if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); } if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); } if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); } if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); } if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); } if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); } if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); } if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); } if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); } if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); } if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); } if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); } if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); } if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); } if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); } if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); } if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); } if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); } if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); } if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); } if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); } if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); } if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); } if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); } if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); } if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); } if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); } if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); } if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); } if( strcmp( key , "Mission" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMissionNr] = strval( val ); } if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); } if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); } if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); } if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); } if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); } if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strval( val ); } if( strcmp( key , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strvalEx( val ); } if( strcmp( key , "CabinetTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCabinetTime] = strval( val ); } }//end while fclose(UserFile);//close the file after everything has been read in the while } else { new loginstring[128]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"Wrong Password\nPlease insert the correct password:",loginname); ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit"); fclose(UserFile); gPlayerLogTries[playerid] += 1; if(gPlayerLogTries[playerid] == 4) { Ban(playerid); } return 1; } PlayerInfo[playerid][pAdjustable] = 0; ResetPlayerMoney(playerid); ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); CurrentMoney[playerid] = PlayerInfo[playerid][pCash]; if(PlayerInfo[playerid][pReg] == 0) { PlayerInfo[playerid][pLevel] = 1; PlayerInfo[playerid][pSHealth] = 0.0; PlayerInfo[playerid][pHealth] = 50.0; PlayerInfo[playerid][pPos_x] = 2246.6; PlayerInfo[playerid][pPos_y] = -1161.9; PlayerInfo[playerid][pPos_z] = 1029.7; PlayerInfo[playerid][pInt] = 15; PlayerInfo[playerid][pLocal] = 255; PlayerInfo[playerid][pTeam] = 3; PlayerInfo[playerid][pModel] = 60; new randphone = 1000 + random(8999);//minimum 1000 max 9999 //giving one at the start PlayerInfo[playerid][pPnumber] = randphone; PlayerInfo[playerid][pPhousekey] = 255; PlayerInfo[playerid][pPbiskey] = 255; PlayerInfo[playerid][pAccount] = 50000; PlayerInfo[playerid][pReg] = 1; GivePlayerMoney(playerid, 5000); } if(PlayerInfo[playerid][pLevel] == -999) //autoban { Ban(playerid); } else if(PlayerInfo[playerid][pCK] > 0) { Kick(playerid); } format(string2, sizeof(string2), "* Welcome %s",playername2); SendClientMessage(playerid, COLOR_WHITE,string2); printf("%s has logged in.",playername2); if (PlayerInfo[playerid][pDonateRank] > 0) { SendClientMessage(playerid, COLOR_WHITE,"* You are a Premium Account user."); } if (PlayerInfo[playerid][pAdmin] > 0) { format(string2, sizeof(string2), "* You are logged in as a Level %d Admin.",PlayerInfo[playerid][pAdmin]); SendClientMessage(playerid, COLOR_WHITE,string2); } if (PlayerInfo[playerid][pHelper] > 0) { format(string2, sizeof(string2), "* You are logged in as a Level %d Helper.",PlayerInfo[playerid][pHelper]); SendClientMessage(playerid, COLOR_WHITE,string2); } SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1); if(gTeam[playerid] == 0) { gTeam[playerid] = 3; } else { gTeam[playerid] = PlayerInfo[playerid][pTeam]; } gPlayerLogged[playerid] = 1; SpawnPlayer(playerid); format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~r~~h~ %s", playername2); DateProp(playerid); GameTextForPlayer(playerid, tmp2, 300, 1); SendClientMessage(playerid, COLOR_YELLOW, motd); if(PlayerInfo[playerid][pFMember] < 255) { format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]); SendClientMessage(playerid, COLOR_YELLOW, tmp2); } } return 1; } stock ini_GetKey( line[] ) { new keyRes[256]; keyRes[0] = 0; if ( strfind( line , "=" , true ) == -1 ) return keyRes; strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) ); return keyRes; } stock IsVehicleOccupied(vehicleid) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInVehicle(i,vehicleid)) return 1; } return 0; } stock ini_GetValue( line[] ) { new valRes[256]; valRes[0]=0; if ( strfind( line , "=" , true ) == -1 ) return valRes; strmid( valRes , line , strfind( line , "=" , true )+1 , strlen( line ) , sizeof( valRes ) ); return valRes; }[/pawn]
  14. [pawn]C:\Users\Cbu-Samp\Desktop\BestLife\gamemodes\edit.pwn(10114) : error 021: symbol already defined: "strtok" C:\Users\Cbu-Samp\Desktop\BestLife\gamemodes\edit.pwn(10129) : error 047: array sizes do not match, or destination array is too small C:\Users\Cbu-Samp\Desktop\BestLife\gamemodes\edit.pwn(14127) : warning 219: local variable "mod" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. [/pawn] 10114 [pawn]{[/pawn] 10129 [pawn] return result;[/pawn] 14127 [pawn]new mod = 100;[/pawn] Aste Imi zice Daca bag aCCest Junkbuster JunkBuster = numa lasa sa il pun... prea multe caractere :|. http://www.2shared.com/file/FStSz7d2/JunkBuster.html Cum Fac SA scot accest junkbuster DETOT daca nu este rezolvare?
  15. UPPPPP Nimeni? EDIT 2/12/11 UPPPPPPPP NIMENI 22:32
  16. "sa zicem ca am intels" deci u vrei sa bagi obiecte/mapa pe "mapa"ta? daca da fa asa convertezi obiectele aici http://gtamap.delux-host.com/converter/ -->> unde e IPL file format cauti PAWN code for SA:MP si dai click pe el dp intri in GM'ul dau ctrl+f si cauti public public OnGameModeInit() pe undeva dp AddStaticVehicle adugi alea ale tale din GM selectionezi tot ce ai bagat tu akm (obiectele) si dai TAB [trebuie sa fie in linie cu celelalte ]
  17. Daca pun ce ai zis tu imi zice [pawn][19:32:48] Filterscript 'busdriver.amx' loaded. [19:32:51] Incoming connection: 127.0.0.1:62968 [19:32:51] [npc:join] Dave has joined the server (1:127.0.0.1) [19:32:51] Incoming connection: 127.0.0.1:62969[/pawn] Dave e numele pe care l'am pus eo. bun intru pe svr dau /goto 1 si ma da la http://imageshack.us/g/69/samp074bv.png/ Ar trebui sa ma dea la gara si omu nu este in masina . cum pot rezolva?
  18. Saringan_cs

    NPCs

    deci am facut un npc .. am terminat.nu mia dat nici o erroare nimica .numai ca nu imi apare .. aici este... Fisieru.rec Fisieru.pwn-->>npcmode Fisieru.amx-->>npcmode Fisieru.pwn-->>FS Fisieru.amx-->>FS http://www.2shared.com/file/9j3gBNQ2/Desktop.html
  19. [pawn]// Vehicle System 1.1 Beta © 2010 Johny C. & Luka P. // Contributors: Betamaster (Vehicle Name List) #include "a_samp.inc" #define FUEL_UPDATE_TIME (10000) stock Float:GetVehicleVelocityX(vehicleid){new Float:velocity_X, Float:velocity_dump_Y, Float:velocity_dump_Z;GetVehicleVelocity(vehicleid, velocity_X, velocity_dump_Y, velocity_dump_Z);velocity_dump_Y = 0.00;velocity_dump_Z = 0.00;return velocity_X;} stock Float:GetVehicleVelocityY(vehicleid){new Float:velocity_dump_X, Float:velocity_Y, Float:velocity_dump_Z;GetVehicleVelocity(vehicleid, velocity_dump_X, velocity_Y, velocity_dump_Z);velocity_dump_X = 0.00;velocity_dump_Z = 0.00;return velocity_Y;} stock Float:GetVehicleVelocityZ(vehicleid){new Float:velocity_dump_X, Float:velocity_dump_Y, Float:velocity_Z;GetVehicleVelocity(vehicleid, velocity_dump_X, velocity_dump_Y, velocity_Z);velocity_dump_X = 0.00;velocity_dump_Y = 0.00;return velocity_Z;} stock Float:SetVehicleSpeed(vehicleid, speed){new Float:angle;GetVehicleZAngle(vehicleid,angle);if(SetVehicleVelocity(vehicleid, (speed / 170.0) * floatsin(-angle, degrees), (speed / 170.0) * floatcos(-angle, degrees), 0.0))return(speed/170.0);else return(Float:0);} #define GetVehicleSpeed_P(%0) floatmul(floatsqroot(floatadd(floatpower(GetVehicleVelocityX(GetPlayerVehicleID(%0)), 2), floatadd(floatpower(GetVehicleVelocityY(GetPlayerVehicleID(%0)), 2), floatpower(GetVehicleVelocityZ(GetPlayerVehicleID(%0)), 2)))), 200) #define GetVehicleSpeed_V(%0) floatmul(floatsqroot(floatadd(floatpower(GetVehicleVelocityX(%0), 2), floatadd(floatpower(GetVehicleVelocityY(%0), 2), floatpower(GetVehicleVelocityZ(%0), 2)))), 200); #define Boolean bool enum E_VEHICLE_INFO { Boolean: E_VEHICLE_PROCESSED, Float: E_VEHICLE_FUEL, E_VEHICLE_FUEL_TIMER, Float: E_VEHICLE_HEALTH } new Text:VehicleText[MAX_PLAYERS][8], Float:LastSpeed[MAX_PLAYERS], VehicleInfo[MAX_VEHICLES][E_VEHICLE_INFO], Boolean:TextdrawsCreated[MAX_PLAYERS]; forward UpdateFuelByPlayerVehicleID(playerid); stock CreateTextdraws(playerid) { VehicleText[playerid][0] = TextDrawCreate(330.000000, 435.000000, "~r~Vehicle name: ~w~name~r~ Vehicle health:~w~ health ~r~Vehicle fuel: ~w~fuel");TextDrawAlignment(VehicleText[playerid][0], 2);TextDrawBackgroundColor(VehicleText[playerid][0], 255);TextDrawFont(VehicleText[playerid][0], 1);TextDrawLetterSize(VehicleText[playerid][0], 0.340000, 1.000000);TextDrawColor(VehicleText[playerid][0], -1); TextDrawSetOutline(VehicleText[playerid][0], 1);TextDrawSetProportional(VehicleText[playerid][0], 1);TextDrawUseBox(VehicleText[playerid][0], 1);TextDrawBoxColor(VehicleText[playerid][0], 100);TextDrawTextSize(VehicleText[playerid][0], 713.000000, 860.000000); VehicleText[playerid][1] = TextDrawCreate(321.000000, 409.000000, "000km/h");TextDrawAlignment(VehicleText[playerid][1], 2);TextDrawBackgroundColor(VehicleText[playerid][1], 255);TextDrawFont(VehicleText[playerid][1], 1);TextDrawLetterSize(VehicleText[playerid][1], 0.440000, 2.399999); TextDrawColor(VehicleText[playerid][1], -1);TextDrawSetOutline(VehicleText[playerid][1], 0);TextDrawSetProportional(VehicleText[playerid][1], 1);TextDrawSetShadow(VehicleText[playerid][1], 1);TextDrawUseBox(VehicleText[playerid][1], 1);TextDrawBoxColor(VehicleText[playerid][1], 100);TextDrawTextSize(VehicleText[playerid][1], 163.000000, -131.000000); VehicleText[playerid][2] = TextDrawCreate(259.000000, 433.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][2], 255);TextDrawFont(VehicleText[playerid][2], 1);TextDrawLetterSize(VehicleText[playerid][2], 0.500000, -0.200000); TextDrawColor(VehicleText[playerid][2], -1);TextDrawSetOutline(VehicleText[playerid][2], 0);TextDrawSetProportional(VehicleText[playerid][2], 1);TextDrawSetShadow(VehicleText[playerid][2], 1);TextDrawUseBox(VehicleText[playerid][2], 1);TextDrawBoxColor(VehicleText[playerid][2], 255);TextDrawTextSize(VehicleText[playerid][2], -45.000000, 0.000000); VehicleText[playerid][3] = TextDrawCreate(386.000000, 433.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][3], 255);TextDrawFont(VehicleText[playerid][3], 1);TextDrawLetterSize(VehicleText[playerid][3], 0.500000, -0.200000);TextDrawColor(VehicleText[playerid][3], -1);TextDrawSetOutline(VehicleText[playerid][3], 0); TextDrawSetProportional(VehicleText[playerid][3], 1);TextDrawSetShadow(VehicleText[playerid][3], 1);TextDrawUseBox(VehicleText[playerid][3], 1);TextDrawBoxColor(VehicleText[playerid][3], 255);TextDrawTextSize(VehicleText[playerid][3], 648.000000, 0.000000); VehicleText[playerid][4] = TextDrawCreate(259.000000, 409.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][4], 255);TextDrawFont(VehicleText[playerid][4], 1);TextDrawLetterSize(VehicleText[playerid][4], 0.500000, 2.200000);TextDrawColor(VehicleText[playerid][4], -1); TextDrawSetOutline(VehicleText[playerid][4], 0);TextDrawSetProportional(VehicleText[playerid][4], 1);TextDrawSetShadow(VehicleText[playerid][4], 1);TextDrawUseBox(VehicleText[playerid][4], 1);TextDrawBoxColor(VehicleText[playerid][4], 255);TextDrawTextSize(VehicleText[playerid][4], 253.000000, 0.000000); VehicleText[playerid][5] = TextDrawCreate(388.500000, 407.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][5], 255);TextDrawFont(VehicleText[playerid][5], 1);TextDrawLetterSize(VehicleText[playerid][5], 0.500000, -0.100000);TextDrawColor(VehicleText[playerid][5], -1); TextDrawSetOutline(VehicleText[playerid][5], 0);TextDrawSetProportional(VehicleText[playerid][5], 1);TextDrawSetShadow(VehicleText[playerid][5], 1);TextDrawUseBox(VehicleText[playerid][5], 1);TextDrawBoxColor(VehicleText[playerid][5], 255);TextDrawTextSize(VehicleText[playerid][5], 253.000000, 24.000000); VehicleText[playerid][6] = TextDrawCreate(386.000000, 408.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][6], 255);TextDrawFont(VehicleText[playerid][6], 1);TextDrawLetterSize(VehicleText[playerid][6], 0.500000, 2.599999);TextDrawColor(VehicleText[playerid][6], -1); TextDrawSetOutline(VehicleText[playerid][6], 0);TextDrawSetProportional(VehicleText[playerid][6], 1);TextDrawSetShadow(VehicleText[playerid][6], 1);TextDrawUseBox(VehicleText[playerid][6], 1);TextDrawBoxColor(VehicleText[playerid][6], 255);TextDrawTextSize(VehicleText[playerid][6], 385.000000, 0.000000); VehicleText[playerid][7] = TextDrawCreate(676.000000, 448.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][7], 255);TextDrawFont(VehicleText[playerid][7], 1);TextDrawLetterSize(VehicleText[playerid][7], 0.500000, -0.200000);TextDrawColor(VehicleText[playerid][7], -1); TextDrawSetOutline(VehicleText[playerid][7], 0);TextDrawSetProportional(VehicleText[playerid][7], 1);TextDrawSetShadow(VehicleText[playerid][7], 1);TextDrawUseBox(VehicleText[playerid][7], 1);TextDrawBoxColor(VehicleText[playerid][7], 255);TextDrawTextSize(VehicleText[playerid][7], -45.000000, 0.000000); TextdrawsCreated[playerid] = true; return 1; } static VehicleList[212][] = { {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},{"Dumper"},{"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"},{"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},{"Washington"},{"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},{"Premier"},{"Enforcer"},{"Securicar"},{"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"},{"Coach"}, {"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},{"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},{"Tram"},{"Trailer 2"},{"Turismo"},{"Speeder"},{"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},{"Skimmer"},{"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},{"Sanchez"},{"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},{"Rustler"},{"ZR-350"}, {"Walton"},{"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},{"Baggage"},{"Dozer"},{"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},{"Jetmax"},{"Hotring"},{"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},{"Benson"},{"Mesa"},{"RC Goblin"},{"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},{"Super GT"},{"Elegant"},{"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},{"Tanker"}, {"Roadtrain"},{"Nebula"},{"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},{"NRG-500"},{"HPV1000"},{"Cement Truck"},{"Tow Truck"},{"Fortune"},{"Cadrona"},{"FBI Truck"},{"Willard"},{"Forklift"},{"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},{"Blade"},{"Freight"},{"Streak"},{"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},{"Firetruck LA"},{"Hustler"},{"Intruder"},{"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},{"Utility"},{"Nevada"},{"Yosemite"}, {"Windsor"},{"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},{"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},{"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},{"Bandito"},{"Freight Flat"},{"Streak Carriage"},{"Kart"},{"Mower"},{"Duneride"},{"Sweeper"},{"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},{"Huntley"},{"Stafford"},{"BF-400"},{"Newsvan"},{"Tug"},{"Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Hotdog"},{"Club"},{"Freight Carriage"},{"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"}, {"Launch"},{"Police Car (LSPD)"},{"Police Car (SFPD)"},{"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T. Van"},{"Alpha"},{"Phoenix"},{"Glendale"},{"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},{"Boxville"},{"Farm Plow"},{"Utility Trailer"} }; static Float:FuelStationCoords[][3] = { {2146.7766,2747.4424,10.8203},{2638.5972,1106.7181,10.8203},{1597.3271,2197.7712,10.8203},{608.5480,1699.3431,6.9922},{618.5945,1684.5210,6.9922},{-1470.1311,1863.6323,32.6328},{-737.2454,2742.9482,47.2266},{656.9113,-564.4317,16.510},{2202.2349,2474.3494,10.5258},{614.9333,1689.7418,6.6968},{-1328.8250,2677.2173,49.7665},{70.3882,1218.6783,18.5165},{2113.7390,920.1079,10.5255},{-1327.7218,2678.8723,50.0625},{-2409.5752,976.3114,45.2969},{-2026.0743,156.6390,28.7872},{-2244.5063,-2561.0781,31.9219}, {-1603.3645,-2709.4622,48.3874},{-1609.7147,-2717.6572,48.3874},{-88.9507,-1164.7794,2.3085},{-93.0625,-1173.2089,2.3244},{1003.7032,-937.5828,42.3281},{1940.6816,-1770.7999,13.3906},{1940.0111,-1776.4730,13.3906},{1381.7468,459.1537,20.3452},{-1680.0511,408.4660,7.1797},{-1672.9927,415.2118,7.1797},{-730.05,2744.22,47.22} }; public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/refuel", cmdtext, true) == 0) { new Boolean:found = false; for(new i=0; i < sizeof(FuelStationCoords); i++) { if(IsPlayerInRangeOfPoint(playerid, 6.5, FuelStationCoords[0], FuelStationCoords[1], FuelStationCoords[2])) { found = true; } } if(!found) SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You must be near fuel station to use this command."); else if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You must be in a vehicle to use this command."); else { new Float:cost = ((100.00 - VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL]) * 100); if(GetPlayerMoney(playerid) < cost) { new szOutput[128]; format(szOutput, sizeof(szOutput), "SERVER: You don't have enough money to refuel your vehicle ($%i).", floatround(cost)); SendClientMessage(playerid, 0xFFFFFFFF, szOutput); } else { GivePlayerMoney(playerid, -(floatround(cost))); VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL] = 100.00; SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Your vehicle has been refueled successfully."); } } return 1; } return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if((newkeys & 16) && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL] < 1) { RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, true); } return 1; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(!ispassenger) { if(VehicleInfo[vehicleid][E_VEHICLE_PROCESSED] == false) { VehicleInfo[vehicleid][E_VEHICLE_PROCESSED] = true; VehicleInfo[vehicleid][E_VEHICLE_FUEL] = 100.00; } else { if(VehicleInfo[vehicleid][E_VEHICLE_FUEL] == 0.00) { SetVehicleSpeed(GetPlayerVehicleID(playerid), 0); PutPlayerInVehicle(playerid, vehicleid, 0); TogglePlayerControllable(playerid, false); GameTextForPlayer(playerid, "~r~Out of fuel!", 1000, 4); } } if(GetVehicleModel(vehicleid) != 481 && GetVehicleModel(vehicleid) != 510 && GetVehicleModel(vehicleid) != 509) { VehicleInfo[vehicleid][E_VEHICLE_FUEL_TIMER] = SetTimerEx("UpdateFuelByPlayerVehicleID", FUEL_UPDATE_TIME, 1, "i", playerid); } } return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return KillTimer(VehicleInfo[vehicleid][E_VEHICLE_FUEL_TIMER]); } public UpdateFuelByPlayerVehicleID(playerid) { new const vehicleid = GetPlayerVehicleID(playerid); if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 510 || GetVehicleModel(vehicleid) == 509) { return 0; } new Float:memory[3]={0.00,0.00,0.00 }, result_speed=0; GetVehicleVelocity(vehicleid,memory[0],memory[1],memory[2]); result_speed = floatround(floatround(floatsqroot(((memory[0]*memory[0])+(memory[1]*memory[1]))+(memory[2]*memory[2]))*(136.666667),floatround_round)*(1.609344)); if(result_speed) { new _random = random(100); while(_random < 50) _random = random(100); new val[4]; format(val, sizeof(val), "0.%i", _random); if(floatsub(VehicleInfo[vehicleid][E_VEHICLE_FUEL], floatstr(val)) > 0.00) { VehicleInfo[vehicleid][E_VEHICLE_FUEL] = floatsub(VehicleInfo[vehicleid][E_VEHICLE_FUEL], floatstr(val)); new string[128], Float:health; GetVehicleHealth(GetPlayerVehicleID(playerid), health); format(string, sizeof(string), "~r~Vehicle name: ~w~%s~r~ Vehicle health:~w~ %.2f\%% ~r~Vehicle fuel: ~w~%.2f\%%", VehicleList[(GetVehicleModel(GetPlayerVehicleID(playerid)) - 400)], health / 1000 * 100, VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL]); TextDrawHideForPlayer(playerid, VehicleText[playerid][0]); TextDrawSetString(VehicleText[playerid][0], string); TextDrawShowForPlayer(playerid, VehicleText[playerid][0]); } else { VehicleInfo[vehicleid][E_VEHICLE_FUEL] = 0.00; SetVehicleSpeed(GetPlayerVehicleID(playerid), 0); TogglePlayerControllable(playerid, false); GameTextForPlayer(playerid, "~r~Out of fuel!", 1000, 4); } } return 1; } public OnPlayerUpdate(playerid) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(IsPlayerInAnyVehicle(playerid)) { new Float:speed = GetVehicleSpeed_P(playerid); if(speed != LastSpeed[playerid]) { new szOutput[9]; format(szOutput, sizeof(szOutput), "%ikm/h", floatround(speed)); TextDrawHideForPlayer(playerid, VehicleText[playerid][1]); TextDrawSetString(VehicleText[playerid][1], szOutput); TextDrawShowForPlayer(playerid, VehicleText[playerid][1]); LastSpeed[playerid] = speed; } new string[128], Float:health; GetVehicleHealth(GetPlayerVehicleID(playerid), health); if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 481 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 510 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 509) { format(string, sizeof(string), "~r~Vehicle name: ~w~%s~r~ Vehicle health:~w~ %.2f\%% ~r~Vehicle fuel: ~w~%.2f\%%", VehicleList[(GetVehicleModel(GetPlayerVehicleID(playerid)) - 400)], health / 1000 * 100, VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL]); } else { format(string, sizeof(string), "~r~Vehicle name: ~w~%s", VehicleList[(GetVehicleModel(GetPlayerVehicleID(playerid)) - 400)]); } if(TextdrawsCreated[playerid] == false) { CreateTextdraws(playerid); } TextDrawHideForPlayer(playerid, VehicleText[playerid][0]); TextDrawSetString(VehicleText[playerid][0], string); TextDrawShowForPlayer(playerid, VehicleText[playerid][0]); } } return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { for(new i=0; i <= 7; i++) { TextDrawShowForPlayer(playerid, VehicleText[playerid]); new string[128], Float:health; GetVehicleHealth(GetPlayerVehicleID(playerid), health); format(string, sizeof(string), "~r~Vehicle name: ~w~%s~r~ Vehicle health:~w~ %.2f\%% ~r~Vehicle fuel: ~w~%.2f\%%", VehicleList[(GetVehicleModel(GetPlayerVehicleID(playerid)) - 400)], health / 1000 * 100, VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL]); TextDrawHideForPlayer(playerid, VehicleText[playerid][0]); TextDrawSetString(VehicleText[playerid][0], string); TextDrawShowForPlayer(playerid, VehicleText[playerid][0]); VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_HEALTH] = health; } } else { for(new i=0; i <= 7; i++) { TextDrawHideForPlayer(playerid, VehicleText[playerid]); } } return 1; } public OnFilterScriptExit() { for(new i=0; i < MAX_PLAYERS; i++) { for(new j=0; j <= 7; j++) { TextDrawDestroy(VehicleText[j]); } } return 1; } public OnPlayerDisconnect(playerid, reason) { for(new i=0; i <= 7; i++) { TextDrawDestroy(VehicleText[playerid]); } LastSpeed[playerid] = 0.00; return 1; } public OnPlayerConnect(playerid) { TextdrawsCreated[playerid] = false; CreateTextdraws(playerid); return 1; }[/pawn] Cum pot face ca sa nu mai folosesc comanda /refuel .si sa folosesc /fill cum e la celelalte (contracost).. si nsh dc de ex merg de la benzinarie cu 100% gas si pe la banca asa e pe 0%
  20. Acest Gm Este cumparat .. Si nsh ce versiune e. deci cum fac EDIT UPPP nimeni?
  21. cand bag acest streamer : [pawn]/* SA-MP Streamer Plugin v2.5.2 Copyright © 2010 Incognito This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #if defined _streamer_included #endinput #endif #define _streamer_included #include <a_samp> // Definitions #define STREAMER_TYPE_OBJECT (0) #define STREAMER_TYPE_PICKUP (1) #define STREAMER_TYPE_CP (2) #define STREAMER_TYPE_RACE_CP (3) #define STREAMER_TYPE_MAP_ICON (4) #define STREAMER_TYPE_3D_TEXT_LABEL (5) #define STREAMER_TYPE_AREA (6) // Enumerator enum { E_STREAMER_ATTACHED_PLAYER, E_STREAMER_ATTACHED_VEHICLE, E_STREAMER_COLOR, E_STREAMER_DISTANCE, E_STREAMER_DRAW_DISTANCE, E_STREAMER_EXTRA_ID, E_STREAMER_INTERIOR_ID, E_STREAMER_MAX_X, E_STREAMER_MAX_Y, E_STREAMER_MAX_Z, E_STREAMER_MIN_X, E_STREAMER_MIN_Y, E_STREAMER_MIN_Z, E_STREAMER_MODEL_ID, E_STREAMER_MOVE_SPEED, E_STREAMER_MOVE_X, E_STREAMER_MOVE_Y, E_STREAMER_MOVE_Z, E_STREAMER_NEXT_X, E_STREAMER_NEXT_Y, E_STREAMER_NEXT_Z, E_STREAMER_PLAYER_ID, E_STREAMER_R_X, E_STREAMER_R_Y, E_STREAMER_R_Z, E_STREAMER_SIZE, E_STREAMER_STYLE, E_STREAMER_TEST_LOS, E_STREAMER_TYPE, E_STREAMER_WORLD_ID, E_STREAMER_X, E_STREAMER_Y, E_STREAMER_Z } // Natives (Settings) native Streamer_TickRate(rate); native Streamer_MaxItems(type, items); native Streamer_VisibleItems(type, items); native Streamer_CellDistance(Float:distance); native Streamer_CellSize(Float:size); // Natives (Updates) native Streamer_Update(playerid); native Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z); // Natives (Data Manipulation) native Streamer_GetFloatData(type, {Text3D,_}:id, data, &Float:result); native Streamer_SetFloatData(type, {Text3D,_}:id, data, Float:value); native Streamer_GetIntData(type, {Text3D,_}:id, data); native Streamer_SetIntData(type, {Text3D,_}:id, data, value); native Streamer_IsInArrayData(type, {Text3D,_}:id, data, value); native Streamer_AppendArrayData(type, {Text3D,_}:id, data, value); native Streamer_RemoveArrayData(type, {Text3D,_}:id, data, value); native Streamer_GetUpperBound(type); // Natives (Miscellaneous) native Streamer_IsItemVisible(playerid, type, {Text3D,_}:id); native Streamer_DestroyAllVisibleItems(playerid, type); native Streamer_CountVisibleItems(playerid, type); // Natives (Objects) native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0); native DestroyDynamicObject(objectid); native IsValidDynamicObject(objectid); native SetDynamicObjectPos(objectid, Float:x, Float:y, Float:z); native GetDynamicObjectPos(objectid, &Float:x, &Float:y, &Float:z); native SetDynamicObjectRot(objectid, Float:rx, Float:ry, Float:rz); native GetDynamicObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz); native MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed); native StopDynamicObject(objectid); native DestroyAllDynamicObjects(); native CountDynamicObjects(); // Natives (Pickups) native CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); native DestroyDynamicPickup(pickupid); native IsValidDynamicPickup(pickupid); native DestroyAllDynamicPickups(); native CountDynamicPickups(); // Natives (Checkpoints) native CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); native DestroyDynamicCP(checkpointid); native IsValidDynamicCP(checkpointid); native TogglePlayerDynamicCP(playerid, checkpointid, toggle); native TogglePlayerAllDynamicCPs(playerid, toggle); native IsPlayerInDynamicCP(playerid, checkpointid); native DestroyAllDynamicCPs(); native CountDynamicCPs(); // Natives (Race Checkpoints) native CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); native DestroyDynamicRaceCP(checkpointid); native IsValidDynamicRaceCP(checkpointid); native TogglePlayerDynamicRaceCP(playerid, checkpointid, toggle); native TogglePlayerAllDynamicRaceCPs(playerid, toggle); native IsPlayerInDynamicRaceCP(playerid, checkpointid); native DestroyAllDynamicRaceCPs(); native CountDynamicRaceCPs(); // Natives (Map Icons) native CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); native DestroyDynamicMapIcon(iconid); native IsValidDynamicMapIcon(iconid); native DestroyAllDynamicMapIcons(); native CountDynamicMapIcons(); // Natives (3D Text Labels) native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0); native DestroyDynamic3DTextLabel(Text3D:id); native IsValidDynamic3DTextLabel(Text3D:id); native UpdateDynamic3DTextLabelText(Text3D:id, color, const text[]); native DestroyAllDynamic3DTextLabels(); native CountDynamic3DTextLabels(); // Natives (Areas) native CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1); native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1); native CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1); native CreateDynamicCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1); native DestroyDynamicArea(areaid); native IsValidDynamicArea(areaid); native TogglePlayerDynamicArea(playerid, areaid, toggle); native TogglePlayerAllDynamicAreas(playerid, toggle); native IsPlayerInDynamicArea(playerid, areaid); native AttachDynamicAreaToPlayer(areaid, playerid); native AttachDynamicAreaToVehicle(areaid, vehicleid); native DestroyAllDynamicAreas(); native CountDynamicAreas(); // Natives (Internals) native Streamer_AddPlayer(playerid); native Streamer_RemovePlayer(playerid); native Streamer_VerifyPickup(playerid, pickupid); native Streamer_VerifyCheckpoint(playerid, type, status); native Streamer_RegisterInterface(); // Callbacks forward OnDynamicObjectMoved(objectid); forward OnPlayerPickUpDynamicPickup(playerid, pickupid); forward OnPlayerEnterDynamicCP(playerid, checkpointid); forward OnPlayerLeaveDynamicCP(playerid, checkpointid); forward OnPlayerEnterDynamicRaceCP(playerid, checkpointid); forward OnPlayerLeaveDynamicRaceCP(playerid, checkpointid); forward OnPlayerEnterDynamicArea(playerid, areaid); forward OnPlayerLeaveDynamicArea(playerid, areaid); // Callback Hook Section static bool:Streamer_g_OPC = false; static bool:Streamer_g_OPDC = false; static bool:Streamer_g_OPPP = false; static bool:Streamer_g_OPEC = false; static bool:Streamer_g_OPLC = false; static bool:Streamer_g_OPERC = false; static bool:Streamer_g_OPLRC = false; static bool:Streamer_g_RI = false; public OnFilterScriptInit() { if (!Streamer_g_RI) { Streamer_g_OPC = funcidx("Streamer_OnPlayerConnect") != -1; Streamer_g_OPDC = funcidx("Streamer_OnPlayerDisconnect") != -1; Streamer_g_OPPP = funcidx("Streamer_OnPlayerPickUpPickup") != -1; Streamer_g_OPEC = funcidx("Streamer_OnPlayerEnterCP") != -1; Streamer_g_OPLC = funcidx("Streamer_OnPlayerLeaveCP") != -1; Streamer_g_OPERC = funcidx("Streamer_OnPlayerEnterRaceCP") != -1; Streamer_g_OPLRC = funcidx("Streamer_OnPlayerLeaveRaceCP") != -1; Streamer_g_RI = true; Streamer_RegisterInterface(); } if (funcidx("Streamer_OnFilterScriptInit") != -1) { return CallLocalFunction("Streamer_OnFilterScriptInit", ""); } return 1; } #if defined _ALS_OnFilterScriptInit #undef OnFilterScriptInit #else #define _ALS_OnFilterScriptInit #endif #define OnFilterScriptInit Streamer_OnFilterScriptInit forward Streamer_OnFilterScriptInit(); public OnGameModeInit() { if (!Streamer_g_RI) { Streamer_g_OPC = funcidx("Streamer_OnPlayerConnect") != -1; Streamer_g_OPDC = funcidx("Streamer_OnPlayerDisconnect") != -1; Streamer_g_OPPP = funcidx("Streamer_OnPlayerPickUpPickup") != -1; Streamer_g_OPEC = funcidx("Streamer_OnPlayerEnterCP") != -1; Streamer_g_OPLC = funcidx("Streamer_OnPlayerLeaveCP") != -1; Streamer_g_OPERC = funcidx("Streamer_OnPlayerEnterRaceCP") != -1; Streamer_g_OPLRC = funcidx("Streamer_OnPlayerLeaveRaceCP") != -1; Streamer_g_RI = true; Streamer_RegisterInterface(); } if (funcidx("Streamer_OnGameModeInit") != -1) { return CallLocalFunction("Streamer_OnGameModeInit", ""); } return 1; } #if defined _ALS_OnGameModeInit #undef OnGameModeInit #else #define _ALS_OnGameModeInit #endif #define OnGameModeInit Streamer_OnGameModeInit forward Streamer_OnGameModeInit(); public OnPlayerConnect(playerid) { if (!IsPlayerNPC(playerid)) { Streamer_AddPlayer(playerid); } if (Streamer_g_OPC) { return CallLocalFunction("Streamer_OnPlayerConnect", "d", playerid); } return 1; } #if defined _ALS_OnPlayerConnect #undef OnPlayerConnect #else #define _ALS_OnPlayerConnect #endif #define OnPlayerConnect Streamer_OnPlayerConnect forward Streamer_OnPlayerConnect(playerid); public OnPlayerDisconnect(playerid, reason) { if (!IsPlayerNPC(playerid)) { Streamer_RemovePlayer(playerid); } if (Streamer_g_OPDC) { return CallLocalFunction("Streamer_OnPlayerDisconnect", "dd", playerid, reason); } return 1; } #if defined _ALS_OnPlayerDisconnect #undef OnPlayerDisconnect #else #define _ALS_OnPlayerDisconnect #endif #define OnPlayerDisconnect Streamer_OnPlayerDisconnect forward Streamer_OnPlayerDisconnect(playerid, reason); public OnPlayerPickUpPickup(playerid, pickupid) { if (!IsPlayerNPC(playerid)) { Streamer_VerifyPickup(playerid, pickupid); } if (Streamer_g_OPPP) { return CallLocalFunction("Streamer_OnPlayerPickUpPickup", "dd", playerid, pickupid); } return 1; } #if defined _ALS_OnPlayerPickUpPickup #undef OnPlayerPickUpPickup #else #define _ALS_OnPlayerPickUpPickup #endif #define OnPlayerPickUpPickup Streamer_OnPlayerPickUpPickup forward Streamer_OnPlayerPickUpPickup(playerid, pickupid); public OnPlayerEnterCheckpoint(playerid) { if (!IsPlayerNPC(playerid)) { Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_CP, 0); } if (Streamer_g_OPEC) { return CallLocalFunction("Streamer_OnPlayerEnterCP", "d", playerid); } return 1; } #if defined _ALS_OnPlayerEnterCheckpoint #undef OnPlayerEnterCheckpoint #else #define _ALS_OnPlayerEnterCheckpoint #endif #define OnPlayerEnterCheckpoint Streamer_OnPlayerEnterCP forward Streamer_OnPlayerEnterCP(playerid); public OnPlayerLeaveCheckpoint(playerid) { if (!IsPlayerNPC(playerid)) { Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_CP, 1); } if (Streamer_g_OPLC) { return CallLocalFunction("Streamer_OnPlayerLeaveCP", "d", playerid); } return 1; } #if defined _ALS_OnPlayerLeaveCheckpoint #undef OnPlayerLeaveCheckpoint #else #define _ALS_OnPlayerLeaveCheckpoint #endif #define OnPlayerLeaveCheckpoint Streamer_OnPlayerLeaveCP forward Streamer_OnPlayerLeaveCP(playerid); public OnPlayerEnterRaceCheckpoint(playerid) { if (!IsPlayerNPC(playerid)) { Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_RACE_CP, 0); } if (Streamer_g_OPERC) { return CallLocalFunction("Streamer_OnPlayerEnterRaceCP", "d", playerid); } return 1; } #if defined _ALS_OnPlayerEnterRaceCP #undef OnPlayerEnterRaceCheckpoint #else #define _ALS_OnPlayerEnterRaceCP #endif #define OnPlayerEnterRaceCheckpoint Streamer_OnPlayerEnterRaceCP forward Streamer_OnPlayerEnterRaceCP(playerid); public OnPlayerLeaveRaceCheckpoint(playerid) { if (!IsPlayerNPC(playerid)) { Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_RACE_CP, 1); } if (Streamer_g_OPLRC) { return CallLocalFunction("Streamer_OnPlayerLeaveRaceCP", "d", playerid); } return 1; } #if defined _ALS_OnPlayerLeaveRaceCP #undef OnPlayerLeaveRaceCheckpoint #else #define _ALS_OnPlayerLeaveRaceCP #endif #define OnPlayerLeaveRaceCheckpoint Streamer_OnPlayerLeaveRaceCP forward Streamer_OnPlayerLeaveRaceCP(playerid); // PAWN Invoke Section forward Streamer_PublicFunction(); public Streamer_PublicFunction() { new Float:value; CreatePickup(0, 0, 0.0, 0.0, 0.0, 0); CreatePlayer3DTextLabel(0, "", 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0); CreatePlayerObject(0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); DeletePlayer3DTextLabel(0, PlayerText3D:0); DestroyPickup(0); DestroyPlayerObject(0, 0); DisablePlayerCheckpoint(0); DisablePlayerRaceCheckpoint(0); GetPlayerInterior(0); GetPlayerPos(0, value, value, value); GetPlayerState(0); GetPlayerVirtualWorld(0); GetVehiclePos(0, value, value, value); MovePlayerObject(0, 0, 0.0, 0.0, 0.0, 0.0); RemovePlayerMapIcon(0, 0); SetPlayerCheckpoint(0, 0.0, 0.0, 0.0, 0.0); SetPlayerMapIcon(0, 0, 0.0, 0.0, 0.0, 0, 0, 0); SetPlayerObjectPos(0, 0, 0.0, 0.0, 0.0); SetPlayerObjectRot(0, 0, 0.0, 0.0, 0.0); SetPlayerRaceCheckpoint(0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); StopPlayerObject(0, 0); UpdatePlayer3DTextLabelText(0, PlayerText3D:0, 0, ""); return 1; } [/pawn] im da aceste errori dc? [pawn]C:\Users\Cbu-Samp\Desktop\BestLife\pawno\include\Streamer.inc(400) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 11168 bytes Code size: 1724288 bytes Data size: 6726124 bytes Stack/heap size: 16384 bytes; estimated max. usage=4123 cells (16492 bytes) Total requirements: 8477964 bytes 1 Warning. [/pawn] Ala e streamer din include . am si plugins si in gm nu am niciun OnPlayerEnterRaceCheckpoint
  22. am dat reloadfs ... numai ca mia mai adaugat inca o masina ... pe langa alealate akm sunt 3.. Edit akm am dat un restart si du reloadfs si vad ca nu imi mai face probleme,, ms Stunt man Din Nou si daca dau /rcon unloadfs si dp /rcon load fs tot sar putea sa dea crasch svr?? MS
  23. si tre sa mai dau restart la server sau reloadfs
  24. deci am facut un fs cu masini personale ... Adaug masinile tot ce trebuie . intru in joc si merge.. numai ca atunci cand vreau sa adaug o alta masina in FS .. Trebuie sa dau RESTART la sVR??? eu fac asa /rcon relogfs numele... dar este o problema... imi dubleaza masinile care leam adaugat in fs .. de ex dintrun nrg imi face 2. cum as putea facE^? [pawn]#include <a_samp> #define COLOR_RED 0xAA3333AA new mihaitza1; new cristi; new bestplayer; new pname[MAX_PLAYER_NAME]; public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); mihaitza1 = AddStaticVehicle(522,840.9318,-894.6578,68.7734,93.9336,144,1); // Exemplu cristi = AddStaticVehicle(522,810.4871,-1449.0184,12.6218,81.7336,1,1); // CRISTI bestplayer = AddStaticVehicle(522,807.9730,-1446.7577,12.9831,87.3517,6,6); // BesTPlayeR return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { new vehicleid = GetPlayerVehicleID(playerid); GetPlayerName(playerid, pname, sizeof pname); if(newstate == PLAYER_STATE_DRIVER) { if(vehicleid == mihaitza1) { if(strcmp(pname, "mihaitza.romania", true) == 0) { return 1; } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_RED, "Aceasta este masina lui mihaitza.romania!"); } } if(vehicleid == cristi) { if(strcmp(pname, "CRISTI", true) == 0) { return 1; } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_RED, "Aceasta este masina lui CRISTI!"); } } if(vehicleid == bestplayer) { if(strcmp(pname, "BesTPlayeR", true) == 0) { return 1; } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_RED, "Aceasta este masina lui BesTPlayeR!"); } } } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/respawnmycar", cmdtext, true, 10) == 0) { if(strcmp(pname, "mihaitza.romania", true) == 0) { SetVehicleToRespawn(mihaitza1); SendClientMessage(playerid, COLOR_RED, "Ti-ai respawnat masina ta personala!"); }else{ SendClientMessage(playerid, COLOR_RED, "Nu ai o masina personala!"); } if(strcmp(pname, "CRISTI", true) == 0) { SetVehicleToRespawn(cristi); SendClientMessage(playerid, COLOR_RED, "Ti-ai respawnat masina ta personala!"); }else{ SendClientMessage(playerid, COLOR_RED, "Nu ai o masina personala!"); } if(strcmp(pname, "BesTPlayeR", true) == 0) { SetVehicleToRespawn(bestplayer); SendClientMessage(playerid, COLOR_RED, "Ti-ai respawnat masina ta personala!"); }else{ SendClientMessage(playerid, COLOR_RED, "Nu ai o masina personala!"); } return 1; } return 0; } [/pawn]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.