SA-MP Forums Archive
Npc Function - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Npc Function (/showthread.php?tid=470196)



Npc Function - BigBaws - 16.10.2013

Hello Dear Helpers i want to know something about a include that i have added it

i want to controll the npc of damage i have removed from my GM this Function

public FCNPC_OnTakeDamage(npcid, damagerid, weaponid, bodypart, Float:health_loss)
{

return 1;
}

but the npc still getting dmgs when i hit him what i want to say is if possible to edit when i hit him he taking no dmg


and tell me whats wrong here & TY

Код:
if(strcmp(cmdtext,"/la",true) == 0)
	{
	    FCNPC_GoTo(Cholo, 145.1412,-67.6555,1.4297, MOVE_TYPE_WALK, 1, 0);
	    return 1;
 	}
	else if(FCNPC_GetPosition(Cholo, 145.1412,-67.6555,1.4297) == 1)
	{
	    SetPVarInt(Cholo,"TimerFilm",SetTimerEx("FCNPC_OnRespawn",100,0,"d",Cholo)+1);
	    return 1;

	}



Re : Npc Function - BigBaws - 16.10.2013

Up ...