• Welcome to Vice City Multiplayer.
 

is it possible

Started by Intruder, September 25, 2008, 06:18:45 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Intruder

is it possible to make a skin password protected?

Windlord

No it is not possible in 0.3z

Chezor

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..


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..

Scripts: Fuel system in vehicles, Speedometer, Spawnback, Improved Copwork, Improved Jailing, Improved phone with sms, and many more. Coming soon..