• Welcome to Vice City Multiplayer.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - LBR.george

#1
mIRC/pawn Scripting / Re: Login and Level System
April 27, 2011, 03:20:34 PM
the command
if ($2 == register) {
    if ($vcmp.pass(%id) != $null) vcmp.msg %id Error - This Nick-Name is Already Registered
    elseif (!$3) vcmp.msg %id Error - Missing Information, /c $2 <password>
    else {
      vcmp.say Player %name Registered & Logged In (Admin Level: 1)
      vcmp.msg %id You Registered - Nick-Name: %name $+ , Admin Level: 1 $+ , Password: $3 $+ , Login With Command: /c login <password>
      !writeini -n vcmp.accounts.ini IPS %name $vcmp.ip(%name)
      !writeini -n vcmp.accounts.ini LEVELS %name 1
      !writeini -n vcmp.accounts.ini PASSWORDS %name $3
      !writeini -n vcmp.accounts.ini LIN %name 1
    }
  }



this is to check the ini



alias vcmp.check.ini {
  !remini -n vcmp.admin.ini LIN
}
alias vcmp.check.timer {
  if ($timer(check $+ $1) == $null) .timercheck $+ $1 0 2 vcmp.check $1
  if ($timer(check) == $null) .timercheck -m 0 500 vcmp.players
}
alias vcmp.check {
  var %id = $vcmp.getid($1)
  if (%id != Unknown) {
    vcmp.startcash %id
    vcmp.dointerest %id
    vcmp.setmoney %id $vcmp.cash(%id)
  }
 
  }





in vcmp.load (this is where you load the ini etc)
set this

vcmp.accounts.ini


this is the command to login



elseif ($2 == login) {
    if ($vcmp.pass(%id) == $null) vcmp.msg %id Error - This Nick-Name is not Registered
    elseif ($vcmp.lin(%id) == 1) vcmp.msg %id Error - You are already logged in
    elseif (!$3) vcmp.msg %id Error - Missing Information, /c $2 <password>
    elseif ($3 != $vcmp.pass(%id)) vcmp.msg %id Error - Incorrect Password, Please Try Again
    else {
      vcmp.say $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator)) %name Logged In (Admin Level: $vcmp.level(%id) $+ )
      vcmp.msg %id You Logged In - Nick-Name: %name $+ , Admin Level: $vcmp.level(%id) $+ , Status: $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator))
      vcmp.timer.login %name off
      !writeini -n vcmp.accounts.ini LIN %name 1
      !writeini -n vcmp.accounts.ini IPS %name $vcmp.ip(%name)
    }
  }



I have helped
#2
cool :D

i can participate of the tests ???
#3
lol

no ip, put the ip
#4
VC:MP Clans / Re: VC:MP clans
December 22, 2010, 03:06:20 PM

          Legion Brazilian
       Country: Brazil  and International
       Leader: george
      Co-Leader: LucianO_BR
       Tag: [LBR]
       Homepage: www.lbr.smfnew.com
       IRC Channel: irc.gtanet.com #.LBR
#5
can someone post a link all valid links that are in this forum for the gus 10 are not functioned ;)