Jump to content
  • 0

Problema NPC


[Funky]Anakin

Question

Am o problema cu NPC.A bagat un fs cu NPC si ei nu se vad pe server.Am pus fisierul cu npcmodes in scriptfiles.Si include-ul.

Acesta e fs:

[pawn]/------------------------------------------------------------------------------

//NPC SCRIPT MADY BY FLAKE AND REDIRECT_LEFT V1CEC1TY

//

/*

there are < 40 > NPC's in total

one Command /party to join the NPC party in los santos

A special thanks to Redirect_left for helping with the 3DTextLabel's also to Madruga

for suplying the UFO and those NPC;s

Also helped V1ceC1ty for the dancing NPC's

This is Version 4.5

//------------------------------------------------------------------------------

//==============================================================================

*/

#include <a_samp>

#define COLOR_GREEN 0x33AA33AA

//so Far there are 68 NPC's

new Random; //this is for the on foot NPC's

new Boat;

new coach,Coach2;

new Beagle;

new Plane1,Plane2,Plane3;

new Taxi1;

new Stunter;

new Limo1;

new Limo2;

new Tug;

new LVTaxi;

new Dodo;

new Elegy;

new race;

new race2;

new carroFBI1;

new carroFBI2;

new carroFBI3;

new carroFBI4;

new carroFBI5;

new carroFBI6;

new tsf;

new tlv;

new tls;

public OnGameModeInit()

{

//--this lets the NPC's connect to your server

ConnectNPC("Boater","Boater");

ConnectNPC("Coach","Coach");

ConnectNPC("Beagle","Beagle");

ConnectNPC("Coach2","Coach2");

    ConnectNPC("Taxi1","Taxi1");

ConnectNPC("Pilot_ymtisd","at400_lv");

ConnectNPC("Pilot_pip","at400_sf");

ConnectNPC("Pilot_Flake","at400_ls");

    ConnectNPC("Stunter","Stunter");

    ConnectNPC("Limo1","limo1");

ConnectNPC("Limo2","limo2");

ConnectNPC("Tug","tug");

ConnectNPC("LVTaxi","lvtaxi");

ConnectNPC("Dodo","dodo");

ConnectNPC("Elegy","elegy");

    ConnectNPC("StageDancer1","stagedancer1");

    ConnectNPC("StageDancer2","stagedancer2");

    ConnectNPC("StageDancer3","stagedancer3");

    ConnectNPC("Bystander","bystander");

    ConnectNPC("DrinkServer","drinkserver");

    ConnectNPC("VIPMember","vipmember");

    ConnectNPC("Security","security");

    ConnectNPC("race","race");

ConnectNPC("race2","race2");

//---This makes the Npc's spawn--

Boat = AddStaticVehicle(484,-1988.0057,116.6116,27.6411,0.6686,75,59);

coach = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);

Coach2 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);

Beagle = AddStaticVehicle(511,-1988.0057,116.6116,27.6411,0.6686,75,59);

Plane1 = AddStaticVehicle(77,-1988.0057,116.6116,27.6411,0.6686,75,59);

Plane2 = AddStaticVehicle(577,-1988.0057,116.6116,27.6411,0.6686,75,59);

Plane3 = AddStaticVehicle(577,-1988.0057,116.6116,27.6411,0.6686,75,59);

Taxi1 = AddStaticVehicle(420,-1988.0057,116.6116,27.6411,0.6686,75,59);

Stunter = AddStaticVehicle(411,-1988.0057,116.6116,27.6411,0.6686,75,59);

Limo1 = AddStaticVehicle(409,2125.1548,1045.6689,10.6029,125.6300,1,1); // limo1

Limo2 = AddStaticVehicle(409,2039.3546,989.0201,10.4719,179.9125,0,0); // limo2

Tug = AddStaticVehicle(583,1633.1984,1648.5555,10.3607,177.7618,1,1); // tug

LVTaxi = AddStaticVehicle(420,1710.0829,1452.1614,10.5395,343.1176,6,1); // taxi

Dodo = AddStaticVehicle(593,1327.7201,1581.3104,11.2769,271.5139,51,1); // dodo

Elegy =  AddStaticVehicle(562,2085.3762,863.2629,6.4877,89.4885,33,33); // elegy

Random = AddStaticVehicle(420,2044.8854,1473.2106,10.4494,181.3339,6,1); // Makes sure the NPC Spawns

race =  AddStaticVehicle(411,2085.3762,863.2629,6.4877,89.4885,33,33); // elegy

race2 = AddStaticVehicle(411,2044.8854,1473.2106,10.4494,181.3339,6,1); // Makes sure the NPC Spawns

carroFBI1 = CreateVehicle(497, 0.0, 0.0, 5.0, 0.0, -1, -1, 5000); // Police Maverick

    carroFBI2 = CreateVehicle(490, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000); // FBI Rancher

    carroFBI3 = CreateVehicle(470, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); // Patriot

    carroFBI4 = CreateVehicle(433, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); // Barracks

    carroFBI5 = CreateVehicle(433, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); // Barracks

    carroFBI6 = CreateVehicle(548, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); // Cargobob

    tsf = AddStaticVehicle(537,-1988.0057,116.6116,27.6411,0.6686,75,59);

tlv = AddStaticVehicle(538,-1988.0057,116.6116,27.6411,0.6686,75,59);

tls = AddStaticVehicle(538,-1988.0057,116.6116,27.6411,0.6686,75,59);

//------------------------------------------------------------------------------

//these are objects that the npc will use to do its stunts

CreateObject(1634,-1266.577,-190.904,14.446,0.0,0.0,45.000);

