You need to do it like this in your gamemode;
above ongamemodeinit;
#include <a_npc> (if you didnt do that already)
then under ongamemodeinit;
Код:
ConnectNPC("Zak","blabla*");
* = with blabla i mean the name of the npc script you made (so not the record)
Then under OnplayerSpawn make;
Код:
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
if(!strcmp(npcname, "Zak", true))
{
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Zak", true))
{
SetPlayerSkin(playerid, 127);
SetPlayerTeam(playerid, 0);
SetPlayerFacingAngle(playerid, 171.5765);
}
}
return 1;//end of onplayerspawn
}
If you recorded an npc then you dont need setplayerpos because the recording will do that automaticly
If its still not working then ill need to see the npc script you made