HeLp npc skin
#1

I do not know where to put
Код:
{
      SetPlayerSkin(playerid, '280');
 }
I have this FS
Код:
//Los Santos Police Guard Bot
//------------------------------------------------------------------------------
#include <a_samp>
#include <a_npc>
//------------------------------------------------------------------------------
new Police;
//------------------------------------------------------------------------------
public OnFilterScriptInit()
{
  print("LS Police ");
  ConnectNPC("Police","Police");
  Police = CreateVehicle(596, 0.0, 0.0, 5.0, 0.0, 0, 1, 5000);
  return 1;
}
//------------------------------------------------------------------------------
public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC name.
    if(!strcmp(npcname, "Police", true)) //Checking if the NPC's name is [BOT]Guard
    
    return 1;
  }
  return 1;
}
Please if we can show you where to put the
Reply


Messages In This Thread
HeLp npc skin - by Zeros - 15.03.2010, 18:10
Re: HeLp npc skin - by wafffllesss - 15.03.2010, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)