How cna i make this work?
#1

http://forum.sa-mp.com/showthread.ph...ht=NPC+robbery

I've recently been searching for the npc robbery system and I found it. Thing is that it's an include and how am i suppose to make this work, like adding npc? Maybe an example as a code or something please, i would appricete it very much.
Reply
#2

Read it carefully......
Reply
#3

can't really get it, can you explain me in briefly
Reply
#4

Код:
AddRobNPC(skin, Float:x, Float:y, Float:z, Float:ang, worldid, interiorid, minvalreceived, maxvalreceived) // Add a NPC
That will create an NPC at the location you choose. as you can see you can set the skin, positon, angle, vw, int and lowest amount he can give for a robbery and highest amount as well.
You can check the topic for other functions and their parameters.
Reply
#5

So i out that line into my gamemode script? mirou?
Reply
#6

I am not sure what is your question but it should be something like:
OnGameModeInit()
{
AddRobNPC(1, 0.0, 0.0, 10.0, 0.0, 0, 0, 5000, 10000);
}
Oh and make sure you include FCNPC (for v1.1 include) or RNPC (for v1.2 include)
Reply
#7

pawn Код:
#include robnpcs-en2
Under Gamemodeinit:
pawn Код:
AddRobNPC(147, -61.5824, -109.6477, 1003.5291, 90, 4, 4, 500, 1500) // Add a NPC
What should i put next please?
Reply
#8

This is a really bad idea Coz if you make npc's Robs Then your server Slots Will be decreasing ..
Reply
#9

Quote:
Originally Posted by rockhopper
Посмотреть сообщение
This is a really bad idea Coz if you make npc's Robs Then your server Slots Will be decreasing ..
So every npc takes one slot and if I add them does it make the server lag or maybe issues?
Reply
#10

For example if you have 30 slots server And you have 5 Players playing it will be 5/30 And if you add 5 npc's then it will be 5/25 MAx slots - no of npc's
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)