12.05.2014, 21:14
hello,npc-How do I set up so that only stand still in one place?
This method does not work:
I did everything as it should be, but it is not good, help!
This method does not work:
Code:
#include <a_samp>
public OnFilterScriptInit()
{
ConnectNPC("BOT_TESZT1", "BOT_TESZT1");
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname [MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "BOT_TESZT1", true))
{
SetPlayerSkin(playerid,100);
SetPlayerPos(playerid, 2105.4880,-1806.4983,13.5547);
}
return 1;
}
return 1;
}
Code:
#include <a_npc>
public OnRecordingPlaybackEnd()
{
}
public OnNPCSpawn()
{
}
public OnNPCExitVehicle()
{
}


