17.08.2012, 09:55
I had this same problem, if you want to make an NPC Spawn with a certain Skin ID, do this, it worked for me.
This is an example of one of my NPC's under 'public OnPlayerSpawn(playerid)'
I hope this helped!
This is an example of one of my NPC's under 'public OnPlayerSpawn(playerid)'
Код:
public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC. { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name. if(!strcmp(npcname, "Cashier_One", true)) { SetPlayerSkin(playerid,76); return 1; }