SA-MP Forums Archive
NPC HAS LEFT THE SERVER - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: NPC HAS LEFT THE SERVER (/showthread.php?tid=430848)



NPC HAS LEFT THE SERVER - alexitaly - 15.04.2013

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[16:29:12] Number of vehicle models: 0
[16:29:12] Incoming connection: 127.0.0.1:52100
[16:29:13] [npc:join] npc has joined the server (0:127.0.0.1)
[16:29:15] Incoming connection: 127.0.0.1:52101
[16:29:33] [npcart] npc has left the server (0:0)
[16:29:40] Incoming connection: 127.0.0.1:63146
[16:29:40] [join] Salm0 has joined the server (0:127.0.0.1)

help me please


Re: NPC HAS LEFT THE SERVER - RandomDude - 15.04.2013

Do you have team viewer I may be able to help you out ...


Re: NPC HAS LEFT THE SERVER - DaTa[X] - 15.04.2013

pawn Код:
public OnGameModeInit()
{
  ConnectNPC("npcname","npcscript");
}



Re: NPC HAS LEFT THE SERVER - alexitaly - 15.04.2013

i solved but have a new problem: how to set skin at bot?


AW: NPC HAS LEFT THE SERVER - ulbi1990 - 15.04.2013

You can set the Skin for a bot when he spawns.

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new name[24];GetPlayerName(playerid,name,24);
        if(strcmp(name,"BOTNAME",true)!=0)
        {
            SetPlayerSkin(playerid, IDSKIN);
        }
    }
}
Next time use please search function or ******.

Same Question


Re: NPC HAS LEFT THE SERVER - alexitaly - 15.04.2013

i searched and tryed but not go..


AW: NPC HAS LEFT THE SERVER - ulbi1990 - 15.04.2013

Show please how you connect the NPC and how you used what i wrote.


Re: NPC HAS LEFT THE SERVER - alexitaly - 15.04.2013

strangely now go! I had to remove the string:
if (IsPlayerNPC (playerid)) return 1;
thanks all.