• Welcome to Vice City Multiplayer.
 

Police Commands

Started by Intruder, August 14, 2008, 11:06:47 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Intruder

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

#1
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

Windlord

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

I've gave him way how to make it. Now he should think a bit himself.

Windlord

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.

Tamas

Oh i can give you a jail command anyway its not a big thing:

Quoteelseif ($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

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.

Tamas

Yes maybe, buts its also a good example  :)

Intruder

I mean when you dont teleport them like you have to take them to jail to jail them

szostol

But Tama helped you very much... Do it yourself or don't do that...