SetPlayerSkin doesn't work to NPCs
#5

Are you sure your code get run?
Try this:
pawn Код:
new sendername[MAX_PLAYER_NAME];
print("test1");
GetPlayerName(playerid, sendername, sizeof(sendername));
print("test2");
if(!strcmp(sendername, "FIBAgent"))
{
    print("test3");
    SetPlayerSkin(playerid, 165);
    print("test4");
}
or simply try the crashdetect plugin to see if there is any run-time error: https://sampforum.blast.hk/showthread.php?tid=262796

Since it works fine for me on 0.3c and 0.3d, I guess it should be the problem of your script.
Reply


Messages In This Thread
SetPlayerSkin doesn't work to NPCs - by Awesome™ - 08.12.2011, 18:22
Re: SetPlayerSkin doesn't work to NPCs - by B2S_MrLoL - 08.12.2011, 18:23
Re: SetPlayerSkin doesn't work to NPCs - by Thresholdold - 08.12.2011, 18:59
AW: SetPlayerSkin doesn't work to NPCs - by Awesome™ - 08.12.2011, 19:04
Re: SetPlayerSkin doesn't work to NPCs - by leong124 - 09.12.2011, 09:38
AW: SetPlayerSkin doesn't work to NPCs - by Awesome™ - 09.12.2011, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)