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
#2

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;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)