FilterScript mappába
#include <a_samp>
new npcveh;
public OnFilterScriptInit ( )
{
ConnectNPC(\"Gyuri_Bacsi\", \"load\");
npcveh = CreateVehicle (31,94.8997,-171.3246,2.6772,268.4813,250,1, -1);
return 1;
}
public OnPlayerSpawn ( playerid )
{
if ( IsPlayerNPC ( playerid ) )
{
new npcname [ MAX_PLAYER_NAME ];
GetPlayerName ( playerid, npcname, sizeof ( npcname ) );
if ( !strcmp ( npcname, \"Gyuri_Bacsi\", true ) )
{
PutPlayerInVehicle ( playerid, npcveh, 0 );
SetPlayerSkin(playerid, 61);
}
return 1;
}
return 1;
}
Npc Modes mappába !
#define RECORDING \"mynpc2\"
#define RECORDING_TYPE 1
#include <a_npc>
public OnRecordingPlaybackEnd ( )
{
StartRecordingPlayback ( RECORDING_TYPE, RECORDING );
return 0;
}
#if RECORDING_TYPE == 1 // Ha az NPC típusa jármûves vezetõ
public OnNPCEnterVehicle ( vehicleid, seatid )
{
StartRecordingPlayback ( RECORDING_TYPE, RECORDING );
return 0;
}
public OnNPCExitVehicle ( )
{
StopRecordingPlayback ( );
return 0;
}
#endif
Npc-modes mappán belül a Recordings mappába a .rec filet ragd be