Big Problem with NPC
#5

Код:
#define RECORDING "los" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.

#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
  public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
  public OnNPCExitVehicle() StopRecordingPlayback();
#else
  public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
[GM]
Код:
 if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului
    if(!strcmp(npcname, "LSBus", true)) //Verificam daca numele NPCului este "NUME"
    {
			SetPlayerSkin(playerid,0);
		  PutPlayerInVehicle(0, NPCVehicle, 0); //Punem NPCul in vehicul
    }
    return 1;
  }
Reply


Messages In This Thread
Big Problem with NPC - by DavidPaul - 20.06.2010, 05:55
Re: Big Problem with NPC - by DJDhan - 20.06.2010, 05:58
Re: Big Problem with NPC - by DavidPaul - 20.06.2010, 06:00
Re: Big Problem with NPC - by DJDhan - 20.06.2010, 06:01
Re: Big Problem with NPC - by DavidPaul - 20.06.2010, 06:01
Re: Big Problem with NPC - by DJDhan - 20.06.2010, 06:03
Re: Big Problem with NPC - by DavidPaul - 20.06.2010, 06:05
Re: Big Problem with NPC - by DJDhan - 20.06.2010, 06:09
Re: Big Problem with NPC - by DavidPaul - 20.06.2010, 06:14
Re: Big Problem with NPC - by DJDhan - 20.06.2010, 06:24

Forum Jump:


Users browsing this thread: 2 Guest(s)