Author Topic: Police Commands  (Read 4332 times)

0 Members and 1 Guest are viewing this topic.

Offline Intruder

  • Street Thug
  • *
  • Posts: 24
    • View Profile
Police Commands
« on: August 14, 2008, 01:06:47 pm »
Could anyone give me scripts for !sus !uncrime and !jail and !wanted
I dont really know where to start as i just started learning scripting the other day

                  Id be really thankful if somone could help me

szostol

  • Guest
Re: Police Commands
« Reply #1 on: August 14, 2008, 01:10:59 pm »
I think users can help you but won't give you ready script. They had to made it theyselfs. Write that commands as you can and then I can tell you what's wrong.

PS:

1. Suspect: Add alias wich writes suspected nick to ini file.

2. Jail in what way? Teleporting player to jail or you have to transport him there and then don't let move?

3. wanted make alias wich read ini file in wich you have written suspect

4. Uncrime make alias similar to suspect but deleting name from file
« Last Edit: August 14, 2008, 01:13:54 pm by szostol »

Windlord

  • Guest
Re: Police Commands
« Reply #2 on: August 14, 2008, 01:12:34 pm »
Instead of jumping into commands that you don't have any idea about,
I suggest that you download a script from "Scripts Showroom" and try and modify it.

Scripts take much time and effort to create and not many people are willing to give them away.
Plus, RPG scripts are rare.

szostol

  • Guest
Re: Police Commands
« Reply #3 on: August 14, 2008, 01:14:36 pm »
I've gave him way how to make it. Now he should think a bit himself.

Windlord

  • Guest
Re: Police Commands
« Reply #4 on: August 14, 2008, 01:20:09 pm »
But if he's new... he wouldn't know about aliases and stuff....

Intruder? Please download an irc client.
There are many people online that may/may not help you.

It's the fastest way believe me.

One of the most popular IRC client is mIRC (http://www.mirc.com)
It's also needed for vcmp anyways so you might as well download that.

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Police Commands
« Reply #5 on: August 14, 2008, 06:57:42 pm »
Oh i can give you a jail command anyway its not a big thing:

Quote
    elseif ($2 == !jail) {
      if (!$hget(vcmp,loggedin. $+ %id) || ($hget(vcmp,loggedin. $+ %id) < 10)) vcmp.adminmsg %id You must be Admin Level 10 or higher to attempt this command.
      else {
        if ($vcmp.nameid($3) == $null) vcmp.adminmsg %id Error: Invalid ID.
        elseif ($vcmp.isplayerspawned($vcmp.nameid($3)) == $false) vcmp.adminmsg %id $vcmp.hgetname($vcmp.nameid($3)) is not spawned.
        else {
          var %slap = $vcmp.nameid($3)
          if ($hget(vcmp,loggedin. $+ %id) < $hget(vcmp,loggedin. $+ $vcmp.nameid($3))) { vcmp.adminmsg %id You can't jail someone higher level admin than you... | %slap = %id }
          vcmp.adminchat Admin: $chr(91) $vcmp.hgetname($vcmp.nameid($1)) $chr(93) Jailed Player: $chr(91) $vcmp.hgetname($vcmp.nameid($3)) $chr(93)
          vcmp.setloc $vcmp.nameid($3) 381.6198 -504.7959 9.3956
          vcmp.setcon %slap 0 | vcmp.doanim %slap 30
          vcmp.gametext $vcmp.nameid(%slap) $vcmp.hgetname(%slap) You are ~o~Jailed!
          vcmp.disarm $vcmp.nameid($3)
          .timer. $+ %slap $+ .Slap 1 5 | .timer. $+ %slap $+ .Slapsetcon 1 15 vcmp.setcon %slap 1
        }
      }
    }


szostol

  • Guest
Re: Police Commands
« Reply #6 on: August 14, 2008, 06:59:17 pm »
But he hadn't said does he want to teleport or take someone to jail. Your commands teleports him and I think he wants have same as on argonath.

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Police Commands
« Reply #7 on: August 14, 2008, 07:17:21 pm »
Yes maybe, buts its also a good example  :)

Offline Intruder

  • Street Thug
  • *
  • Posts: 24
    • View Profile
Re: Police Commands
« Reply #8 on: August 16, 2008, 05:30:30 pm »
I mean when you dont teleport them like you have to take them to jail to jail them

szostol

  • Guest
Re: Police Commands
« Reply #9 on: August 16, 2008, 05:39:05 pm »
But Tama helped you very much... Do it yourself or don't do that...