[FS/NPC] Los Santos PD Guard
#9

replace
pawn Код:
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "MyFirstNPC", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
    }
    return 1;
  }
with
pawn Код:
if(IsPlayerNPC(playerid)) return 1; //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "MyFirstNPC", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
    }
    return 1;
  }
Reply


Messages In This Thread
[FS/NPC] Los Santos PD Guard - by x.X.LEGENDARIO.X.x - 26.01.2010, 03:19
Re: [FS/NPC] Los Santos PD Guard - by x.X.LEGENDARIO.X.x - 26.01.2010, 10:45
Re: [FS/NPC] Los Santos PD Guard - by xkniives - 26.01.2010, 14:48
Re: [FS/NPC] Los Santos PD Guard - by x.X.LEGENDARIO.X.x - 26.01.2010, 20:02
Re: [FS/NPC] Los Santos PD Guard - by deathknight865 - 26.01.2010, 22:28
Re: [FS/NPC] Los Santos PD Guard - by Brandon_Brown - 26.01.2010, 22:34
Re: [FS/NPC] Los Santos PD Guard - by x.X.LEGENDARIO.X.x - 26.01.2010, 22:47
Re: [FS/NPC] Los Santos PD Guard - by Moglizorz. - 29.01.2010, 14:36
Re: [FS/NPC] Los Santos PD Guard - by x.X.LEGENDARIO.X.x - 29.01.2010, 21:00
Re: [FS/NPC] Los Santos PD Guard - by Jard3L - 25.12.2010, 08:04

Forum Jump:


Users browsing this thread: 1 Guest(s)