Ragnarok Developer
Please Login to able Download the File
Ragnarok Developer
Please Login to able Download the File
Ragnarok Developer

Official Forums
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  
Your Ad Here

 

 No @go when Player died

Go down 
AuthorMessage
JhayUrsolino
Admin



Posts : 15
Join date : 12/09/2012

No @go when Player died Empty
PostSubject: No @go when Player died   No @go when Player died EmptyMon 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
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: