espriketic Posted June 11, 2018 Posted June 11, 2018 Hi, How to disable player commands when his/her character dies? e.i.: If player dies, he/she should not be able to use game commands (like @go, @warp, etc.) Thank You! Quote
0 crazyarashi Posted June 11, 2018 Posted June 11, 2018 atcommand.cpp ACMD_FUNC(storage) { nullpo_retr(-1, sd); if (sd->npc_id || sd->state.vending || sd->state.buyingstore || sd->state.trading || sd->state.storage_flag || pc_isdead(sd)) // Add pc_isdead(sd) ACMD_FUNC(go) { if (status_isdead(&sd->bl)){ // Add this line to your @go atcmd clif_displaymessage(sd->fd,"You can not use this command while dead."); return 0; Quote
Question
espriketic
Hi,
How to disable player commands when his/her character dies?
e.i.: If player dies, he/she should not be able to use game commands (like @go, @warp, etc.)
Thank You!
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.