15.03.2016, 16:32
Hello I wanted to spawn NPC with MapAndreas function (to find ground) but I have one problem with it. I've tried mapandreas to set position on myself it's working just fine but when I use it on NPC, its sets his position under ground for some reason.
Here's my code:
Here's my code:
pawn Код:
//OnPlayerSpawn (NPC)
MapAndreas_SetZ_For2DCoord(1841.9462 - 10.0, -1050.7052, Z);
SetPlayerPos(playerid, 1841.9462 - 10.0, -1050.7052, Z);
//OnGameModeInit - MapAndreas init
MapAndreas_Init(MAP_ANDREAS_MODE_FULL);