ThyroDree 3 Posted March 2, 2014 how to disable @go,@warp because i test @die and @go 0 and the character is alive o-o i want if a character is dead and type @go 0 or any warps he/she will be warped but it is still dead. Quote Share this post Link to post Share on other sites
0 kyeme 71 Posted March 2, 2014 permissions: { disable_commands_when_dead: true } Add like this ^ in your group.conf or I missunderstood the question? O-O Quote Share this post Link to post Share on other sites
0 ThyroDree 3 Posted March 2, 2014 what will happen if i set it on true? Quote Share this post Link to post Share on other sites
0 Cabrera 10 Posted March 2, 2014 Then the player will be able to use commands though he's dead Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 2, 2014 well, using rathena so ... you don't have to do source modification too bindatcmd can overwrite the original atcommand, useful for this operation - script kdjhfksjfhs -1,{OnInit: bindatcmd "go", strnpcinfo(0)+"::Onaaa"; bindatcmd "rura", strnpcinfo(0)+"::Onaaa"; bindatcmd "warp", strnpcinfo(0)+"::Onaaa"; bindatcmd "mapmove", strnpcinfo(0)+"::Onaaa"; end;Onaaa: if ( !Hp ) { message strcharinfo(0), "You can't use "+ .@atcmd_command$ +" when you are dead"; end; } atcommand .@atcmd_command$ +" "+ implode( .@atcmd_parameters$, " " ); end;} 1 Begin reacted to this Quote Share this post Link to post Share on other sites
how to disable @go,@warp because i test @die and @go 0 and the character is alive o-o i want if a character is dead and type @go 0 or any warps he/she will be warped but it is still dead.
Share this post
Link to post
Share on other sites