Help about NPCs

A

Anon 21556

Guest
Hi everyone and thanks for opening this topic :p

I started scripting long time ago but one thing I could not understand is NPC,
I don't want to make them drive around, shoot or anything like that,
I just wanna they listen server commands like SetPlayerPos, PutPlayerInVehicle and so on...
Reason why I need NPCs are very simple, SA:MP has lot of bugs with vehicles,
etc.: If I want to set vehicle's Z Angle (SetVehicleZAngle), set vehicle's angular velocity or anything about vehicle's velocity,
It would not be possible without a player in that vehicle, So,
I tried to make one NPC for that things (I called it Debugger :D),
And guess what, it does not want to listen those commands, he does not want to enter vehicle.

The way how i made that is I used "npcidle.pwn" and/or "npctest.pwn" from "npcmodes" folder,
(I recorded my own record, too, but nothing)
because I don't want they walk or play animations,
just  to enter vehicle when is need to set it's velocity/angle, then go back in idle state.

I ask you all, but specially those experienced scripters, maybe you have tried do the same.

Thanks for reading.
 
Top