i got a problem with npc - 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)
+--- Thread: i got a problem with npc (
/showthread.php?tid=308557)
i got a problem with npc -
Tamao_Serizawa - 04.01.2012
I got one problem with NPC..
My npc can join the game and log..But their skin is the same..
How can i change the skin of my npc..
I dont want them to have the same skin..
Or do i need to add the SetPlayerskin in the npc Script?
I already done that.but they got errrors.I dont know where do i put that thing..
Re: i got a problem with npc -
DRIFT_HUNTER - 04.01.2012
pawn Код:
if(IsPlayerNPC(playerid))
{
new NpcName[MAX_PLAYER_NAME];
GetPlayerName(playerid, NpcName, MAX_PLAYER_NAME);
//Replace NPCname with your NPC NAME
if (strcmp("NPCname", NpcName, true, MAX_PLAYER_NAME) == 0)
{
//Replace with your npc skin
SetPlayerSkin(playerid, 115);
}
}
Re: i got a problem with npc -
Tamao_Serizawa - 04.01.2012
Do i need to replace the nPCname at
with my npc name?
Do i need to replace all the NpcName to my npc name?
Re: i got a problem with npc -
Tamao_Serizawa - 04.01.2012
Yes its done..But how can i set other npc skin?? do i need to do like that alot of times?
Lol the skin doesnt change?
Re: i got a problem with npc -
Tamao_Serizawa - 04.01.2012
pawn Код:
if(IsPlayerNPC(playerid))
{
new Grove_Cap[MAX_PLAYER_NAME];
GetPlayerName(playerid, Grove_Cap, MAX_PLAYER_NAME);
//Replace NPCname with your NPC NAME
if (strcmp("Grove_Cap", Grove_Cap, true, MAX_PLAYER_NAME) == 0)
{
//Replace with your npc skin
SetPlayerSkin(playerid, 107);
}
I did this?