07.03.2013, 03:24
(
Последний раз редактировалось Azazelo; 09.03.2013 в 17:58.
)
.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
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();
}

