Npc Skin + Controlled Start -
Trooper[Y] - 18.10.2009
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
Re: Npc Skin + Controlled Start -
MiX - 18.10.2009
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.
Re: Npc Skin + Controlled Start -
Cedimedi - 18.10.2009
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.
Re: Npc Skin + Controlled Start -
Trooper[Y] - 18.10.2009
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
Re: Npc Skin + Controlled Start -
Beaver07 - 19.10.2009
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;
}