Author Topic: 2 questions =P  (Read 4864 times)

0 Members and 1 Guest are viewing this topic.

Offline Nemesis2500

  • Wiseguy
  • **
  • Posts: 63
  • The Joker
    • View Profile
    • Grand VCMP Server
2 questions =P
« 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
« Last Edit: May 18, 2008, 07:00:06 am by Nemesis2500 »


Offline bakasan

  • VC:MP Developer
  • Made Man
  • *
  • Posts: 169
    • View Profile
Re: 2 questions =P
« Reply #1 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
      }
    }
}

Offline Nemesis2500

  • Wiseguy
  • **
  • Posts: 63
  • The Joker
    • View Profile
    • Grand VCMP Server
Re: 2 questions =P
« Reply #2 on: March 09, 2008, 06:48:52 pm »
now i have the ingame commands =P


Offline ReVilo

  • Wiseguy
  • **
  • Posts: 64
  • Master of All that is Holy
    • View Profile
Re: 2 questions =P
« Reply #3 on: March 09, 2008, 08:12:09 pm »
now i have the ingame commands =P
Your welcome :P ;)

Offline [GR]Dark

  • Street Thug
  • *
  • Posts: 9
    • View Profile
2 questions =P
« Reply #4 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

Offline ReVilo

  • Wiseguy
  • **
  • Posts: 64
  • Master of All that is Holy
    • View Profile
Re: 2 questions =P
« Reply #5 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...

Offline [GR]Dark

  • Street Thug
  • *
  • Posts: 9
    • View Profile
Re: 2 questions =P
« Reply #6 on: March 15, 2008, 08:33:45 am »
ok thank revilo