SetPlayerSkin doesn't work to NPCs
#4

Did they connect on 0.3c server?

In "OnGameModeInit" I placed this:
Код:
ConnectNPC("FIBAgent", "FIBAgent");
in "OnPlayerSpawn" this:
Код:
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(!strcmp(sendername, "FIBAgent"))
{
	SetPlayerSkin(playerid, 165);
}
.. and this in "FIBAgent.pwn" (in "npcmodes" folder)
Код:
#include "a_npc"
#define RECORDING "FIBAgent"

main() {}

public OnRecordingPlaybackEnd() StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT, RECORDING);
public OnNPCSpawn() StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT, RECORDING);
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)