[HELP] only one npc works!
#2

BUMP

And also here's my script
pawn Код:
if(IsPlayerNPC(playerid))// return 1;//kutventjes
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
        if(!strcmp(npcname, "Timmy", true)) //Checking if the NPC's name is MyFirstNPC
            {
      PutPlayerInVehicle(playerid, Timscar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 192);
      SetPlayerColor(playerid, C_DRL);
            //return OnPlayerSpawn(playerid);
        }
        else if(!strcmp(npcname, "melvin", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Melvinscar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 61);
      SetPlayerColor(playerid, C_DRL);
            //return OnPlayerSpawn(playerid);
        }
        else if(!strcmp(npcname, "wesley", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Wesleyscar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 61);
      SetPlayerColor(playerid, C_DRL);
      //        return 1;
        }
        else if(!strcmp(npcname, "basje", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Basscar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 299);
      SetPlayerColor(playerid, C_DRL);
        //  return 1;
        }
        else if(!strcmp(npcname, "kevin", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Kevinscar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 61);
      SetPlayerColor(playerid, C_DRL);
        //  return 1;
        }
        else if(!strcmp(npcname, "jeffreyy", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Jeffreyyscar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 287);
      SetPlayerColor(playerid, C_DRL);
      //        return 1;
        }
        else if(!strcmp(npcname, "mongoll", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Mongollscar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 162);
      SetPlayerColor(playerid, C_DRL);
      //        return 1;
        }
        else if(!strcmp(npcname, "gerriee", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Gerrieescar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 287);
      SetPlayerColor(playerid, C_DRL);
      //        return 1;
        }
        else if(!strcmp(npcname, "Kenneth", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Kennethscar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 287);
      SetPlayerColor(playerid, C_DRL);
      //        return 1;
        }
        else if(!strcmp(npcname, "Rockyyy", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Rockyyyscar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 100);
      SetPlayerColor(playerid, C_DRL);
      //        return 1;
        }
        else if(!strcmp(npcname, "Flappie", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Turismoscar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 25);
      SetPlayerColor(playerid, C_DRL);
      //        return 1;
        }
        else if(!strcmp(npcname, "Flappai", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Cargoscar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 16);
      SetPlayerColor(playerid, C_DRL);
      //        return 1;
        }
        else if(!strcmp(npcname, "Admintje", true)) //Checking if the NPC's name is MyFirstNPC
        {
      PutPlayerInVehicle(playerid, Basecar, 0); //Putting the NPC into the vehicle we created for it.
      SetPlayerSkin(playerid, 287);
      SetPlayerColor(playerid, C_DRL);
      //        return 1;
        }
            //return 1;
        }
Reply


Messages In This Thread
[HELP] only one npc works! - by WThieves - 11.02.2010, 16:19
Re: [HELP] only one npc works! - by WThieves - 11.02.2010, 17:46
Re: [HELP] only one npc works! - by Onyx09 - 11.02.2010, 17:49
Re: [HELP] only one npc works! - by WThieves - 11.02.2010, 17:54
Re: [HELP] only one npc works! - by WThieves - 11.02.2010, 19:55
Re: [HELP] only one npc works! - by Ricop522 - 11.02.2010, 23:37
Re: [HELP] only one npc works! - by WThieves - 12.02.2010, 13:48

Forum Jump:


Users browsing this thread: 2 Guest(s)