Hallo Leute ich habe ein Problem mit den Bots und zwar spawnen die nicht dort wo sie sollen und
selbst da wo sie spawnen sind sie NICHT sichtbar warum????
public OnGameModeInit()
{
ConnectNPC("Verkauferin","blocker");
ConnectNPC("Newbie","blocker2");
//REST
return 1;
}
public OnPlayerConnect(playerid)
{
new playername[MAX_PLAYER_NAME];
new str[128];
GetPlayerName(playerid,playername,sizeof(playername));
format(str,sizeof(str),"/Spieler/%s.ini",playername);
if(IsPlayerNPC(playerid))
{
if(!strcmp(playername,"Verkauferin",true))
{
SetPlayerPos(playerid,-29.6731,-30.6229,1003.5573);
SetPlayerSkin(playerid,11);
SetPlayerFacingAngle(playerid,10);
SPVW(playerid,1);
}
else if(!strcmp(playername,"Newbie",true))
{
SetPlayerPos(playerid,-1944.0703,558.7184,35.1719);
SetPlayerSkin(playerid,260);
SetPlayerFacingAngle(playerid,225.9658);
SPVW(playerid,1);
}
}
else
{
//Account zeugs
}
return 1;
}
public OnPlayerSpawn(playerid)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
if(IsPlayerNPC(playerid))
{
if(!strcmp(playername,"Verkauferin",true))
{
SetPlayerPos(playerid,-29.6731,-30.6229,1003.5573);
SetPlayerSkin(playerid,11);
SetPlayerFacingAngle(playerid,10);
SPVW(playerid,1);
}
else if(!strcmp(playername,"Newbie",true))
{
SetPlayerPos(playerid,-1944.0703,558.7184,35.1719);
SetPlayerSkin(playerid,260);
SetPlayerFacingAngle(playerid,225.9658);
SPVW(playerid,1);
}
}
else
{
//Account zeugs
}
return 1;
}
Was ist falsch?
mfg Dedi