Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Nemesis2500 on March 07, 2008, 07:23:20 pm

Title: 2 questions =P
Post by: Nemesis2500 on March 07, 2008, 07:23:20 pm
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
Title: Re: 2 questions =P
Post by: bakasan on March 08, 2008, 05:11:36 am
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
      }
    }
}
Title: Re: 2 questions =P
Post by: Nemesis2500 on March 09, 2008, 06:48:52 pm
now i have the ingame commands =P
Title: Re: 2 questions =P
Post by: ReVilo on March 09, 2008, 08:12:09 pm
now i have the ingame commands =P
Your welcome :P ;)
Title: 2 questions =P
Post by: [GR]Dark on March 14, 2008, 09:31:14 am
Code: [Select]
 
}
  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
Title: Re: 2 questions =P
Post by: ReVilo on March 14, 2008, 11:32:36 pm
Code: [Select]
 
}
  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...
Title: Re: 2 questions =P
Post by: [GR]Dark on March 15, 2008, 08:33:45 am
ok thank revilo