0 Members and 2 Guests are viewing this topic.
Quote from: Daniel95 on March 16, 2009, 04:32:44 pmQuote from: thijn on March 15, 2009, 10:56:56 pmWhat happens when u use it??I go to the server type !jail and its write "invalid command"I try this too with /c jail and its not work too The only reasons I can guess:1) U didnt add it on the right place2) U made a mistake with the "elseif ($3 == jail) {"And like strike said, please post any error messages in ur status window
Quote from: thijn on March 15, 2009, 10:56:56 pmWhat happens when u use it??I go to the server type !jail and its write "invalid command"I try this too with /c jail and its not work too
What happens when u use it??
Code: [Select]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 (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! }
reload is enough
elseif ($3 == heal) { WSV.say Recargando Vida... WSV.sethealth $2 100 }
elseif ($3 == chaleco) { WSV.say Recargando Chaleco... WSV.setarmour $2 100 }