Vice City Multiplayer
November 14, 2018, 02:28:38 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: VC:MP 0.3z r2 is released! http://vicecitymultiplayer.com
 
   Home   Help Search Members Login Register  
Pages: [1]
  Print  
Author Topic: Login and Level System  (Read 826 times)
0 Members and 1 Guest are viewing this topic.
Kush
Street Thug
*
Offline Offline

Posts: 4


View Profile
« on: April 26, 2011, 09:44:19 pm »

Hey all,

How would I go about implementing a Login and a Leveling Up System on my server?

Would I need to use mIRC? If so, can someone post up a quick explanation of how to do it?

I'm familiar with Pawno, but I've been reading the forums and i don't believe it can be done with it.

Thanks,

Kush.
Logged

[R2] *USA* VCMP Server [EuphoricHosting]
173.34.193.77:5192
BIG[H]
Made Man
***
Offline Offline

Posts: 198

(Pawn / Squirrel) Scripter.


View Profile
« Reply #1 on: April 27, 2011, 03:46:38 am »

Use Gups

http://thijn.vrocker-hosting.co.uk/vcmp/GUPS1.16a.rar
Logged

My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL
stormeus
Administrator
Wiseguy
*****
Offline Offline

Posts: 60


[IT]


View Profile WWW
« Reply #2 on: April 27, 2011, 12:06:19 pm »


BIG, he said mIRC. GUPS is for Pawn.
Logged

BIG[H]
Made Man
***
Offline Offline

Posts: 198

(Pawn / Squirrel) Scripter.


View Profile
« Reply #3 on: April 27, 2011, 02:29:07 pm »

   
Quote
Login and Level System

How would I go about implementing a Login and a Leveling Up System on my server?

Would I need to use mIRC? If so, can someone post up a quick explanation of how to do it?

I'm familiar with Pawno, but I've been reading the forums and i don't believe it can be done with it.

Thanks,

Kush.

SO He Thinks that Login and register Can't be Done with pawno anyways GUPS has Register / Login System
« Last Edit: April 27, 2011, 04:26:07 pm by BIG[H] » Logged

My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL
LBR.george
Street Thug
*
Offline Offline

Posts: 5


View Profile
« Reply #4 on: April 27, 2011, 03:20:34 pm »

the command
Code:
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

Code:

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
Code:
vcmp.accounts.ini

this is the command to login

Code:

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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!