CreateObject(1634,-1271.121,-186.348,14.446,0.0,0.0,225.000);

CreateObject(1634,-957.963,-220.309,-345.197,0.0,-37.815,289.689);

CreateObject(1634,-1264.922,-185.149,14.446,0.0,0.0,-225.000);

CreateObject(1634,-1271.860,-193.109,14.446,0.0,0.0,315.000);

CreateObject(18449,-1301.436,5.321,15.717,0.0,-3.438,-44.141);

CreateObject(18449,-1299.442,4.185,19.017,0.0,-8.594,-43.281);

CreateObject(18449,-1293.634,-1.235,23.085,0.0,-12.892,-43.281);

CreateObject(18449,-1288.125,-6.742,27.788,0.0,-24.924,-43.281);

CreateObject(18449,-1280.633,-13.288,35.355,0.0,-24.924,-43.281);

CreateObject(18449,-1294.906,-0.195,29.303,0.0,-35.237,-43.281);

CreateObject(18449,-1277.102,-16.661,45.734,0.0,-44.691,-43.281);

CreateObject(18449,-1271.461,-21.984,56.458,0.0,-51.566,-43.281);

CreateObject(18449,-1269.466,-27.213,65.927,0.0,-55.004,-51.875);

CreateObject(18449,-1239.734,-4.075,-179.116,0.0,-52.426,224.218);

CreateObject(18449,-1277.186,-17.299,60.409,0.0,-79.068,-49.297);

CreateObject(18449,-1327.108,31.294,16.436,0.0,-7.735,-44.141);

CreateObject(18449,-1281.542,-12.933,43.059,0.0,-66.177,-49.297);

CreateObject(18449,-943.862,-224.878,-259.072,0.0,-43.831,177.499);

CreateObject(18449,-1287.920,25.462,31.803,0.0,0.0,-44.141);

CreateObject(1634,-1276.876,-5.813,39.388,0.0,-38.675,-85.393);

CreateObject(1634,-1276.944,-7.445,43.101,0.0,-53.285,-47.733);

CreateObject(975,-1289.233,-10.673,35.826,0.0,0.0,33.750);

CreateObject(975,-1288.915,-8.482,35.655,0.0,0.0,33.750);

CreateObject(1634,-1280.826,-9.087,41.653,0.0,-53.285,-103.983);

CreateObject(1634,-1286.660,-7.749,39.352,0.0,-20.626,-134.604);

CreateObject(1634,-1262.056,29.544,-300.042,0.0,-32.659,-134.604);

CreateObject(975,-1291.201,-4.316,35.302,0.0,-53.285,-13.751);

CreateObject(974,-1291.142,-10.438,39.397,0.0,48.988,49.607);

CreateObject(18449,-1309.527,14.350,22.667,0.0,-26.643,-43.281);

CreateObject(18449,-1304.015,8.436,29.668,0.0,-23.205,-42.422);

CreateObject(971,-1293.642,-11.378,44.497,0.0,0.0,45.000);

CreateObject(971,-1277.347,-10.843,48.946,0.0,0.0,36.328);

CreateObject(971,-1283.711,-12.966,47.226,0.0,0.0,-8.672);

CreateObject(971,-1288.454,-11.895,45.416,0.0,0.0,-8.672);

CreateObject(971,-1282.491,-1.232,44.439,0.0,0.0,-42.422);

CreateObject(18449,-1262.308,1.871,34.715,0.0,-13.751,-41.640);

CreateObject(971,-1257.206,7.370,40.094,0.0,-21.486,-51.093);

CreateObject(971,-1269.967,17.896,45.516,0.0,-21.486,-51.093);

CreateObject(971,-1270.514,15.647,36.717,0.0,-21.486,-51.093);

CreateObject(971,-1267.393,15.020,38.987,0.0,-21.486,-51.093);

CreateObject(971,-1262.823,11.152,38.244,0.0,-21.486,-51.093);

CreateObject(971,-1261.682,11.407,41.474,0.0,-21.486,-51.093);

CreateObject(971,-1256.189,7.298,46.388,0.0,-21.486,-51.093);

CreateObject(971,-1254.397,3.577,42.068,0.0,-21.486,-51.093);

CreateObject(971,-1265.538,13.596,48.683,0.0,-21.486,-51.093);

CreateObject(18449,-1317.501,54.257,37.882,0.0,12.032,-44.141);

CreateObject(18449,-1339.865,75.919,47.438,0.0,21.486,-44.141);

CreateObject(18449,-1363.631,98.952,63.403,0.0,28.361,-44.141);

CreateObject(18449,-1395.623,130.223,89.850,0.0,31.799,-44.141);

CreateObject(18449,-1448.132,180.738,113.972,0.0,5.157,-44.141);

CreateObject(18449,-1497.333,232.115,93.269,0.0,-35.237,-48.360);

CreateObject(1634,-1514.360,258.318,73.163,0.0,0.0,45.000);

CreateObject(1634,-1517.249,255.505,73.174,0.0,0.0,45.000);

CreateObject(1634,-1520.068,252.992,73.304,0.0,0.0,45.000);

CreateObject(979,-1470.332,209.689,117.243,0.0,0.0,-11.250);

CreateObject(979,-1476.803,201.613,117.170,0.0,0.0,-67.500);

CreateObject(979,-1475.948,202.040,117.146,0.0,0.0,-56.250);

CreateObject(979,-1475.265,202.672,117.142,0.0,0.0,-45.000);

CreateObject(979,-1470.590,208.660,117.203,0.0,0.0,-22.500);

