#include <a_samp>
new sfbusss;
new gPlayerLogged[MAX_PLAYERS];
public OnFilterScriptInit()
{
ConnectNPC("TestBot","Bus3_4");
sfbusss = AddStaticVehicle(431,-2006.5166,38.7075,32.3092,1.3508,7,7);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
gPlayerLogged[playerid] = 1;
new namenpc[MAX_PLAYER_NAME];
GetPlayerName(playerid, namenpc, sizeof(namenpc));
if(!strcmp(namenpc,"TestBot",true))
{
SetSpawnInfo(playerid,0,253,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
PutPlayerInVehicle(playerid, sfbusss, 0);
new Text3D:sfbusssx = Create3DTextLabel("San Fierro Bus 3",0xFF8B00FB,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(sfbusssx, playerid, 0.0, 0.0, 0.5);
SetPlayerColor(playerid, 0xFF8B00FB);
}
}
return 1;
}
//EDIT: Vllt soltle man dazu sagen, dass der Tram Bot auf dem Server funktioniert....also es liegt schonmal nicht am GM :S....und er connected ja auch nur schwebt halt in der Luft...