{ SetPlayerSkin(playerid, '280'); }
//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; }
Originally Posted by Zeros
I do not know where to put
Код:
{ SetPlayerSkin(playerid, '280'); } Код:
//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; } |
//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;
}