CreateObject(979,-1471.048,207.710,117.178,0.0,0.0,-33.750);

CreateObject(979,-1472.981,203.496,117.062,0.0,0.0,-67.500);

CreateObject(994,-1463.485,197.525,116.466,0.0,0.0,-42.422);

CreateObject(994,-1463.923,195.550,116.371,0.0,0.0,-33.750);

CreateObject(994,-1459.651,193.481,115.964,0.0,0.0,-11.250);

CreateObject(994,-1459.525,192.285,115.881,0.0,0.0,-11.250);

CreateObject(993,-1457.139,187.338,116.136,0.0,0.0,45.000);

CreateObject(993,-1456.053,198.927,116.808,0.0,0.0,45.000);

CreateObject(993,-1449.750,195.563,117.160,0.0,0.0,45.000);

CreateObject(994,-1467.938,199.806,116.898,0.0,0.0,-45.000);

CreateObject(994,-1467.347,201.178,116.946,0.0,0.0,-42.422);

//UFO

  CreateObject(10955, 1924.842, -587.859, 59.764, 38.675, 0.0, 193.015);

  CreateObject(10955, 1924.885, -587.685, 59.645, 0.0, 38.675, 103.015);

  CreateObject(10955, 1923.905, -583.159, 65.475, 0.0, 218.555, 103.015);

  CreateObject(10955, 1923.717, -583.436, 65.499, -141.334, 0.0, 193.015);

  CreateObject(791, 1942.607, -572.136, 6.953, 40.394, 8.594, 0.0);

  CreateObject(791, 1985.908, -567.111, 20.678, 55.004, 8.594, -12.892);

  CreateObject(791, 1988.251, -578.387, 30.042, 42.112, 8.594, 39.534);

  CreateObject(791, 1972.188, -621.665, 53.508, 29.221, 0.0, 39.534);

  CreateObject(3461, 1950.360, -395.645, 21.637, 0.0, 0.0, 0.0);

  CreateObject(791, 1937.663, -635.915, 53.508, 29.221, 0.0, 39.534);

//------------------------------------------------------------------------------

print(" NPC mega pack.. Loaded!");

print("  Made by Memoryz, flake and V1cec1ity"); //Please do not remove this, this is all I ask in return

return 1;

}

public OnPlayerSpawn(playerid)

