• Welcome to Vice City Multiplayer.
 

2 questions =P

Started by Nemesis2500, March 07, 2008, 04:23:20 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

Nemesis2500

hey ppl
1st question: im usins sansan v3 and i have the !jail,!drop and !drown command,but how can i make those commands ingame (only admins) because i only can use them in IRC ???

2nd question: how can i make an auto-warn command for exapmple when someone drive-by

pls help  :-X


bakasan

add them in this section:

;--- handle in-game [chat] commands
on *:SIGNAL:vcmp.event.gamecmd {
  var %id = $vcmp.nameid($left($1,-1))
  ;--- something like this
    if ($2 == !command) {
      if ($vcmp.loggedin(%id) < 5) vcmp.adminmsg %id You must be Admin Level 5 or higher to attempt this command.
      else {
        ;--- your command executes here here
        vcmp.adminchat ** blah command
      }
    }
}

Nemesis2500

now i have the ingame commands =P


ReVilo


[GR]Dark

 
}
  elseif ($2 == !jail) || ($2 == !pmjail) {
    if ($vcmp.cmdcheck(!jail,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
    elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
    else {

      vcmp.cmdsay $2 %id  Admin $+($chr(91),%name $+,$chr(93)), Jailed $+($chr(91),$vcmp.name(%a),$chr(93)) Reason: $+($chr(91),$iif($4-,$v1,None),$chr(93))
      vcmp.setlocation %a 388.669739 -509.847992 9.395614
      vcmp.setcont %a 0
      vcmp.announce %a We behaved badly These Arrested!
    }
  } 
  elseif ($2 == !unjail) || ($2 == !pmunjail) {
    if ($vcmp.cmdcheck(!unjail,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
    elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
    else {
      vcmp.cmdsay $2 %id  Admin $+($chr(91),%name $+,$chr(93)), Unjailed $+($chr(91),$vcmp.name(%a),$chr(93)) Reason: $+($chr(91),$iif($4-,$v1,None),$chr(93))
      vcmp.setlocation %a 398.7801 -469.253 11.7319
      vcmp.setcont %a 1
      vcmp.announce %a You Libe largate and play clean!
    }





Nemesis that is what we are looking bye

ReVilo

Quote from: [GR]Dark on March 14, 2008, 06:31:14 AM
 
}
  elseif ($2 == !jail) || ($2 == !pmjail) {
    if ($vcmp.cmdcheck(!jail,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
    elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
    else {

      vcmp.cmdsay $2 %id  Admin $+($chr(91),%name $+,$chr(93)), Jailed $+($chr(91),$vcmp.name(%a),$chr(93)) Reason: $+($chr(91),$iif($4-,$v1,None),$chr(93))
      vcmp.setlocation %a 388.669739 -509.847992 9.395614
      vcmp.setcont %a 0
      vcmp.announce %a We behaved badly These Arrested!
    }
  } 
  elseif ($2 == !unjail) || ($2 == !pmunjail) {
    if ($vcmp.cmdcheck(!unjail,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
    elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
    else {
      vcmp.cmdsay $2 %id  Admin $+($chr(91),%name $+,$chr(93)), Unjailed $+($chr(91),$vcmp.name(%a),$chr(93)) Reason: $+($chr(91),$iif($4-,$v1,None),$chr(93))
      vcmp.setlocation %a 398.7801 -469.253 11.7319
      vcmp.setcont %a 1
      vcmp.announce %a You Libe largate and play clean!
    }





Nemesis that is what we are looking bye
No dark, from what I can see that code works on GUS aliases, Nemesis is working on sansan v3...

[GR]Dark