[AJUDA] NPC
#6

maus pelo double mais colokei ele sem carro ve se ta certo:
pawn Код:
#include <a_npc>

#define RECORDING "meunpcc" //Este й o nome do seu arquivo de gravaзгo, sem a extenзгo(.rec).
#define RECORDING_TYPE 2 //1 para gravaзхes em veнculo e 2 para gravaзхes apй.

#if defined FILTERSCRIPT

main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 2
#else
  public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

new carronpc;

public OnFilterScriptInit()
{
  print("meu filterscript");
  ConnectNPC("Recruta","meunpcc");
  return 1;
}

#endif

public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //Verifica se o jogador й um NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Obtendo o nome do(s) NPC(s).
    if(!strcmp(npcname, "recruta", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
    {
      SetPlayerPos(playerid, 409.7895,2543.5811,16.4780);
      SetPlayerSkin(playerid, 45);
    }
  return 1;
}

#endif
Reply


Messages In This Thread
[AJUDA] NPC - by Power_GamerX - 21.05.2011, 20:28
Re: [AJUDA] NPC - by Shadoww5 - 21.05.2011, 20:30
Re: [AJUDA] NPC - by Power_GamerX - 21.05.2011, 20:34
Re: [AJUDA] NPC - by roberto013 - 21.05.2011, 20:53
Re: [AJUDA] NPC - by Power_GamerX - 21.05.2011, 20:54
Re: [AJUDA] NPC - by Power_GamerX - 21.05.2011, 21:12
Re: [AJUDA] NPC - by DartakousLien - 22.05.2011, 00:18
Re: [AJUDA] NPC - by soul taker - 22.07.2011, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)