SA-MP Forums Archive
How cna i make this work? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How cna i make this work? (/showthread.php?tid=526655)



How cna i make this work? - 123bob123 - 18.07.2014

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.


Re: How cna i make this work? - LivingLikeYouDo - 18.07.2014

Read it carefully......


Re: How cna i make this work? - 123bob123 - 18.07.2014

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


Re : How cna i make this work? - mirou123 - 18.07.2014

Код:
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.


Re: How cna i make this work? - 123bob123 - 18.07.2014

So i out that line into my gamemode script? mirou?


Re : How cna i make this work? - mirou123 - 18.07.2014

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)


Re: How cna i make this work? - 123bob123 - 19.07.2014

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?


Re: How cna i make this work? - rockhopper - 19.07.2014

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


Re: How cna i make this work? - 123bob123 - 19.07.2014

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?


Re: How cna i make this work? - rockhopper - 19.07.2014

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