SA-MP Forums Archive
Robbery include... - 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: Robbery include... (/showthread.php?tid=504176)



Robbery include... - vassilis - 02.04.2014

Can anyone show me an example of how i can use the robbery include?? because i am a bit confused..


Re: Robbery include... - Bingo - 02.04.2014

I guess,

It adds NPC(s) in 24/7 store, As i opened pastebin it shows something like when you point at him the NPC ducks etc.

To add NPC:-
Код:
 AddRobNPC(skin, Float:x, Float:y, Float:z, Float:ang, worldid, interiorid, minvalreceived, maxvalreceived)
I never tested or used this though .


Re: Robbery include... - vassilis - 02.04.2014

I actually thought the same thing but i dont really think its only on 24/7 store... you can use him everywhere i guess.. anyway addrobnpc on gamemodeinit callback right? i used it there but the npc doesnt spawn in-game... worldid must be 0?


Re: Robbery include... - Bingo - 02.04.2014

Yes maybe worldid 0, I never tested it brother.

And yeah, I noticed we can add him/her anywhere, But common func is that when we point at him/her he/she ducks herself and idk maybe giving money too.


Re: Robbery include... - vassilis - 02.04.2014

ye but he doesnt spawn in game .. does it need both plugins rnpc/fcnpc ?
EDIT: as i noticed on v1.2 it needs only rnpc.. but anyway it doesn't connect any npc?


Re: Robbery include... - Bingo - 02.04.2014

Yes, Try using plugin if he provided that inside his download pack.


Re: Robbery include... - vassilis - 02.04.2014

Already did but same problem pff


Re: Robbery include... - Bingo - 02.04.2014

Quote:
Originally Posted by vassilis
Посмотреть сообщение
Already did but same problem pff
Show your

Код:
 AddRobNPC(skin, Float:x, Float:y, Float:z, Float:ang, worldid, interiorid, minvalreceived, maxvalreceived)



Re: Robbery include... - vassilis - 03.04.2014

pawn Код:
AddRobNPC(164, 373.825653, -117.270904, 1001.499511, 269.1425, 0, 5, 2500, 6780);



Re: Robbery include... - Pottus - 03.04.2014

Your going to have to take certain aspects into account as soon as you introduce NPCs such as making sure some player loops don't check NPCs etc.