Usable NPCs ? -
C0b0ll - 21.06.2012
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.
Re: Usable NPCs ? -
Stylock - 21.06.2012
I think you can move NPCs with SetPlayerVelocity function. I've seen it on *******.
Re : Usable NPCs ? -
C0b0ll - 21.06.2012
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
Re: Usable NPCs ? -
Stylock - 21.06.2012
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.
Re : Usable NPCs ? -
C0b0ll - 22.06.2012
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

.
Re: Usable NPCs ? -
Smokkr - 22.06.2012
If you want to make easlier NPC ingame use this:
DOWNLOAD!This is NPC Generator Filterscript by Yuri_ .
Re : Usable NPCs ? -
C0b0ll - 22.06.2012
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

.
Re: Re : Usable NPCs ? -
Smokkr - 22.06.2012
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.
Re : Re: Re : Usable NPCs ? -
C0b0ll - 22.06.2012
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.
+