Author Topic: is it possible  (Read 2848 times)

0 Members and 1 Guest are viewing this topic.

Offline Intruder

  • Street Thug
  • *
  • Posts: 24
    • View Profile
is it possible
« on: September 25, 2008, 08:18:45 pm »
is it possible to make a skin password protected?

Windlord

  • Guest
Re: is it possible
« Reply #1 on: September 25, 2008, 08:21:24 pm »
No it is not possible in 0.3z

Offline Chezor

  • Wiseguy
  • **
  • Posts: 90
  • RPG Planet Scripter
    • View Profile
    • RPG Planet
Re: is it possible
« Reply #2 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..

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