JhayUrsolino Admin
Posts : 15 Join date : 12/09/2012
| Subject: No @go when Player died Mon Jan 07, 2013 5:12 pm | |
| - Code:
-
Index: atcommand.c =================================================================== --- atcommand.c (revision 16589) +++ atcommand.c (working copy) @@ -2010,6 +2010,14 @@ clif_displaymessage(sd->fd,"You can not use @go on this map."); return 0; } + +/*========================================== + * no @ go when players died - EliteBlack + *------------------------------------------*/ + if( pc_isdead(sd) ) { + clif_displaymessage(sd->fd,"You can not use @go when you are dead."); + return 0; + } memset(map_name, '\0', sizeof(map_name)); memset(atcmd_output, '\0', sizeof(atcmd_output));
| |
|