NPCs & 0.3x
#2

.cfg maxnpc <<< chek this

samp-npc < same version like server

npc1.pwn is in scriptfiles/npcmodes

You need .amx not pwn

And in you OnplayerConnect(playerid)

if(IsPlayerNPC(playerid))return 1; // so if you have login screan npc bypass it

//ongamemodeinit
ConnectNPC("NPC_NAME","npcmodesAmxWithoutExtension ");// name of player , name of npcmodes .amx file

//simple exemple of npc amx file in npcmode
pawn Код:
#include <a_npc>



main() {}



NextPlayBack()
{
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,"nameofrec");//name of .rec in npcmodes/recordings
}
public OnRecordingPlaybackEnd()
{
    NextPlayBack();
}
public OnNPCSpawn()
{
    NextPlayBack();
}
public OnNPCExitVehicle()
{
    StopRecordingPlayback();
}
Reply


Messages In This Thread
NPCs & 0.3x - by 2KY - 07.03.2013, 02:22
Re: NPCs & 0.3x - by Azazelo - 07.03.2013, 03:24

Forum Jump:


Users browsing this thread: 1 Guest(s)