Usable NPCs ?
#1

Hello,

Do you know if the developers will allow us to move and kill npc for the next version ?
For example :
Код:
MoveNPC(npcid, x, y, z)
OnNpcDamage(playerid, npcid, weapond, ...)
Otherwise i'll develop a memoryhack plugin, but it isn't a good solution for me...

Thanks.
Reply
#2

I think you can move NPCs with SetPlayerVelocity function. I've seen it on *******.
Reply
#3

Hi, thanks for your answer.

I allready tried the SetPlayerVelocity function for a bot, but it isn't possible.

Here is my code (in the OnPlayerCommandText()) :
Код:
if(strEquals("/test", cmd))
{
	subcmd = strtok(cmdtext, idx);
	new targetid = strval(subcmd);
	SetPlayerVelocity(targetid, 1, 1, 1);
	return true;
}
When the target is a bot, he doesn't move.
An idea concerning my test or an other way to move correctly a npc ?

Do you know were can I find information about the next release ?

Thanks
Reply
#4

Ah it must've been some custom-made private plugin or something, I have no clue. And I don't know where you can find new info about upcoming releases.
Reply
#5

Ok tanks.

I also saw video on ******* concerning controllable NPCs, but it was in 2010 with the plugin CNPC working for the version 0.3b and 0.3c.

I begin my memory hack plugin for be able to move correctly the NPCs, but it will take a lot of time to find the memory adress of basic function and data.

Does somebody know where can i find information about hooking samp ?

Thanks a lot .
Reply
#6

If you want to make easlier NPC ingame use this: DOWNLOAD!This is NPC Generator Filterscript by Yuri_ .
Reply
#7

Did you read my topic ?

I want to create dynamically NPCs and move it via waypoints. I don't want to record a predefined path...
But samp doesn't allow to do that. So many function are missing for NPCs: Move, Damage, ...

Thanks for your post .
Reply
#8

Quote:
Originally Posted by C0b0ll
Посмотреть сообщение
Did you read my topic ?

I want to create dynamically NPCs and move it via waypoints. I don't want to record a predefined path...
But samp doesn't allow to do that. So many function are missing for NPCs: Move, Damage, ...

Thanks for your post .
My mistake, I am sorry...But the filterscript record npc and then you can start it to move.
Reply
#9

Quote:
Originally Posted by Smokkr
Посмотреть сообщение
My mistake, I am sorry...But the filterscript record npc and then you can start it to move.
No problem .

Indeed, with this FS, I could move NPC, but only on predefined path.

Thanks.
+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)