how to put exactly
#1

hey guys i need help where to put this code from Kc tutorial
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;
  }
  //Other stuff for normal players goes here!
  return 1;
}
i need a example code plz i will apreciate
Reply


Messages In This Thread
how to put exactly - by Sfinx_17 - 27.11.2009, 13:40
Re: how to put exactly - by Joe Staff - 27.11.2009, 14:48
Re: how to put exactly - by Sfinx_17 - 27.11.2009, 17:08
Re: how to put exactly - by patchkinson - 27.11.2009, 17:30
Re: how to put exactly - by Mike Garber - 27.11.2009, 18:55
Re: how to put exactly - by Sfinx_17 - 27.11.2009, 22:35
Re: how to put exactly - by patchkinson - 27.11.2009, 22:49
Re: how to put exactly - by Sfinx_17 - 28.11.2009, 12:40
Re: how to put exactly - by dugi - 28.11.2009, 12:47
Re: how to put exactly - by miokie - 28.11.2009, 12:53

Forum Jump:


Users browsing this thread: 1 Guest(s)