Hallo Leute, habe wie folgt meinen NPC connecten lassen.
ConnectNPC("Lucky","ImbissWagen1");
ConnectNPC("Lucky2","ImbissWagen2");
ConnectNPC("Eis1","EisWagen1");
ConnectNPC("Eis2","EisWagen2");
Und diesen Text bei OnPlayerSpawn.
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid,botname, sizeof(botname));
if(!strcmp(botname, "Lucky", true))
{
SpielerInfo[playerid][pLogIn] = 1;
SetPlayerSkin(playerid,177);
PutPlayerInVehicle(playerid,imbisswagen[0],0);
return 1;
}
if(!strcmp(botname, "Lucky2", true))
{
SpielerInfo[playerid][pLogIn] = 1;
SetPlayerSkin(playerid,177);
PutPlayerInVehicle(playerid,imbisswagen[1],0);
}
}
Alle Datein sind vorhanden warum Spawnen Sie trotzdem nicht ?