31.01.2011, 04:14
This is rachaels code from this topc - https://sampforum.blast.hk/showthread.php?tid=178493
Hopefully that can help you out.
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