#include <a_samp>new npcveh;public OnFilterScriptInit ( ){ ConnectNPC(\"Tod_Minobe\", \"Popike\"); npcveh = CreateVehicle ( 437, 0.0, 0.0, 5.0, 0.0, 0, 0, -1 ); return 1;}public OnPlayerSpawn ( playerid ){ if ( IsPlayerNPC ( playerid ) ) { new npcname [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname, sizeof ( npcname ) ); if ( !strcmp ( npcname, \"Tod_Minobe\", true ) ) { PutPlayerInVehicle ( playerid, npcveh, 0 ); } return 1; } return 1;
#include <a_samp>new npcveh;public OnFilterScriptInit ( ){ ConnectNPC(\"Buszos\", \"busmod\"); npcveh = CreateVehicle (411,1358.8230,-1159.5790,23.2170,180.8786,111,109,-1); return 1;}public OnPlayerSpawn ( playerid ){ if ( IsPlayerNPC ( playerid ) ) { new npcname [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname, sizeof ( npcname ) ); if ( !strcmp ( npcname, \"Buszos\", true ) ) { PutPlayerInVehicle ( playerid, npcveh, 0 ); SetPlayerSkin(playerid, 61); } return 1; } return 1;}
#define RECORDING \"bus\" // Ez az NPC-d neve, melyet felvettél#define RECORDING_TYPE 1 // Az NPC közlekedése, 1 ha jármût vezet, 2 ha gyalogol#include <a_npc> // Az NPC függvénykönyvtár beágyazásapublic 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