[HELP] NPC Skin - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] NPC Skin (
/showthread.php?tid=218758)
[HELP] NPC Skin -
ZmaXy - 31.01.2011
How to change NPC skin ? Please tell me..
Re: [HELP] NPC Skin -
PeteShag - 31.01.2011
SetPlayerSkin ?
Re: [HELP] NPC Skin -
ZmaXy - 31.01.2011
How? SetPlayerSkin for player... How for NPC
Re: [HELP] NPC Skin -
Haydz - 31.01.2011
This is rachaels code from this topc -
https://sampforum.blast.hk/showthread.php?tid=178493
Hopefully that can help you out.
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npc_name[24];
GetPlayerName(playerid,npc_name,sizeof(npc_name));
if(!strcmp(npc_name,"Name_Of_Your_NPC",false))
{
SetPlayerSkin(playerid, 264); // your skin choice for NPC
}
return 1;
}
//rest of callback here