NPC Doesn't Connect
#7

OnGameModeInit
pawn Код:
ConnectNPC("Marco_Triplo","bot");
OnPlayerRequestSpawn
pawn Код:
if(IsPlayerNPC(playerid))
  {
    new playername[24];
    GetPlayerName(playerid,playername,24);
    if(!strcmp(playername,"Marco_Triplo",true))
    {
        SetPlayerSkin(playerid , 187);
        SetPlayerPos(playerid,1432.1899,-1000.1763,1640.2059);
        labelBot[playerid] = Create3DTextLabel("Marco_Triplo",0xFFFFFFFF,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(labelBot[playerid], playerid, 0.0, 0.0, 0.2);
    }
  }
OnPlayerRequestSpawn
pawn Код:
if(IsPlayerNPC(playerid))
    {
        new npcname[24];
        GetPlayerName(playerid, npcname, 24);
        if(!strcmp(npcname,"Marco_Triplo",true))
        {
            SetPlayerSkin(playerid, 187);
            SetPlayerPos(playerid,1432.1899,-1000.1763,1640.2059);
        }
    }
I didn't put anything on OnPlayerConnect
Reply


Messages In This Thread
NPC Doesn't Connect - by Alby Fire - 31.03.2011, 09:20
Re: NPC Doesn't Connect - by Medal Of Honor team - 31.03.2011, 09:22
Re: NPC Doesn't Connect - by Alby Fire - 31.03.2011, 09:23
Re: NPC Doesn't Connect - by Medal Of Honor team - 31.03.2011, 09:25
Re: NPC Doesn't Connect - by Alby Fire - 31.03.2011, 09:28
Re: NPC Doesn't Connect - by Medal Of Honor team - 31.03.2011, 10:03
Re: NPC Doesn't Connect - by Alby Fire - 31.03.2011, 10:14
Re: NPC Doesn't Connect - by Mike Garber - 31.03.2011, 10:20
Re: NPC Doesn't Connect - by Alby Fire - 31.03.2011, 10:21
Re: NPC Doesn't Connect - by wheelman_WM - 31.03.2011, 10:33

Forum Jump:


Users browsing this thread: 1 Guest(s)