SA-MP Forums Archive
HeLp npc skin - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HeLp npc skin (/showthread.php?tid=134181)



HeLp npc skin - Zeros - 15.03.2010

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


Re: HeLp npc skin - wafffllesss - 15.03.2010

Quote:
Originally Posted by Zeros
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
pawn Код:
//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
    {
      SetPlayerskin()...
    }
    return 1;
  }
  return 1;
}