{

    if(!IsPlayerNPC(playerid)) return 0;

  new npcname[MAX_PLAYER_NAME];

    GetPlayerName(playerid, npcname, sizeof(npcname));

new playername[64];

GetPlayerName(playerid,playername,64);

if(!strcmp(playername,"Boater",true)) {

        PutPlayerInVehicle(playerid, Boat, 0);

        SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

        new Text3D:boat = Create3DTextLabel("NPC_BoatDriver(ID:0)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(boat, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Coach",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, coach, 0);

    new Text3D:Coach = Create3DTextLabel("NPC_BusDriver(ID:1)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(Coach, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Beagle",true)) {

        SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

    PutPlayerInVehicle(playerid, Beagle, 0);

    new Text3D:beagle = Create3DTextLabel("NPC_BeagleDriver(ID:2)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(beagle, playerid, 0.0, 0.0, 0.5);

}

    else if(!strcmp(playername,"Pilot_ymtisd",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

  PutPlayerInVehicle(playerid, Plane1, 0);

  new Text3D:PTD1 = Create3DTextLabel("NPC_PilotYmtisd(ID:3)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Pilot_Flake",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

  PutPlayerInVehicle(playerid, Plane2, 0);

  new Text3D:PTD2 = Create3DTextLabel("NPC_PilotFlake(ID:4)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD2, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Pilot_Pip",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

  PutPlayerInVehicle(playerid, Plane3, 0);

  new Text3D:PTD3 = Create3DTextLabel("NPC_PilotPip(ID:5)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD3, playerid, 0.0, 0.0, 0.5);

}

    else if(!strcmp(playername,"Coach2",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Coach2, 0);

new Text3D:PTD1 = Create3DTextLabel("NPC_CoachDriver(ID:6)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Taxi1",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Taxi1, 0);

new Text3D:PTD1 = Create3DTextLabel("NPC_SFTaxi(ID:7)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Stunter",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Stunter, 0);

new Text3D:PTD1 = Create3DTextLabel("NPC_Stunter(ID:8)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

if(!strcmp(playername,"Limo1",true)) {

        PutPlayerInVehicle(playerid, Limo1, 0);

        SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

        SetPlayerColor(playerid,0xFF9900AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_Limo1(ID:9)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Limo2",true)) {

    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Limo2, 0);

SetPlayerColor(playerid,0xFF9900AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_Limo2(ID:10)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Tug",true)) {

        SetSpawnInfo( playerid, 0, 16, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

    PutPlayerInVehicle(playerid, Tug, 0);

    SetPlayerColor(playerid,0xFFFFFFAA);

new Text3D:PTD1 = Create3DTextLabel("NPC_TugDriver(ID:11)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"LVTaxi",true)) {

    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, LVTaxi, 0);

SetPlayerColor(playerid,0xFFFF00AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_LVTaxiDriver(ID:12)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Dodo",true)) {

    SetSpawnInfo( playerid, 0, 187, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Dodo, 0);

SetPlayerColor(playerid,0x330066AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_DodoPilot(ID:13)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Elegy",true)) {

    SetSpawnInfo( playerid, 0, 217, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Elegy, 0);

SetPlayerColor(playerid,0x33CCFFAA);

new Text3D:PTD1 = Create3DTextLabel("NPC_ElegyDriver(ID:14)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

if(!strcmp(playername,"Dancer1",true)) {

PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 12, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer2",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 101, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer3",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 13, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer4",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 169, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer5",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 170, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer6",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 180, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer7",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 216, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer8",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 21, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer9",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 214, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer10",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 226, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer11",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 223, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer12",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 24, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer13",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 25, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer14",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 40, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"StageDancer1",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 277, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"StageDancer2",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 280, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"StageDancer3",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 287, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Bystander",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 59, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"DrinkServer",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 93, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

    else if(!strcmp(playername,"VIPMember",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 103, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Security",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 164, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

    else if(!strcmp(playername,"race",true)) {

    SetSpawnInfo( playerid, 0, 187, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, race, 0);

SetPlayerColor(playerid,0x330066AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_Racer(ID:13)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"race2",true)) {

    SetSpawnInfo( playerid, 0, 217, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, race2, 0);

SetPlayerColor(playerid,0x33CCFFAA);

new Text3D:PTD1 = Create3DTextLabel("NPC_Racer2(ID:14)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

if(!strcmp(npcname, "FBI_1", true)){

            SetSpawnInfo( playerid, 0, 286, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI(ID:23)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_2", true)){

            SetSpawnInfo( playerid, 0, 286, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_2(ID:24)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_3", true)){

            SetSpawnInfo( playerid, 0, 286, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_3(ID:25)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_4", true)){

            SetSpawnInfo( playerid, 0, 286, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_4(ID:26)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_5", true)){

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_5(ID:27)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_6", true)){

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_6(ID:28)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_7", true)){

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_7(ID:29)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_8", true)){

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_8(ID:30)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_9", true)){

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_9(ID:31)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_10", true)){

            PutPlayerInVehicle(playerid, carroFBI4, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Barracks

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_10(ID:32)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_11", true)){

            PutPlayerInVehicle(playerid, carroFBI5, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Barracks

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_11(ID:33)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_12", true)){

            PutPlayerInVehicle(playerid, carroFBI1, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Heli

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_12(ID:33)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_13", true)){

            PutPlayerInVehicle(playerid, carroFBI3, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Patriot

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_13(ID:34)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_14", true)){

            PutPlayerInVehicle(playerid, carroFBI2, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Rancher

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_14(ID:35)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_15", true)){

            PutPlayerInVehicle(playerid, carroFBI6, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Cargo Bob

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_15(ID:35)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

  else if(!strcmp(playername,"NPC_TrainSF",true)) {

    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, tsf, 0);

SetPlayerColor(playerid,0xFFFF00AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_SFTrain(ID:20)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"NPC_TrainLS",true)) {

    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, tls, 0);

SetPlayerColor(playerid,0xFFFF00AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_LSTrain(ID:21)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"NPC_TrainLV",true)) {

    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, tlv, 0);

SetPlayerColor(playerid,0xFFFF00AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_LVTrain(ID:22)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

return 1;

    }

   

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp("/party", cmdtext, true) == 0)

{

  SetPlayerPos(playerid,493.390991,-22.722799,1000.679687);

  SetPlayerInterior(playerid, 17);

  SendClientMessage(playerid,0xCC9933FF,"Welcome to The NPC Party!");

return 1;

}

if (strcmp("/a69", cmdtext, true) == 0)

{

  SetPlayerPos(playerid,88.3497,1918.6447,17.8780);

  SendClientMessage(playerid,0xCC9933FF,"Welcome to the NPC Area 69");

return 1;

}

if (strcmp("/npcs", cmdtext, true) == 0)

{

  SendClientMessage(playerid,0xCC9933FF,"At The Moment there are [56] Npc's Online");

return 1;

}

if (strcmp("/ufo", cmdtext, true) == 0)

{

SetPlayerPos(playerid,1931.7877,-506.3997,21.1385);

  SendClientMessage(playerid,0xCC9933FF,"Welcome to The NPC UFO insident");

return 1;

}

if (strcmp("/npchelp", cmdtext, true) == 0)

{

  SendClientMessage(playerid,0xCC9933FF,"The Npc tele and help is:");

  SendClientMessage(playerid,0xCC9933FF,"there are 53 npc's connected to the server");

  SendClientMessage(playerid,0xCC9933FF,"for teleports to the npc locations use");

  SendClientMessage(playerid,0xCC9933FF,"/ufo /a69 /party");

  SendClientMessage(playerid,0xCC9933FF,"more comming soon!");

return 1;

}

if (strcmp("/credits", cmdtext, true) == 0)

{

  SendClientMessage(playerid,0xCC9933FF,"The Credits for the script:");

  SendClientMessage(playerid,0xCC9933FF,"Flake for making most of the NPC's");

  SendClientMessage(playerid,0xCC9933FF,"V1ceC1ty for leting me add his Dance party bots");

  SendClientMessage(playerid,0xCC9933FF,"Redirect_left for helping with the 3DtextLabels");

  SendClientMessage(playerid,0xCC9933FF,"and Madruga for the UFO npc's");

return 1;

}

return 0;

}

////////////////////////////////////////////////////////////////////////////////

//End of the script[/pawn]

idiots.png
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Anakin" post="120089" timestamp="1334482791"]

Am o problema cu NPC.A bagat un fs cu NPC si ei nu se vad pe server.Am pus fisierul cu npcmodes in scriptfiles.Si include-ul.

Acesta e fs:

[pawn]/------------------------------------------------------------------------------

//NPC SCRIPT MADY BY FLAKE AND REDIRECT_LEFT V1CEC1TY

//

/*

there are < 40 > NPC's in total

one Command /party to join the NPC party in los santos

A special thanks to Redirect_left for helping with the 3DTextLabel's also to Madruga

for suplying the UFO and those NPC;s

Also helped V1ceC1ty for the dancing NPC's

This is Version 4.5

//------------------------------------------------------------------------------

//==============================================================================

*/

#include <a_samp>

#define COLOR_GREEN 0x33AA33AA

//so Far there are 68 NPC's

new Random; //this is for the on foot NPC's

new Boat;

new coach,Coach2;

new Beagle;

new Plane1,Plane2,Plane3;

new Taxi1;

new Stunter;

new Limo1;

new Limo2;

new Tug;

new LVTaxi;

new Dodo;

new Elegy;

new race;

new race2;

new carroFBI1;

new carroFBI2;

new carroFBI3;

new carroFBI4;

new carroFBI5;

new carroFBI6;

new tsf;

new tlv;

new tls;

public OnGameModeInit()

{

//--this lets the NPC's connect to your server

ConnectNPC("Boater","Boater");

ConnectNPC("Coach","Coach");

ConnectNPC("Beagle","Beagle");

ConnectNPC("Coach2","Coach2");

    ConnectNPC("Taxi1","Taxi1");

ConnectNPC("Pilot_ymtisd","at400_lv");

ConnectNPC("Pilot_pip","at400_sf");

ConnectNPC("Pilot_Flake","at400_ls");

    ConnectNPC("Stunter","Stunter");

    ConnectNPC("Limo1","limo1");

ConnectNPC("Limo2","limo2");

ConnectNPC("Tug","tug");

ConnectNPC("LVTaxi","lvtaxi");

ConnectNPC("Dodo","dodo");

ConnectNPC("Elegy","elegy");

    ConnectNPC("StageDancer1","stagedancer1");

    ConnectNPC("StageDancer2","stagedancer2");

    ConnectNPC("StageDancer3","stagedancer3");

    ConnectNPC("Bystander","bystander");

    ConnectNPC("DrinkServer","drinkserver");

    ConnectNPC("VIPMember","vipmember");

    ConnectNPC("Security","security");

    ConnectNPC("race","race");

ConnectNPC("race2","race2");

//---This makes the Npc's spawn--

Boat = AddStaticVehicle(484,-1988.0057,116.6116,27.6411,0.6686,75,59);

coach = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);

Coach2 = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);

Beagle = AddStaticVehicle(511,-1988.0057,116.6116,27.6411,0.6686,75,59);

Plane1 = AddStaticVehicle(77,-1988.0057,116.6116,27.6411,0.6686,75,59);

Plane2 = AddStaticVehicle(577,-1988.0057,116.6116,27.6411,0.6686,75,59);

Plane3 = AddStaticVehicle(577,-1988.0057,116.6116,27.6411,0.6686,75,59);

Taxi1 = AddStaticVehicle(420,-1988.0057,116.6116,27.6411,0.6686,75,59);

Stunter = AddStaticVehicle(411,-1988.0057,116.6116,27.6411,0.6686,75,59);

Limo1 = AddStaticVehicle(409,2125.1548,1045.6689,10.6029,125.6300,1,1); // limo1

Limo2 = AddStaticVehicle(409,2039.3546,989.0201,10.4719,179.9125,0,0); // limo2

Tug = AddStaticVehicle(583,1633.1984,1648.5555,10.3607,177.7618,1,1); // tug

LVTaxi = AddStaticVehicle(420,1710.0829,1452.1614,10.5395,343.1176,6,1); // taxi

Dodo = AddStaticVehicle(593,1327.7201,1581.3104,11.2769,271.5139,51,1); // dodo

Elegy =  AddStaticVehicle(562,2085.3762,863.2629,6.4877,89.4885,33,33); // elegy

Random = AddStaticVehicle(420,2044.8854,1473.2106,10.4494,181.3339,6,1); // Makes sure the NPC Spawns

race =  AddStaticVehicle(411,2085.3762,863.2629,6.4877,89.4885,33,33); // elegy

race2 = AddStaticVehicle(411,2044.8854,1473.2106,10.4494,181.3339,6,1); // Makes sure the NPC Spawns

carroFBI1 = CreateVehicle(497, 0.0, 0.0, 5.0, 0.0, -1, -1, 5000); // Police Maverick

    carroFBI2 = CreateVehicle(490, 0.0, 0.0, 5.0, 0.0, 0, 0, 5000); // FBI Rancher

    carroFBI3 = CreateVehicle(470, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); // Patriot

    carroFBI4 = CreateVehicle(433, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); // Barracks

    carroFBI5 = CreateVehicle(433, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); // Barracks

    carroFBI6 = CreateVehicle(548, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); // Cargobob

    tsf = AddStaticVehicle(537,-1988.0057,116.6116,27.6411,0.6686,75,59);

tlv = AddStaticVehicle(538,-1988.0057,116.6116,27.6411,0.6686,75,59);

tls = AddStaticVehicle(538,-1988.0057,116.6116,27.6411,0.6686,75,59);

//------------------------------------------------------------------------------

//these are objects that the npc will use to do its stunts

CreateObject(1634,-1266.577,-190.904,14.446,0.0,0.0,45.000);

CreateObject(1634,-1271.121,-186.348,14.446,0.0,0.0,225.000);

CreateObject(1634,-957.963,-220.309,-345.197,0.0,-37.815,289.689);

CreateObject(1634,-1264.922,-185.149,14.446,0.0,0.0,-225.000);

CreateObject(1634,-1271.860,-193.109,14.446,0.0,0.0,315.000);

CreateObject(18449,-1301.436,5.321,15.717,0.0,-3.438,-44.141);

CreateObject(18449,-1299.442,4.185,19.017,0.0,-8.594,-43.281);

CreateObject(18449,-1293.634,-1.235,23.085,0.0,-12.892,-43.281);

CreateObject(18449,-1288.125,-6.742,27.788,0.0,-24.924,-43.281);

CreateObject(18449,-1280.633,-13.288,35.355,0.0,-24.924,-43.281);

CreateObject(18449,-1294.906,-0.195,29.303,0.0,-35.237,-43.281);

CreateObject(18449,-1277.102,-16.661,45.734,0.0,-44.691,-43.281);

CreateObject(18449,-1271.461,-21.984,56.458,0.0,-51.566,-43.281);

CreateObject(18449,-1269.466,-27.213,65.927,0.0,-55.004,-51.875);

CreateObject(18449,-1239.734,-4.075,-179.116,0.0,-52.426,224.218);

CreateObject(18449,-1277.186,-17.299,60.409,0.0,-79.068,-49.297);

CreateObject(18449,-1327.108,31.294,16.436,0.0,-7.735,-44.141);

CreateObject(18449,-1281.542,-12.933,43.059,0.0,-66.177,-49.297);

CreateObject(18449,-943.862,-224.878,-259.072,0.0,-43.831,177.499);

CreateObject(18449,-1287.920,25.462,31.803,0.0,0.0,-44.141);

CreateObject(1634,-1276.876,-5.813,39.388,0.0,-38.675,-85.393);

CreateObject(1634,-1276.944,-7.445,43.101,0.0,-53.285,-47.733);

CreateObject(975,-1289.233,-10.673,35.826,0.0,0.0,33.750);

CreateObject(975,-1288.915,-8.482,35.655,0.0,0.0,33.750);

CreateObject(1634,-1280.826,-9.087,41.653,0.0,-53.285,-103.983);

CreateObject(1634,-1286.660,-7.749,39.352,0.0,-20.626,-134.604);

CreateObject(1634,-1262.056,29.544,-300.042,0.0,-32.659,-134.604);

CreateObject(975,-1291.201,-4.316,35.302,0.0,-53.285,-13.751);

CreateObject(974,-1291.142,-10.438,39.397,0.0,48.988,49.607);

CreateObject(18449,-1309.527,14.350,22.667,0.0,-26.643,-43.281);

CreateObject(18449,-1304.015,8.436,29.668,0.0,-23.205,-42.422);

CreateObject(971,-1293.642,-11.378,44.497,0.0,0.0,45.000);

CreateObject(971,-1277.347,-10.843,48.946,0.0,0.0,36.328);

CreateObject(971,-1283.711,-12.966,47.226,0.0,0.0,-8.672);

CreateObject(971,-1288.454,-11.895,45.416,0.0,0.0,-8.672);

CreateObject(971,-1282.491,-1.232,44.439,0.0,0.0,-42.422);

CreateObject(18449,-1262.308,1.871,34.715,0.0,-13.751,-41.640);

CreateObject(971,-1257.206,7.370,40.094,0.0,-21.486,-51.093);

CreateObject(971,-1269.967,17.896,45.516,0.0,-21.486,-51.093);

CreateObject(971,-1270.514,15.647,36.717,0.0,-21.486,-51.093);

CreateObject(971,-1267.393,15.020,38.987,0.0,-21.486,-51.093);

CreateObject(971,-1262.823,11.152,38.244,0.0,-21.486,-51.093);

CreateObject(971,-1261.682,11.407,41.474,0.0,-21.486,-51.093);

CreateObject(971,-1256.189,7.298,46.388,0.0,-21.486,-51.093);

CreateObject(971,-1254.397,3.577,42.068,0.0,-21.486,-51.093);

CreateObject(971,-1265.538,13.596,48.683,0.0,-21.486,-51.093);

CreateObject(18449,-1317.501,54.257,37.882,0.0,12.032,-44.141);

CreateObject(18449,-1339.865,75.919,47.438,0.0,21.486,-44.141);

CreateObject(18449,-1363.631,98.952,63.403,0.0,28.361,-44.141);

CreateObject(18449,-1395.623,130.223,89.850,0.0,31.799,-44.141);

CreateObject(18449,-1448.132,180.738,113.972,0.0,5.157,-44.141);

CreateObject(18449,-1497.333,232.115,93.269,0.0,-35.237,-48.360);

CreateObject(1634,-1514.360,258.318,73.163,0.0,0.0,45.000);

CreateObject(1634,-1517.249,255.505,73.174,0.0,0.0,45.000);

CreateObject(1634,-1520.068,252.992,73.304,0.0,0.0,45.000);

CreateObject(979,-1470.332,209.689,117.243,0.0,0.0,-11.250);

CreateObject(979,-1476.803,201.613,117.170,0.0,0.0,-67.500);

CreateObject(979,-1475.948,202.040,117.146,0.0,0.0,-56.250);

CreateObject(979,-1475.265,202.672,117.142,0.0,0.0,-45.000);

CreateObject(979,-1470.590,208.660,117.203,0.0,0.0,-22.500);

CreateObject(979,-1471.048,207.710,117.178,0.0,0.0,-33.750);

CreateObject(979,-1472.981,203.496,117.062,0.0,0.0,-67.500);

CreateObject(994,-1463.485,197.525,116.466,0.0,0.0,-42.422);

CreateObject(994,-1463.923,195.550,116.371,0.0,0.0,-33.750);

CreateObject(994,-1459.651,193.481,115.964,0.0,0.0,-11.250);

CreateObject(994,-1459.525,192.285,115.881,0.0,0.0,-11.250);

CreateObject(993,-1457.139,187.338,116.136,0.0,0.0,45.000);

CreateObject(993,-1456.053,198.927,116.808,0.0,0.0,45.000);

CreateObject(993,-1449.750,195.563,117.160,0.0,0.0,45.000);

CreateObject(994,-1467.938,199.806,116.898,0.0,0.0,-45.000);

CreateObject(994,-1467.347,201.178,116.946,0.0,0.0,-42.422);

//UFO

  CreateObject(10955, 1924.842, -587.859, 59.764, 38.675, 0.0, 193.015);

  CreateObject(10955, 1924.885, -587.685, 59.645, 0.0, 38.675, 103.015);

  CreateObject(10955, 1923.905, -583.159, 65.475, 0.0, 218.555, 103.015);

  CreateObject(10955, 1923.717, -583.436, 65.499, -141.334, 0.0, 193.015);

  CreateObject(791, 1942.607, -572.136, 6.953, 40.394, 8.594, 0.0);

  CreateObject(791, 1985.908, -567.111, 20.678, 55.004, 8.594, -12.892);

  CreateObject(791, 1988.251, -578.387, 30.042, 42.112, 8.594, 39.534);

  CreateObject(791, 1972.188, -621.665, 53.508, 29.221, 0.0, 39.534);

  CreateObject(3461, 1950.360, -395.645, 21.637, 0.0, 0.0, 0.0);

  CreateObject(791, 1937.663, -635.915, 53.508, 29.221, 0.0, 39.534);

//------------------------------------------------------------------------------

print(" NPC mega pack.. Loaded!");

print("  Made by Memoryz, flake and V1cec1ity"); //Please do not remove this, this is all I ask in return

return 1;

}

public OnPlayerSpawn(playerid)

{

    if(!IsPlayerNPC(playerid)) return 0;

  new npcname[MAX_PLAYER_NAME];

    GetPlayerName(playerid, npcname, sizeof(npcname));

new playername[64];

GetPlayerName(playerid,playername,64);

if(!strcmp(playername,"Boater",true)) {

        PutPlayerInVehicle(playerid, Boat, 0);

        SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

        new Text3D:boat = Create3DTextLabel("NPC_BoatDriver(ID:0)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(boat, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Coach",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, coach, 0);

    new Text3D:Coach = Create3DTextLabel("NPC_BusDriver(ID:1)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(Coach, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Beagle",true)) {

        SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

    PutPlayerInVehicle(playerid, Beagle, 0);

    new Text3D:beagle = Create3DTextLabel("NPC_BeagleDriver(ID:2)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(beagle, playerid, 0.0, 0.0, 0.5);

}

    else if(!strcmp(playername,"Pilot_ymtisd",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

  PutPlayerInVehicle(playerid, Plane1, 0);

  new Text3D:PTD1 = Create3DTextLabel("NPC_PilotYmtisd(ID:3)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Pilot_Flake",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

  PutPlayerInVehicle(playerid, Plane2, 0);

  new Text3D:PTD2 = Create3DTextLabel("NPC_PilotFlake(ID:4)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD2, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Pilot_Pip",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

  PutPlayerInVehicle(playerid, Plane3, 0);

  new Text3D:PTD3 = Create3DTextLabel("NPC_PilotPip(ID:5)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD3, playerid, 0.0, 0.0, 0.5);

}

    else if(!strcmp(playername,"Coach2",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Coach2, 0);

new Text3D:PTD1 = Create3DTextLabel("NPC_CoachDriver(ID:6)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Taxi1",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Taxi1, 0);

new Text3D:PTD1 = Create3DTextLabel("NPC_SFTaxi(ID:7)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Stunter",true)) {

    SetSpawnInfo(playerid,0,255,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Stunter, 0);

new Text3D:PTD1 = Create3DTextLabel("NPC_Stunter(ID:8)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

if(!strcmp(playername,"Limo1",true)) {

        PutPlayerInVehicle(playerid, Limo1, 0);

        SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

        SetPlayerColor(playerid,0xFF9900AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_Limo1(ID:9)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Limo2",true)) {

    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Limo2, 0);

SetPlayerColor(playerid,0xFF9900AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_Limo2(ID:10)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Tug",true)) {

        SetSpawnInfo( playerid, 0, 16, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

    PutPlayerInVehicle(playerid, Tug, 0);

    SetPlayerColor(playerid,0xFFFFFFAA);

new Text3D:PTD1 = Create3DTextLabel("NPC_TugDriver(ID:11)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"LVTaxi",true)) {

    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, LVTaxi, 0);

SetPlayerColor(playerid,0xFFFF00AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_LVTaxiDriver(ID:12)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Dodo",true)) {

    SetSpawnInfo( playerid, 0, 187, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Dodo, 0);

SetPlayerColor(playerid,0x330066AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_DodoPilot(ID:13)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"Elegy",true)) {

    SetSpawnInfo( playerid, 0, 217, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, Elegy, 0);

SetPlayerColor(playerid,0x33CCFFAA);

new Text3D:PTD1 = Create3DTextLabel("NPC_ElegyDriver(ID:14)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

if(!strcmp(playername,"Dancer1",true)) {

PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 12, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer2",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 101, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer3",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 13, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer4",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 169, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer5",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 170, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer6",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 180, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer7",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 216, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer8",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 21, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer9",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 214, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer10",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 226, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer11",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 223, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer12",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 24, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer13",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 25, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Dancer14",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 40, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"StageDancer1",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 277, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"StageDancer2",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 280, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"StageDancer3",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 287, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Bystander",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 59, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"DrinkServer",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 93, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

    else if(!strcmp(playername,"VIPMember",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 103, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

else if(!strcmp(playername,"Security",true)) {

        PutPlayerInVehicle(playerid, Random, 0);

    SetSpawnInfo( playerid, 0, 164, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

}

    else if(!strcmp(playername,"race",true)) {

    SetSpawnInfo( playerid, 0, 187, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, race, 0);

SetPlayerColor(playerid,0x330066AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_Racer(ID:13)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"race2",true)) {

    SetSpawnInfo( playerid, 0, 217, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, race2, 0);

SetPlayerColor(playerid,0x33CCFFAA);

new Text3D:PTD1 = Create3DTextLabel("NPC_Racer2(ID:14)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

if(!strcmp(npcname, "FBI_1", true)){

            SetSpawnInfo( playerid, 0, 286, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI(ID:23)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_2", true)){

            SetSpawnInfo( playerid, 0, 286, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_2(ID:24)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_3", true)){

            SetSpawnInfo( playerid, 0, 286, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_3(ID:25)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_4", true)){

            SetSpawnInfo( playerid, 0, 286, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_4(ID:26)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_5", true)){

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_5(ID:27)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_6", true)){

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_6(ID:28)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_7", true)){

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_7(ID:29)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_8", true)){

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_8(ID:30)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_9", true)){

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_9(ID:31)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_10", true)){

            PutPlayerInVehicle(playerid, carroFBI4, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Barracks

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_10(ID:32)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_11", true)){

            PutPlayerInVehicle(playerid, carroFBI5, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Barracks

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_11(ID:33)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_12", true)){

            PutPlayerInVehicle(playerid, carroFBI1, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Heli

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_12(ID:33)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_13", true)){

            PutPlayerInVehicle(playerid, carroFBI3, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Patriot

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_13(ID:34)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_14", true)){

            PutPlayerInVehicle(playerid, carroFBI2, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Rancher

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_14(ID:35)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

if(!strcmp(npcname, "FBI_15", true)){

            PutPlayerInVehicle(playerid, carroFBI6, 0);

            SetSpawnInfo( playerid, 0, 287, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 ); //Cargo Bob

            new Text3D:PTD1 = Create3DTextLabel("NPC_FBI_15(ID:35)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

            return 1;

        }

  else if(!strcmp(playername,"NPC_TrainSF",true)) {

    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, tsf, 0);

SetPlayerColor(playerid,0xFFFF00AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_SFTrain(ID:20)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"NPC_TrainLS",true)) {

    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, tls, 0);

SetPlayerColor(playerid,0xFFFF00AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_LSTrain(ID:21)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

else if(!strcmp(playername,"NPC_TrainLV",true)) {

    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );

PutPlayerInVehicle(playerid, tlv, 0);

SetPlayerColor(playerid,0xFFFF00AA);

new Text3D:PTD1 = Create3DTextLabel("NPC_LVTrain(ID:22)",0x33AA33AA,30.0,40.0,50.0,40.0,0);

    Attach3DTextLabelToPlayer(PTD1, playerid, 0.0, 0.0, 0.5);

}

return 1;

    }

   

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp("/party", cmdtext, true) == 0)

{

  SetPlayerPos(playerid,493.390991,-22.722799,1000.679687);

  SetPlayerInterior(playerid, 17);

  SendClientMessage(playerid,0xCC9933FF,"Welcome to The NPC Party!");

return 1;

}

if (strcmp("/a69", cmdtext, true) == 0)

{

  SetPlayerPos(playerid,88.3497,1918.6447,17.8780);

  SendClientMessage(playerid,0xCC9933FF,"Welcome to the NPC Area 69");

return 1;

}

if (strcmp("/npcs", cmdtext, true) == 0)

{

  SendClientMessage(playerid,0xCC9933FF,"At The Moment there are [56] Npc's Online");

return 1;

}

if (strcmp("/ufo", cmdtext, true) == 0)

{

SetPlayerPos(playerid,1931.7877,-506.3997,21.1385);

  SendClientMessage(playerid,0xCC9933FF,"Welcome to The NPC UFO insident");

return 1;

}

if (strcmp("/npchelp", cmdtext, true) == 0)

{

  SendClientMessage(playerid,0xCC9933FF,"The Npc tele and help is:");

  SendClientMessage(playerid,0xCC9933FF,"there are 53 npc's connected to the server");

  SendClientMessage(playerid,0xCC9933FF,"for teleports to the npc locations use");

  SendClientMessage(playerid,0xCC9933FF,"/ufo /a69 /party");

  SendClientMessage(playerid,0xCC9933FF,"more comming soon!");

return 1;

}

if (strcmp("/credits", cmdtext, true) == 0)

{

  SendClientMessage(playerid,0xCC9933FF,"The Credits for the script:");

  SendClientMessage(playerid,0xCC9933FF,"Flake for making most of the NPC's");

  SendClientMessage(playerid,0xCC9933FF,"V1ceC1ty for leting me add his Dance party bots");

  SendClientMessage(playerid,0xCC9933FF,"Redirect_left for helping with the 3DtextLabels");

  SendClientMessage(playerid,0xCC9933FF,"and Madruga for the UFO npc's");

return 1;

}

return 0;

}

////////////////////////////////////////////////////////////////////////////////

//End of the script[/pawn]

ia altul dupa net sau creaza tu unul,ca asa nu o sa-ti mearga.Cauta unul pe net nou mou sau sa-mi un PM daca vrei unu gata facut de la mine ;):).Reply

admindi.gif
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.