Kidnap question
#1

I've searched all over to find a proper /kidnap command but cannot seem to find one, either the commands do not work, or they do not do what i need them too.....

Can someone give me a /kidnap command that only works if a player is a passenger in your vehicle? If they are not a passenger in your vehicle the command will not work.

Also, when the player gets kidnapped, i want the player who is kidnapped to get a message saying pay a fee to be released.

A command could be

/pay

and once it's payed, the kidnapper will get a message saying "so and so and payed this much for his release, Mission complete!" and the kidnapper could choose to let you go or keep you.


Any ideas?
Reply
#2

This would normally be a script request question, but I feel like coding it, just a few minutes.
Reply
#3

Quote:
Originally Posted by mansonh
This would normally be a script request question, but I feel like coding it, just a few minutes.
Seriously? holy shit man thanks!
Reply
#4

Quote:
Originally Posted by mansonh
This would normally be a script request question, but I feel like coding it, just a few minutes.
Could you please send me your code? I would really appreciate it!
Reply
#5

Quote:
Originally Posted by NPTechStudios
Quote:
Originally Posted by mansonh
This would normally be a script request question, but I feel like coding it, just a few minutes.
Could you please send me your code? I would really appreciate it!
Yeah, I'm waiting for him to script me one too lol. This would help a lot.
Reply
#6

Yeah it really would! Haha. Thank god, for people like him!
Reply
#7

Yep, this code took just a little longer.
I made it more secure and gave more options.
here is the pastbin:
http://pastebin.com/Fh3mhYgd

I haven't tested it in samp yet as I am not at home. So let me know what bugs are in it.

If its clean I will post the filterscript in the release section.
Reply
#8

I have looked over it, and I cannot seem to understand the ransom part.


if i do /ransom id, it's only for kidnappers right? But someone else can pay the ransom as well? or no?


And,

how is the ransom decided?
Reply
#9

The commands are:

/kidnap id ransom -kidnap a passenger in your vehicle with id and ransom as amount
/release -release your kidnapped victim
/ransom [id] -pay someones ransom (no id means your own ransom)
Reply
#10

I like it!, Except it's hard to understand dcmd can you teach me how to change it into the normal way?
Reply
#11

Oh yeah, you should also add an ammount limit, because people will just abuse it. They will just /kidnap 4 500000000

Reply
#12

k to answe both things:

"Normal" stcmp is shit, its very inefficient and unorganized, instead here is a tutorial on how to use dcmd.
You say its confusing? dcmd is much easier to use than the "normal" system.
[Tutorial] Dcmd Usage!

For your limit, I will leave that up to you,its pretty simple to do.
This script is so people can customize it to fit their needs.
Reply
#13

Thanks man! Works well!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)