21.04.2010, 10:55
You need to do it like this in your gamemode;
above ongamemodeinit;
#include <a_npc> (if you didnt do that already)
then under ongamemodeinit;
* = with blabla i mean the name of the npc script you made (so not the record)
Then under OnplayerSpawn make;
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
above ongamemodeinit;
#include <a_npc> (if you didnt do that already)
then under ongamemodeinit;
Код:
ConnectNPC("Zak","blabla*");
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 its still not working then ill need to see the npc script you made