Please help
#1

Every time I try im unable to do it pls help me.

Here's the recording of my NPC:

http://www.mediafire.com/?563k1d3ls6c6r92

Every time I connect it it doesnt come up.

Please dont give me those not nice words and help me
Reply
#2

use paste bin, or just paste the code in your post.
Reply
#3

Here is my Script:

pawn Код:
//------------------------------------------------------------------------------
//==============================================================================
#include <a_samp>
#define COLOR_GREEN 0x33AA33AA
//so Far there are 68 NPC's


new NPC;
new NPC2;

public OnFilterScriptInit()
{
//--this lets the NPC's connect to your server
    ConnectNPC("[BOT]Alex_Obando","NPC");
    ConnectNPC("[BOT]Alex_Obando2","NPC2");



//---This makes the Npc's spawn--
   
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(!IsPlayerNPC(playerid)) return 0;
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    new playername[64];
    GetPlayerName(playerid,playername,64);

    if(!strcmp(playername,"NPC",true)) {
       
        SetSpawnInfo(playerid,0,287,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
        new Text3D:alex = Create3DTextLabel("Alex_Obando",0x33AA33AA,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(alex, playerid, 0.0, 0.0, 0.5);
    }
    if(!strcmp(playername,"NPC2",true)) {

        SetSpawnInfo(playerid,0,287,1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
        new Text3D:alex = Create3DTextLabel("Alex_Obando2",0x33AA33AA,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(alex, playerid, 0.0, 0.0, 0.5);
    }

    return 1;
 #pragma unused NPC
    }
   
////////////////////////////////////////////////////////////////////////////////
//End of the script
I want that when I do /botjoin then the NPC joins and when the record is done then make the bot dont do it again. until they execute the cmd again.
Reply
#4

[Removed Sorry for double post]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)