Hatte bereits des öfteresn schon Bots gemacht, aber irgendwie verzage ich beim Godfather auch wenn ich schon die Sufu benutzt habe...
#include <a_npc>
public OnPlayerConnect(playerid)
{
for(new i = 0; i < AUTOHAUSER; i++)
{
SetPlayerMapIcon(playerid, 30+i, DtcSonstiges[i][0][0],DtcSonstiges[i][0][1],DtcSonstiges[i][0][2], 55, COLOR_YELLOW);
}
{
if (IsPlayerNPC(playerid))
{
OnPlayerCommandText(playerid,"/login lollol");
SpawnPlayer(playerid);
gPlayerLogged[playerid] = 1;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new npcname[64];
GetPlayerName(playerid,npcname,64);
if(!strcmp(npcname,"Taxibot",true))
{
gPlayerLogged[playerid] = 1;
SetPlayerColor(playerid,0x00FF00AA);
PutPlayerInVehicle(playerid,Taxi,0);
SetPlayerSkin(playerid,20);
}
else if(!strcmp(npcname,"Taxibot1",true))
{
gPlayerLogged[playerid] = 1;
SetPlayerColor(playerid,0x00FF00AA);
PutPlayerInVehicle(playerid,Taxi1,0);
SetPlayerSkin(playerid,15);
}
}
public OnPlayerRequestClass(playerid, classid)
{
new string[128];
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
return 1;
}
ConnectNPC("Taxibot", "Taxibot");
ConnectNPC("Taxibot1", "Taxibot1");
Habe doch eig alles drinne... verstehe es nicht.