27.01.2014, 18:42
Hello.
Today, I decided to make a _ _ _ _ _ FS which would eventually get released here on SAMP forums, but I ran into a problem. I downloaded RNPC plugin and ARNPC include and went creating NPCs which are neccessary for this FS. Now, I need >20 NPCs (18 atm, to be exact) to connect in order to create somewhere playable mission. BUT, even though log says they connect/spawn, only 2 NPCs actually get spawned. What is the problem?
I also get 'blocked ip due to attack'-like message, I do understand I'm r*ping connects from one IP, but still don't seem to realize why can't they properly spawn (NPCs, ofc)?
Today, I decided to make a _ _ _ _ _ FS which would eventually get released here on SAMP forums, but I ran into a problem. I downloaded RNPC plugin and ARNPC include and went creating NPCs which are neccessary for this FS. Now, I need >20 NPCs (18 atm, to be exact) to connect in order to create somewhere playable mission. BUT, even though log says they connect/spawn, only 2 NPCs actually get spawned. What is the problem?
pawn Код:
public OnFilterScriptInit()
{
AddStaticVehicle(598,2039.6495,996.6635,10.3316,30.7603,33,33); // polcar1
AddStaticVehicle(598,2039.8739,1021.8156,10.3316,156.7971,33,33); // polcar2
AddStaticVehicle(598,2040.9565,1012.0996,10.4719,140.1337,0,0); // polcar3
AddStaticVehicle(598,2039.6195,988.6314,10.4177,29.7037,0,0); // polcar4
AddStaticVehicle(427,2057.3894,973.9127,10.1889,0.5516,33,33); // swatcar1
AddStaticVehicle(427,2044.4695,1038.7253,10.3300,176.4604,33,33); // swatcar2
AddStaticVehicle(427,2048.2524,957.0079,9.8703,273.6715,33,33); // swatcar3
NPC1 = CreateRNPC("Cop 1");
SetRNPCSkin(NPC1, 265);
SetRNPCPos(NPC1, 2043.9784,991.6365,10.6719);
SetRNPCFacingAngle(NPC1, 60.2700);
NPC2 = CreateRNPC("Cop 2");
SetRNPCSkin(NPC2, 266);
SetRNPCPos(NPC2, 2043.7156,997.5270,10.6719);
SetRNPCFacingAngle(NPC2, 62.1500);
NPC3 = CreateRNPC("Cop 3");
SetRNPCSkin(NPC3, 267);
SetRNPCPos(NPC3, 2043.7521,1013.2101,10.6719);
SetRNPCFacingAngle(NPC3, 102.8838);
NPC4 = CreateRNPC("Cop 4");
SetRNPCSkin(NPC4, 265);
SetRNPCPos(NPC4, 2041.7263,1010.2548,10.6719);
SetRNPCFacingAngle(NPC4, 102.8838);
NPC5 = CreateRNPC("Cop 5");
SetRNPCSkin(NPC5, 266);
SetRNPCPos(NPC5, 2043.4915,1026.3751,10.6719);
SetRNPCFacingAngle(NPC5, 138.2907);
NPC6 = CreateRNPC("Cop 6");
SetRNPCSkin(NPC6, 267);
SetRNPCPos(NPC6, 2040.5946,1031.6643,10.6719);
SetRNPCFacingAngle(NPC6, 154.2709);
NPC7 = CreateRNPC("SWAT 1");
SetRNPCSkin(NPC7, 285);
SetRNPCPos(NPC7, 2028.6028,991.5991,10.8203);
SetRNPCFacingAngle(NPC7, 22.8455);
NPC8 = CreateRNPC("SWAT 2");
SetRNPCSkin(NPC8, 285);
SetRNPCPos(NPC8, 2024.2234,990.4247,10.8203);
SetRNPCFacingAngle(NPC8, 9.6855);
NPC9 = CreateRNPC("SWAT 3");
SetRNPCSkin(NPC9, 285);
SetRNPCPos(NPC9, 2028.8922,1025.1443,10.8203);
SetRNPCFacingAngle(NPC9, 180.1404);
NPC10 = CreateRNPC("SWAT 4");
SetRNPCSkin(NPC10, 285);
SetRNPCPos(NPC10, 2028.8922,1025.1443,10.8203);
SetRNPCFacingAngle(NPC10, 165.1003);
NPC11 = CreateRNPC("SWAT 5");
SetRNPCSkin(NPC11, 285);
SetRNPCPos(NPC11, 2058.5010,970.3214,10.4639);
SetRNPCFacingAngle(NPC11, 62.5551);
NPC12 = CreateRNPC("SWAT 6");
SetRNPCSkin(NPC12, 285);
SetRNPCPos(NPC12, 2047.6262,1039.9038,10.6719);
SetRNPCFacingAngle(NPC12, 36.8615);
NPC13 = CreateRNPC("SWAT 7");
SetRNPCSkin(NPC13, 285);
SetRNPCPos(NPC13, 2050.5945,1030.2097,10.6719);
SetRNPCFacingAngle(NPC13, 149.3492);
NPC14 = CreateRNPC("SWAT 8");
SetRNPCSkin(NPC14, 285);
SetRNPCPos(NPC14, 2040.6152,961.4666,10.3177);
SetRNPCFacingAngle(NPC14, 134.6224);
NPC15 = CreateRNPC("SWAT 9");
SetRNPCSkin(NPC15, 285);
SetRNPCPos(NPC15, 2055.1809,959.7631,10.4000);
SetRNPCFacingAngle(NPC15, 21.2180);
NPC16 = CreateRNPC("SWAT 10");
SetRNPCSkin(NPC16, 285);
SetRNPCPos(NPC16, 2060.1340,986.4418,10.6719);
SetRNPCFacingAngle(NPC16, 29.0514);
NPC17 = CreateRNPC("Cop 7");
SetRNPCSkin(NPC17, 265);
SetRNPCPos(NPC17, 2043.7908,986.9569,10.6719);
SetRNPCFacingAngle(NPC17, 53.8339);
NPC18 = CreateRNPC("Cop 8");
SetRNPCSkin(NPC18, 266);
SetRNPCPos(NPC18, 2043.1403,989.7284,10.6719);
SetRNPCFacingAngle(NPC18,53.8339);
return 1;
}