Hey, mein NPC Disconnectet dauern wenn der Server startet, an was liegt das?
OnGameModeInit
ConnectNPC("Harald","Harald");
OnPlayerConnect
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Harald",true))
{
SetPlayerSkin(playerid,11);
OnPlayerSpawn(playerid);
}
}
OnPlayerSpawn
if(IsPlayerNPC(playerid))
{
new botname[MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Harald",true))
{
SetPlayerSkin(playerid,11);
}
}