I did already... see:
Код:
#include <a_npc>
#define RECORDING "B0T"
#define RECORDING_TYPE 2
main()
{
}
public OnRecordingPlaybackEnd()
StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#if RECORDING_TYPE == 1
public OnNPCEnterVehicle(vehicleid, seatid)
StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle()
StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
And the other filterscript:
Код:
#include <a_samp>
new MyFirstNPCVehicle;
public OnGameModeInit()
{
ConnectNPC("B0T", "B0T");
MyFirstNPCVehicle = CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(!IsPlayerNPC(playerid)) return 0;
new NPCName[MAX_PLAYER_NAME];
GetPlayerName(playerid, NPCName, 64);
if(!strcmp(NPCName, "B0T", true)) {
SetPlayerInterior(playerid, 2);
PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0);
SetSpawnInfo( playerid, 0, 152, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) {
return 0;
}
return 1;
}
See? I dont need tutorials that i red more then 10x, I need some usefull help... -.-