SA-MP Forums Archive
Problem with NPC - 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: Problem with NPC (/showthread.php?tid=481505)



Problem with NPC - Angel01 - 16.12.2013

Hello... I have that problem:

In my server i have 20 NPC, all work correct, but... i change some plugins/includes/Transfer to 0.3x version and NPC lose all settings, i mean - They all have CJ's skin, not correct location, all stay "outside world", in mini-map now they all have color's... Maybe anyone know how fix it ?

Example:

Here you can see, SetPlayerPosEx, SetSpawnInfo, SetPlayerFacingAngle, SetPlayerSkin, all set correct...

(To bot's attached "/talk" cmd)

Код:
		else if(!strcmp(npcname,"Molly_Nilson",true))
		{
			NPC[2] = playerid;
			SetPlayerPosEx(NPC[2], 359.7139,173.5689,1008.3893);
			SetPlayerColor(NPC[2],TEAM_HIT_COLOR);
			SetSpawnInfo(NPC[2], 0, 76,0.0,0.0,0.0,0,0,0,0,0,0,0);
			SetPlayerFacingAngle(NPC[2], 266.9489);
			SetPlayerSkin(NPC[2], 76);
			return 1;
		}



Re: Problem with NPC - Angel01 - 16.12.2013

Anyone can help ?


Re: Problem with NPC - Angel01 - 16.12.2013

UP my topic =/


Re: Problem with NPC - Angel01 - 17.12.2013

So, maybe anyone can help me ?