30.12.2012, 22:36
Hey guys.
I am creating an npc but I cant see him when he spawns.
my npc code (its a small code. he is just a stationary dude :P):
gamemode code:
Gives me no errrors || warnings (see what I did there?)
Thanks for any help attempt.
I am creating an npc but I cant see him when he spawns.
my npc code (its a small code. he is just a stationary dude :P):
Код:
#include <a_npc> main() {}
Код:
public OnGameModeInit() { ConnectNPC("Player","NPC") // im pretty sure the "NPC" is right as I have it in the correct folder } public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) // it does write "NPC spawned" in my console all the time { printf("NPC Spawned"); SetPlayerPos(playerid,pos_insurance); // pos_insurance is 100% right. can't be more sure. SetPlayerSkin(playerid,12); } } public OnPlayerConnect(playerid) { if(IsPlayerNPC(playerid)) return 1; // due to login system } public OnPlayerRequestClass(playerid,classid) { if(IsPlayerNPC(playerid)) return 1; }
Thanks for any help attempt.