Ragnarok Developer
Please Login to able Download the File
Ragnarok Developer

Official Forums
 
HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  
Your Ad Here

Share | 
 

 No @go when Player died

Go down 
AuthorMessage
JhayUrsolino
Admin


Posts : 15
Join date : 12/09/2012

PostSubject: 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));
Back to top Go down
View user profile http://jrursolino.blogspot.com
 
No @go when Player died
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Ragnarok Developer :: Scripts :: SRC Modification-
Jump to: