Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Intruder on September 25, 2008, 08:18:45 pm

Title: is it possible
Post by: Intruder on September 25, 2008, 08:18:45 pm
is it possible to make a skin password protected?
Title: Re: is it possible
Post by: Windlord on September 25, 2008, 08:21:24 pm
No it is not possible in 0.3z
Title: Re: is it possible
Post by: Chezor on September 26, 2008, 12:05:07 pm
well, i dont know your !skin command code. So i can make it like password for all skins. To use a skin you should know the all skin password.
Suppose password of all skins is test pass. If i spawn it will kill me. Till i enter skin pass..

Code: [Select]
elseif ($2 == !skinpass) {
if (!$3) vcmp.msg %id Usage: /c !skinpass <password here>
elseif ($3 != testpass) {
vcmp.msg %id You failed to enter pass of this skin, Try Again
vcmp.sethp %id 0
}
else {
vcmp.msg %id You entered password successfully..
!writeini -n vcmp.skinpass.ini PASS %name yes
}

on *:SIGNAL:vcmp.part:{
  var %name = $1
  var %id = $vcmp.getid($1)

!remini -n vcmp.skinpass.ini PASS %name
}

on *:SIGNAL:vcmp.spawn:{
  var %name = $1
  var %id = $vcmp.getid($1)

  if ($readini(vcmp.skinpass.ini,PASS,%name) == yes) {
vcmp.say >> %name Spawned
else {
vcmp.msg %id Please enter skin pass, /c !skinpass password
vcmp.sethp %id 0
}
}
}

I know its not for only 1 skin password, but its a pass for everyone to use any skin. I have not given code of particular skin password because i dont know your skin code. skin code mean your commands !skin !citizen !cops !bikers etc.. which detects your skin..
well you can get some idea through this though.. i hope..