03.12.2010, 15:34
well the NPC is very famous this is the NPC (FS)
Quote:
#include <a_samp> #include <a_angles> #include <attacking_npc> #define FILTERSCRIPT public OnFilterScriptInit() { ConnectNPC("Attack_NPC", "1"); return 1; } //We make sure that the NPC spawns before we make it an attacking NPC public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { if(playerid == GetPlayerID("Attack_NPC"))SetTimer("AttackNPC", 5000, 0); { SetPlayerTeam(playerid, 2); SetPlayerPos(playerid,2598.9768,-2211.1077,-0.218; } } return 0; } forward AttackNPC(); public AttackNPC() { CreateAttackingNPC("Attack_NPC",2598.9768,-2211.1077,-0.218; return 0; } |