Der Bot ist 10sec On , danach disconnectet er. Auf meinen Homeserver funktioniert er perfekt.
ConnectNPC("Bot1","händler");
OnPlayerSpawn
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid, botname, sizeof(botname));
if(!strcmp(botname, "Bot1", true))
{
SetPlayerInterior(playerid,3);
new Text3D:bot = Create3DTextLabel("Du willst was kaufen ? Benutze /menu", BLAU, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(bot, playerid, 0.0, 0.0, 0.7);
}
}