26.01.2014, 07:04
I've been trying to add an idle npc and first it always got kicked and when i fixed it now he joins and stays but he is like air there is no skin or anything here is the OnPlayerSpawn code:
Thanks in advance and who ever help me will get +rep.
Код:
if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(strcmp(npcname, "Idle", true)) { SetPlayerSkin(playerid, 44); SetPlayerPos(playerid,308.2357,-143.1079,999.6016); SetPlayerFacingAngle(playerid, 360); return 1; } return 1; }