Author Topic: Warn in SanSan v3  (Read 3291 times)

0 Members and 1 Guest are viewing this topic.

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Warn in SanSan v3
« on: July 05, 2008, 02:39:21 pm »
how can i make the vcmp.warn alias, i've copied it from GUS but it doesnt work.
Code: [Select]
Alias:

alias vcmp.warns !return $iif($readini(vcmp.warns.ini,WARNS,$vcmp.name($1)),$v1,0)
alias vcmp.warn {
  if ($vcmp.warns($1) >= 2) {
    !writeini -n vcmp.warns.ini WARNS $vcmp.name($1) 3
    vcmp.adminmsg Warning $vcmp.name($1) - New Warns: $vcmp.warns($1) $+ /3 $+ , Reason: $iif($3-,$v1,None) $+ , By Admin: $iif($2,$v1,Unknown)
    vcmp.adminmsg Kicking $vcmp.name($1) - Reason: Warn Limit Reached $+ , By Admin: $iif($2,$v1,Unknown)
    vcmp.kick $1
  }
  else {
    !writeini -n vcmp.warns.ini WARNS $vcmp.name($1) $calc($vcmp.warns($1) + 1)
    vcmp.adminmsg Warning $vcmp.name($1) - New Warns: $vcmp.warns($1) $+ /3 $+ , Reason: $iif($3-,$v1,None) $+ , By Admin: $iif($2,$v1,Unknown)
  }
}
alias vcmp.unwarn {
  !writeini -n vcmp.warns.ini WARNS $vcmp.name($1) 0
  vcmp.say $vcmp.name($1) Unwarned - New Warns: 0/3 $+ , Reason: $iif($3-,$v1,None) $+ , By Admin: $iif($2,$v1,Unknown)
}
when i do this:
Code: [Select]
  if ($par($vcmp.deathreason($4)) == (DriveBy)) vcmp.warn %idk Drive-bying is not allowed.
it doesn't work  :-\ :-\

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Warn in SanSan v3
« Reply #1 on: July 05, 2008, 07:28:33 pm »
can anyone help me??

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Warn in SanSan v3
« Reply #2 on: July 06, 2008, 01:22:47 pm »
pleas??

Offline ReVilo

  • Wiseguy
  • **
  • Posts: 64
  • Master of All that is Holy
    • View Profile
Re: Warn in SanSan v3
« Reply #3 on: July 07, 2008, 12:18:01 am »
You have to change the variables.
For example: vcmp.name doesnt exist in sansan.
Hint:
$vcmp.hgetname($vcmp.nameid($1))  :P