Npc Skin + Controlled Start
#1

Today i Recorded my First npc

ive got only 2 questions now, i'd use Search function if it werent disabled...

So,
1. How to Set a Skin of a npc?
Recorded it with a Skin, but in the Recording He have a CJ Skin
2. How can i Start the playback of a bot exactly ?
So i want to trigger the Playback in my GM, as i just need the NPC just in some 'movie' situations...

Waiting on ur answer, and sry for how i wrote,
im online zsing iPod, what kinda sucks...

Cheers,
trooper
Reply
#2

Create teams that will start and stop the work of NPC bots ..
I think of the creation does not take much effort.
Sorry for my bad English.
Reply
#3

use SetPlayerSkin and use ConnectNPC only then if your scene starts, then set a timer when it ends that kicks the player. cant script it for you, im too on iphone.
Reply
#4

Wow, thats possible?
Thought it Need to Be under ongamemodeinit.

U don't Need to Script it,
i can Script it As well,
i just didnt knw how to do it.

So thanks mate
Reply
#5

Incase you needed an example here is one

Код:
// For NPC Spawns
	if(IsPlayerNPC(playerid))
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Traindriver1", true))// LS Train
    {
      
      PutPlayerInVehicle(playerid, LSTrain, 0);
      SetPlayerColor(playerid,COLOR_GREEN);
      SetPlayerSkin(playerid,16); // Orange Jacket Guy
      new Text3D:textlabel1,string[256];
      format(string, sizeof(string), "Train Driver (%d)",playerid);
      textlabel1 = Create3DTextLabel(string,COLOR_GREEN,0,0,0,25.0,0,1);
      Attach3DTextLabelToPlayer(textlabel1,playerid,0,0,0);
    }
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)