NPC Problem - 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 Problem (
/showthread.php?tid=290941)
NPC Problem -
DiiP - 17.10.2011
Hello. I've created a NPC with a recordings and all, but it doesn't set his player pos / facing angel, here's the code :
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "ArmsDealer", true))
{
SetPlayerSkin(playerid , 28);
print("Setted Player Skin");
SetPlayerPos(playerid,1992.9584,-1579.6434,13.6046);
print("Setted Player Pos");
SetPlayerFacingAngle( playerid, 93.5994 );
print("Setted Player Facing Angle");
}
}
return 1;
}
Re: NPC Problem -
Stigg - 17.10.2011
EDIT: misread.
Re: NPC Problem -
DiiP - 17.10.2011
I have set the facing angle already.
Re: NPC Problem -
Annoymous - 17.10.2011
Anyone ? I'm having this problem aswell.
Re: NPC Problem -
Kostas' - 17.10.2011
The NPC follow the path you set for this .rec
It doesn't need to set position for this.
Re: NPC Problem -
Annoymous - 17.10.2011
I setted it in the spot that I setted...