Need some assistance making an NPC

Hey guys/girls out there! I need some assistance making an NPC for my server.

The NPC must:

Have an army skin
Have a M4
Have unlimited ammo
Walk along a specified path
Stop to shoot at a player if they are in range
Continue their walk upon the player being killed or out of range

I have no idea where to being. Could someone steer me into the right direction? Help would be appreciated. Thank you,

Look up some NPC tutorials.

I'm not entirely sure if it's possible to make them carry weapons and shoot at players, but that's only because I haven't been playing or coding sa-mp for 2 years.

Anyway, if it's possible, you'll have to use:

- Timers.
- Range checks
- OnPlayerSpawn & IsPlayerNPC

Forum Jump:

Users browsing this thread: 1 Guest(s)