46
mIRC/pawn Scripting / Re: WSV script... (help)
« on: October 01, 2008, 09:44:22 am »
Fix it for me also i will try to convert it.....
Thanks
Punjabi_goli
Thanks
Punjabi_goli
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.
elseif (heal == $3) {
WSV.cmdlevelcheck $1-
if (Hospital isin $WSV.loco($2)) {
if ($WSV.money >= 500) {
hdec WSV.money $WSV.name($2) 500
WSV.setcash $2 $WSV.money($3)
WSV.sethealth $2 100
WSV.announce $2 You are healed by the doctors of the hospital.
}
else WSV.msg $2 You need at least 500
}
else WSV.msg $2 You need to be Hospital.
}
elseif (jail* iswm $3) {
if ($WSV.pconnected($4)) {
if ($5) {
if $WSV.levels($2) >= $WSV.levels($4) {
WSV.cmdlevelcheck3 $1-
WSV.say Admin $WSV.name($2) Jailed player: $chr(91) $WSV.name($4) $chr(93) For: $chr(91) $5- $chr(93) seconds.
WSV.setlocation $WSV.id($4) 381.6198 -504.7959 9.3956
WSV.setweapon $WSV.id($4) 0 1
WSV.announce $WSV.id($4) You are ~o~jailed! ~u~for $5- seconds
WSV.setcontrols $WSV.id($4) 0
!.timer 1 $5- /WSV.setcontrols $WSV.id($4) 1
!.timer 1 $5- /WSV.announce $WSV.id($4) Jailing over! you can go now
}
else WSV.msg $2 You can't jail someone who has higher level than you.
}
else WSV.msg $2 Please set the jailing time.
}
else WSV.msg $2 Player unavailable!
}
elseif (($2 == !changecarowner) || ($2 == !cco)) {
if ($hget(vcmp,loggedin. $+ %id) < 10) { vcmp.adminmsg %id You must be Admin Level 10 or higher to attempt this command. }
else {
!writeini -n vcmp.cars.ini OWNERS $3 $4-
}
}
elseif (heal == $3) {
WSV.cmdlevelcheck $1-
if (Hospital isin $WSV.loco($2)) {
if ($WSV.money >= 500) {
hdec WSV.money $WSV.name($2) 500
WSV.setcash $2 $WSV.money($3)
WSV.sethealth $1 100
WSV.announce $2 You are healed by the doctors of the hospital.
}
else WSV.msg $2 You need at least 500
}
else WSV.msg $2 You need to be Hospital.
}