Benutze Bitte [PWN] für Codes.
Filterscript:
//-------------------------------------------------
//
// NPC test
//
//-------------------------------------------------
#pragma tabsize 0
#include <a_samp>
#include <a_npc>
//-------------------------------------------------
public OnFilterScriptInit()
{
ConnectNPC("hubi","hubi");
ConnectNPC("lvcityfly","lvcityfly");
// Testing
//ConnectNPC("TestIdle","onfoot_test");
//ConnectNPC("TaxiTest","mat_test");
return 1;
}
//-------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script
new playername[64];
GetPlayerName(playerid,playername,64);
if(!strcmp(playername,"hubi",true)) {
SetSpawnInfo(playerid,0,0,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
}
else if(!strcmp(playername,"lvcityfly",true)) {
SetSpawnInfo(playerid,0,0,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
}
return 1;
}
//-------------------------------------------------
public OnPlayerSpawn(playerid)
{
if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script
new playername[64];
GetPlayerName(playerid,playername,64);
if(!strcmp(playername,"hubi",true)) {
PutPlayerInVehicle(playerid,1,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}
else if(!strcmp(playername,"lvcityfly",true)) {
PutPlayerInVehicle(playerid,5,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}
return 1;
}
NPC MODE SCRIPT:
// Breinumers Helicopter NPC
// name der recordeten datei (im beispiel war es CARBOT oder ZIVIBOT)
#define RECORDING "hubi"
// Record typ, 1 = in einen fahrzeug, 2 = zu fuß
#define RECORDING_TYPE 1
#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
Bei Grandlarc klappts!
Bei meinem Gamemod nicht!
Wieso!?