Lenya Posted March 3, 2013 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 59 Reputation: 0 Joined: 01/25/13 Last Seen: March 16, 2013 Share Posted March 3, 2013 Hi, how I can disable the command @die in pvp? Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 3, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted March 3, 2013 If your emulator is rA, you can try Bindatcmd (I suggest to learn how to use it, very useful) and check if the player attached is on a pvp map with getmapflag - script stop_die -1,{ OnInit: bindatcmd "die",strnpcinfo(0) +"::OnPCDie"; end; OnPCDie: if( getmapflag( strcharinfo(3),mf_pvp ) && getgmlevel() < 10 ) message strcharinfo(0),"You can't use @die on pvp maps."; else atcommand "@die"; end; } 1 Quote Link to comment Share on other sites More sharing options...
Question
Lenya
Hi,
how I can disable the command @die in pvp?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.