Animation NPC
#9

Код:
//---------------------------------------------------------------------------------//
//Aztec NPC filterscrip written by Ekeleke//
//Do not remove these credit's!//
//Have much fun with these npc's check the forum page for new versions!!!//

#include <a_samp>

new Random;
new azteccar;

public OnGameModeInit()
{

	// NPCS
	ConnectNPC("Aztec1","azteclopen");
	ConnectNPC("Aztec2","aztecsmoking");
	ConnectNPC("Aztec3","azteccalling");
	ConnectNPC("Aztec4","aztecdriving");

	azteccar = AddStaticVehicle(477,2044.8854,1473.2106,10.4494,181.3339,101,1); //azteccar

	Random = AddStaticVehicle(420,2044.8854,1473.2106,10.4494,181.3339,6,1); // Makes sure the NPC Spawns

	return 1;
}

public OnPlayerSpawn(playerid)
{
  if(!IsPlayerNPC(playerid)) return 0;

	new playername[64];
	GetPlayerName(playerid,playername,64);


	if(!strcmp(playername,"Aztec1",true)) {
	  SetSpawnInfo( playerid, 0, 115, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
		PutPlayerInVehicle(playerid, Random, 0);
		SetPlayerColor(playerid,0xFFFF00AA);
		ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
	}
	else if(!strcmp(playername,"Aztec2",true)) {
 		SetSpawnInfo( playerid, 0, 116, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
	  PutPlayerInVehicle(playerid, Random, 0);
	  SetPlayerColor(playerid,0xFFFF00AA);
	}
	else if(!strcmp(playername,"Aztec3",true)) {
    SetSpawnInfo( playerid, 0, 114, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
	  PutPlayerInVehicle(playerid, Random, 0);
	  SetPlayerColor(playerid,0xFFFF00AA);
	}
	else if(!strcmp(playername,"Aztec4",true)) {
	  SetSpawnInfo( playerid, 0, 115, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
		PutPlayerInVehicle(playerid, azteccar, 0);
		SetPlayerColor(playerid,0xFFFF00AA);
	}
  return 1;
}
thsts the hole script and aztec 1 has a drunk animation but he wont do the animation look at it plz
Reply


Messages In This Thread
Animation NPC - by Pawno_Master - 27.10.2009, 19:25
Re: Animation NPC - by MadeMan - 27.10.2009, 19:34
Re: Animation NPC - by Pawno_Master - 27.10.2009, 19:37
Re: Animation NPC - by Gergo1352 - 27.10.2009, 20:16
Re: Animation NPC - by Pawno_Master - 27.10.2009, 20:18
Re: Animation NPC - by Pawno_Master - 28.10.2009, 09:52
Re: Animation NPC - by Sergei - 28.10.2009, 12:11
Re: Animation NPC - by Pawno_Master - 28.10.2009, 12:51
Re: Animation NPC - by Pawno_Master - 28.10.2009, 13:05
Re: Animation NPC - by Pawno_Master - 28.10.2009, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)