Szerző Téma: NPC-k rosszalkodnak :@  (Megtekintve 957 alkalommal)

NPC-k rosszalkodnak :@
« Dátum: 2011. július 19. - 23:24:48 »
0 Show voters
Hali!
Rég fordultam ide segítségetekért hát most újra kérlek titeket hogy magyarázzátok el miért is történik ez a dolog: Az NPC-k felcsatlakoznak a szerverre, eddig minden ok de, 15-20 mp múlva az NPC-k fele úgy dönt hogy nem kívánnak a szerveren maradni és lelépnek Disconect a banda másik fele pedig vígan teszik a dolgukat... Itt a script de nem hiszem hogy ezzel lenne a baj:
 
      #include <a_samp>
#include <streamer>
#define CreateObject CreateDynamicObject
#define COLOR_PURPLE 0xC2A2DAAA //bíbor
new npcname[MAX_PLAYER_NAME];
new hunter1;
new hunter2;
new hydra1;
new hydra2;
new hydra3;
new rhino1;
new rhino2;
new barracks1;
new cargobob1;
new nevada1;
new rustler1;
new shamal1;
public OnFilterScriptInit()
{
CreateObject(8172,305.48544312,1865.88378906,16.77386856,0.00000000,0.00000000,0.00000000); //object(vgssairportland07) (1)
CreateObject(8171,305.51556396,2012.45593262,16.74062347,0.00000000,0.00000000,0.00000000); //object(vgssairportland06) (1)
CreateObject(1683,366.18997192,1908.05834961,22.54325104,0.00000000,0.00000000,180.00000000); //object(ap_jumbo_01) (1)
CreateObject(8661,370.20172119,1899.16467285,16.64062500,0.00000000,0.00000000,0.00000000); //object(gnhtelgrnd_lvs) (1)
CreateObject(8661,370.18093872,1919.13085938,16.66562462,0.00000000,0.00000000,0.00000000); //object(gnhtelgrnd_lvs) (2)
CreateObject(8661,370.16766357,1939.08752441,16.66562462,0.00000000,0.00000000,0.00000000); //object(gnhtelgrnd_lvs) (3)
CreateObject(8661,370.13647461,1959.03784180,16.66562462,0.00000000,0.00000000,0.00000000); //object(gnhtelgrnd_lvs) (4)
CreateObject(8661,370.10531616,1979.01342773,16.66562462,0.00000000,0.00000000,0.00000000); //object(gnhtelgrnd_lvs) (5)
CreateObject(8661,370.07827759,1998.96862793,16.66562462,0.00000000,0.00000000,0.00000000); //object(gnhtelgrnd_lvs) (6)
CreateObject(8661,330.24502563,1899.18664551,16.64062500,0.00000000,0.00000000,180.00000000); //object(gnhtelgrnd_lvs) (7)
CreateObject(8661,330.25067139,1919.14428711,16.64062500,0.00000000,0.00000000,179.99450684); //object(gnhtelgrnd_lvs) (8)
CreateObject(8661,330.25085449,1939.12182617,16.64062500,0.00000000,0.00000000,179.99450684); //object(gnhtelgrnd_lvs) (9)
CreateObject(8661,330.25289917,1958.96313477,16.64062500,0.00000000,0.00000000,179.99450684); //object(gnhtelgrnd_lvs) (10)
CreateObject(8661,330.29769897,1978.86706543,16.64062500,0.00000000,0.00000000,179.99450684); //object(gnhtelgrnd_lvs) (11)
CreateObject(8661,330.28579712,1998.82983398,16.64062500,0.00000000,0.00000000,179.99450684); //object(gnhtelgrnd_lvs) (12)
CreateObject(8661,335.16833496,2028.58581543,16.64062500,0.00000000,0.00000000,269.99450684); //object(gnhtelgrnd_lvs) (13)
CreateObject(8661,380.20214844,2027.84399414,16.66560555,0.00000000,0.00000000,269.98901367); //object(gnhtelgrnd_lvs) (14)
CreateObject(8661,379.72528076,2061.04272461,16.66560555,0.00000000,0.00000000,269.98901367); //object(gnhtelgrnd_lvs) (15)
CreateObject(8661,359.92333984,2061.12451172,16.66560555,0.00000000,0.00000000,269.98901367); //object(gnhtelgrnd_lvs) (16)
CreateObject(8661,340.39089966,2061.18530273,16.66560555,0.00000000,0.00000000,269.98901367); //object(gnhtelgrnd_lvs) (17)
CreateObject(8661,320.49545288,2060.97558594,16.66560555,0.00000000,0.00000000,269.98901367); //object(gnhtelgrnd_lvs) (18)
CreateObject(8661,345.51074219,1856.02441406,17.98407555,0.00000000,0.00000000,269.99450684); //object(gnhtelgrnd_lvs) (19)
CreateObject(8661,345.76062012,1825.82666016,17.93407631,0.00000000,0.00000000,269.98901367); //object(gnhtelgrnd_lvs) (20)
CreateObject(8661,325.89440918,1825.80041504,16.70906448,7.25000000,0.00000000,269.98852539); //object(gnhtelgrnd_lvs) (22)
CreateObject(8661,325.71386719,1856.01440430,16.68406487,7.24548340,0.00000000,269.98352051); //object(gnhtelgrnd_lvs) (23)
CreateObject(8661,345.36715698,1879.41308594,16.66195297,0.00000000,0.00000000,179.98901367); //object(gnhtelgrnd_lvs) (24)
CreateObject(8661,367.88336182,1891.25366211,16.66195297,0.00000000,0.00000000,201.98352051); //object(gnhtelgrnd_lvs) (25)
CreateObject(8661,345.52178955,1895.52893066,15.55907822,0.00000000,353.00000000,269.98901367); //object(gnhtelgrnd_lvs) (28)
CreateObject(8661,325.74185181,1895.68811035,14.25906372,7.19119263,352.94421387,270.87121582); //object(gnhtelgrnd_lvs) (31)
CreateObject(647,333.46981812,1885.03430176,17.51370239,0.00000000,0.00000000,358.00000000); //object(new_bushsm) (1)
CreateObject(647,329.39019775,1883.32580566,17.51370239,0.00000000,0.00000000,357.99499512); //object(new_bushsm) (2)
CreateObject(647,328.31787109,1885.19030762,17.51370239,0.00000000,0.00000000,357.99499512); //object(new_bushsm) (3)
CreateObject(647,331.16662598,1885.10021973,17.51370239,0.00000000,0.00000000,357.99499512); //object(new_bushsm) (4)
CreateObject(647,331.23626709,1882.44372559,17.51370239,0.00000000,0.00000000,357.99499512); //object(new_bushsm) (5)
CreateObject(647,329.47967529,1880.32714844,17.51370239,0.00000000,0.00000000,357.99499512); //object(new_bushsm) (6)
CreateObject(647,328.54553223,1882.72497559,17.51370239,0.00000000,0.00000000,357.99499512); //object(new_bushsm) (7)
CreateObject(647,332.70385742,1883.82250977,17.51370239,0.00000000,0.00000000,357.99499512); //object(new_bushsm) (8)
CreateObject(647,332.63745117,1884.52612305,17.51370239,0.00000000,0.00000000,357.99499512); //object(new_bushsm) (9)
CreateObject(8661,355.23635864,1894.34497070,5.68409014,277.16186523,257.97131348,167.86859131); //object(gnhtelgrnd_lvs) (34)
CreateObject(754,360.36575317,1885.14880371,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (1)
CreateObject(754,361.78503418,1885.17822266,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (2)
CreateObject(754,363.53375244,1885.21447754,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (3)
CreateObject(754,365.28277588,1885.25061035,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (4)
CreateObject(754,367.28173828,1885.29199219,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (5)
CreateObject(754,369.03082275,1885.32873535,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (6)
CreateObject(754,370.52990723,1885.35961914,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (7)
CreateObject(754,372.27886963,1885.39611816,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (8)
CreateObject(754,374.27783203,1885.43750000,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (9)
CreateObject(754,376.52679443,1885.48474121,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (10)
CreateObject(754,378.02600098,1885.51586914,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (11)
CreateObject(754,359.03002930,1885.11669922,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (12)
CreateObject(754,357.52966309,1885.08471680,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (13)
CreateObject(754,356.52954102,1885.06298828,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (14)
CreateObject(754,356.56604004,1883.31250000,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (15)
CreateObject(754,356.59167480,1882.06250000,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (16)
CreateObject(754,356.61181641,1881.06250000,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (17)
CreateObject(754,356.64807129,1879.31250000,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (18)
CreateObject(754,356.67370605,1878.06250000,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (19)
CreateObject(754,358.31219482,1883.34924316,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (20)
CreateObject(754,359.81115723,1883.38012695,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (21)
CreateObject(754,361.56011963,1883.41662598,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (22)
CreateObject(754,362.80926514,1883.44226074,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (23)
CreateObject(754,364.30822754,1883.47290039,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (24)
CreateObject(754,365.80725098,1883.50415039,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (25)
CreateObject(754,367.05633545,1883.53015137,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (26)
CreateObject(754,369.05517578,1883.57128906,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (27)
CreateObject(754,368.05493164,1883.55029297,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (28)
CreateObject(754,371.05395508,1883.61279297,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (29)
CreateObject(754,373.08810425,1884.38037109,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (30)
CreateObject(754,358.33380127,1881.74560547,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (31)
CreateObject(754,360.33276367,1881.71093750,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (32)
CreateObject(754,362.08181763,1881.68103027,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (33)
CreateObject(754,363.58087158,1881.65502930,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (34)
CreateObject(754,365.07989502,1881.62866211,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (35)
CreateObject(754,366.57891846,1881.60229492,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (36)
CreateObject(754,368.33651733,1882.07165527,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (37)
CreateObject(754,369.60299683,1883.04992676,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (38)
CreateObject(754,358.30657959,1880.49206543,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (39)
CreateObject(754,360.05545044,1880.46130371,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (40)
CreateObject(754,362.05444336,1880.42675781,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (41)
CreateObject(754,363.81210327,1880.89685059,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (42)
CreateObject(754,358.26916504,1878.49047852,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (43)
CreateObject(754,359.27273560,1878.72314453,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (44)
CreateObject(754,360.78948975,1879.69702148,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (45)
CreateObject(754,374.62774658,1884.71130371,16.67354012,0.00000000,0.00000000,0.00000000); //object(sm_des_cactiigrp) (46)
CreateObject(8661,345.71633911,1807.85473633,-1.94092309,0.00000000,95.74978638,269.98901367); //object(gnhtelgrnd_lvs) (37)
CreateObject(8661,328.53036499,1802.22863770,-2.74592876,353.36633301,280.31616211,91.58679199); //object(gnhtelgrnd_lvs) (38)
CreateObject(3526,320.42385864,1800.73913574,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (1)
CreateObject(9241,373.68359375,1981.27172852,18.14953232,0.00000000,0.00000000,0.00000000); //object(copbits_sfn) (1)
CreateObject(9241,348.73171997,1981.26293945,18.14953232,0.00000000,0.00000000,0.00000000); //object(copbits_sfn) (2)
CreateObject(9241,373.56076050,1950.10681152,18.14953232,0.00000000,0.00000000,0.00000000); //object(copbits_sfn) (3)
CreateObject(9241,348.58145142,1950.10327148,18.14953232,0.00000000,0.00000000,0.00000000); //object(copbits_sfn) (4)
CreateObject(3526,320.90493774,1833.43359375,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (2)
CreateObject(3526,320.99685669,1852.94934082,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (3)
CreateObject(3526,320.99179077,1864.20629883,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (4)
CreateObject(3526,320.96173096,1876.21289062,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (5)
CreateObject(3526,320.84967041,1888.51782227,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (6)
CreateObject(3526,320.84603882,1900.29455566,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (7)
CreateObject(3526,320.84103394,1913.04394531,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (8)
CreateObject(3526,320.83468628,1929.79394531,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (9)
CreateObject(3526,321.01992798,1944.56274414,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (10)
CreateObject(3526,320.95593262,1959.34570312,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (11)
CreateObject(3526,320.98129272,1971.51428223,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (12)
CreateObject(3526,320.92196655,1987.27905273,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (13)
CreateObject(3526,320.99328613,2003.92626953,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (14)
CreateObject(3526,321.04672241,2018.97460938,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (15)
CreateObject(3526,321.00335693,2034.91699219,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (16)
CreateObject(3526,320.90563965,2049.04541016,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (17)
CreateObject(3526,320.93237305,2061.87915039,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (18)
CreateObject(3526,325.25555420,2080.62207031,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (19)
CreateObject(3526,320.98037720,2080.56713867,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (20)
CreateObject(3526,323.20465088,2080.57202148,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (21)
CreateObject(3526,290.09884644,2080.62402344,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (22)
CreateObject(3526,287.97232056,2080.65429688,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (23)
CreateObject(3526,285.79202271,2080.61645508,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (24)
CreateObject(3526,290.32757568,1833.37841797,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (25)
CreateObject(3526,290.19049072,1853.76269531,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (26)
CreateObject(3526,290.06890869,1864.51611328,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (27)
CreateObject(3526,289.66244507,1876.25988770,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (28)
CreateObject(3526,289.99810791,1887.52929688,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (29)
CreateObject(3526,289.88159180,1901.03466797,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (30)
CreateObject(3526,290.21484375,1913.80493164,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (31)
CreateObject(3526,290.20428467,1930.04138184,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (32)
CreateObject(3526,290.23416138,1945.10485840,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (33)
CreateObject(3526,290.09875488,1959.86010742,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (34)
CreateObject(3526,289.99172974,1972.36437988,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (35)
CreateObject(3526,290.14675903,1988.13073730,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (36)
CreateObject(3526,290.06375122,2004.98767090,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (37)
CreateObject(3526,290.20312500,2019.75317383,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (38)
CreateObject(3526,290.17315674,2035.09130859,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (39)
CreateObject(3526,290.09655762,2049.60717773,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (40)
CreateObject(3526,290.16442871,2062.09033203,16.83447266,0.00000000,0.00000000,270.00000000); //object(vegasairportlight) (41)
CreateObject(3664,304.41036987,2075.14257812,15.11950302,310.00000000,0.00000000,0.00000000); //object(lasblastde_las) (3)
CreateObject(3664,320.10836792,2075.49340820,15.11950302,309.99572754,0.00000000,0.00000000); //object(lasblastde_las) (4)
 
    hunter1 = CreateVehicle(425, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
    hunter2 = CreateVehicle(425, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
    hydra1 = CreateVehicle(520, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
    hydra2 = CreateVehicle(520, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
    hydra3 = CreateVehicle(520, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
        rhino1 = CreateVehicle(432, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
        rhino2 = CreateVehicle(432, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
       
        barracks1 = CreateVehicle(433, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
        cargobob1 = CreateVehicle(548, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
        nevada1= CreateVehicle(553, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
        rustler1 = CreateVehicle(476, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
        shamal1 = CreateVehicle(519, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000);
ConnectNPC(\"hunter1\",\"hunter1\");
ConnectNPC(\"hunter2\",\"hunter2\");
ConnectNPC(\"hydra1\",\"hydra1\");
ConnectNPC(\"hydra2\",\"hydra2\");
ConnectNPC(\"hydra3\",\"hydra3\");
ConnectNPC(\"rhino1\",\"rhino1\");
ConnectNPC(\"rhino2\",\"rhino2\");
ConnectNPC(\"barracks1\",\"barracks1\");
ConnectNPC(\"cargobob1\",\"cargobob1\");
ConnectNPC(\"nevada1\",\"nevada1\");
ConnectNPC(\"rustler1\",\"rustler1\");
ConnectNPC(\"shamal1\",\"shamal1\");
ConnectNPC(\"bejaratorzo1\",\"bejaratorzo1\");
ConnectNPC(\"repterorzo1\",\"repterorzo1\");
ConnectNPC(\"repterorzo2\",\"repterorzo2\");
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
    {
    //Jármû vezetõ NPC-k
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, \"hunter1\", true))
    {
      PutPlayerInVehicle(playerid, hunter1, 0);
      SetPlayerSkin(playerid, 255);
      ResetPlayerWeapons(playerid);
      SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"hunter2\", true))
{
PutPlayerInVehicle(playerid, hunter2, 0);
SetPlayerSkin(playerid, 83);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"hydra1\", true))
{
PutPlayerInVehicle(playerid, hydra1, 0);
SetPlayerSkin(playerid, 146);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"hydra2\", true))
{
PutPlayerInVehicle(playerid, hydra2, 0);
SetPlayerSkin(playerid, 167);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"hydra3\", true))
{
PutPlayerInVehicle(playerid, hydra3, 0);
SetPlayerSkin(playerid, 167);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"rhino1\", true))
{
PutPlayerInVehicle(playerid, rhino1, 0);
SetPlayerSkin(playerid, 167);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"rhino2\", true))
{
PutPlayerInVehicle(playerid, rhino2, 0);
SetPlayerSkin(playerid, 253);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"barracks1\", true))
{
PutPlayerInVehicle(playerid, barracks1, 0);
SetPlayerSkin(playerid, 253);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"cargobob1\", true))
{
PutPlayerInVehicle(playerid, cargobob1, 0);
SetPlayerSkin(playerid, 253);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"nevada1\", true))
{
PutPlayerInVehicle(playerid, nevada1, 0);
SetPlayerSkin(playerid, 253);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"rustler1\", true))
{
PutPlayerInVehicle(playerid, rustler1, 0);
SetPlayerSkin(playerid, 253);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"shamal1\", true))
{
PutPlayerInVehicle(playerid, shamal1, 0);
SetPlayerSkin(playerid, 253);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
//Gyalogos NPC-k
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"bejaratorzo1\", true))
{
SetPlayerSkin(playerid, 287);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"repterorzo1\", true))
{
SetPlayerSkin(playerid, 287);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"repterorzo2\", true))
{
SetPlayerSkin(playerid, 287);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,COLOR_PURPLE);
}
}
}

 
Vagy lehet az okoz problémát hogy sokan vannak egymás közelébe?

Gang[St]e[R]

  • Vendég
NPC-k rosszalkodnak :@
« Válasz #1 Dátum: 2011. július 19. - 23:35:29 »
0 Show voters
Hány npc van?

NPC-k rosszalkodnak :@
« Válasz #2 Dátum: 2011. július 19. - 23:43:29 »
0 Show voters
15

Koncz_Norbert

  • Vendég
NPC-k rosszalkodnak :@
« Válasz #3 Dátum: 2011. július 19. - 23:53:25 »
0 Show voters
Ez milyen kérdés? Lehet látni hogy 15 ConnectNPC van. D:
Amúgy elég lenne egyszer lekérni a nevet, másrészt hogy a karakter neve és fájla ne legyen a változó neve.

NPC-k rosszalkodnak :@
« Válasz #4 Dátum: 2011. július 20. - 00:00:13 »
0 Show voters
ez mind szép és jó norbikám de ettõl még nem fog megoldódni a problémám

Koncz_Norbert

  • Vendég
NPC-k rosszalkodnak :@
« Válasz #5 Dátum: 2011. július 20. - 00:10:30 »
0 Show voters
Ha már nem rakod ki az npcmodes tartalmát
akkor képtelen leszel kirakni print-et vagy printf-et hogy ellenõrizd a hibákat.

NPC-k rosszalkodnak :@
« Válasz #6 Dátum: 2011. július 20. - 00:16:44 »
0 Show voters
#define RECORDING \"hunter1\"
#define RECORDING_TYPE 1
#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#if RECORDING_TYPE == 1
    public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    public OnNPCExitVehicle() StopRecordingPlayback();
#else
    public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal