Hey,
Immer wenn ich den Server starte, spawnt mein Bot an dieser Farm
FS ist eigentlich Copy & Paste, daher kann ich nicht nachvollziehen warum es nicht geht
#include <a_samp>
new tramsf;
public OnFilterScriptInit()
{
print(" SF Tramsystem [v1.0] by Markus");
ConnectNPC("Tram_Bot","tram");
tramsf = AddStaticVehicle(538,-1361.0936,-1509.6041,24.8985,89.0943,1,1);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerSpawn(playerid)
{
if(!IsPlayerNPC(playerid)) return 0;
new namenpc[MAX_PLAYER_NAME];
GetPlayerName(playerid, namenpc, sizeof(namenpc));
new spielername[64];
GetPlayerName(playerid,spielername,64);
if(!strcmp(spielername,"Tram_Bot",true))
{
SetSpawnInfo(playerid,0,255,-1351.7374,-1506.7676,24.0280,2.8941, 0, 0, 0, 0, 0, 0 );
PutPlayerInVehicle(playerid, tramsf, 0);
new Text3D:tramsfx = Create3DTextLabel("TramSF",0x33AA33AA,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(tramsfx, playerid, 0.0, 0.0, 0.5);
}
return 1;
}
[Screen]