Cruel 4 Posted October 7, 2014 Share Posted October 7, 2014 (edited) Hello community, Today i will presend you, how to grand acces to players from CMD. Lets start: 1.Open config.cpp 2.Search if ((fp = fopen("CMD", "r"))) 3.Replace fprintf(stderr, "CMD syntax error: <cmd> <DISABLE | LOW_WIZARD | WIZARD | HIGH_WIZARD | GOD>n"); with fprintf(stderr, "CMD syntax error: <cmd> <DISABLE | PLAYER | LOW_WIZARD | WIZARD | HIGH_WIZARD | GOD>n"); 4.Search if (!strcasecmp(levelname, "LOW_WIZARD")) level = GM_LOW_WIZARD; and add under this else if (!strcasecmp(levelname, "PLAYER")) level = GM_PLAYER; Finally, it should looks like this: Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active Member hachiwari 138 Posted October 7, 2014 Active Member Share Posted October 7, 2014 4.Search if (!strcasecmp(levelname, "LOW_WIZARD")) level = GM_LOW_WIZARD; and add under this if (!strcasecmp(levelname, "PLAYER")) level = GM_PLAYER; Nope.. "and add under this else if (!strcasecmp(levelname, "PLAYER")) level = GM_PLAYER; Link to comment Share on other sites More sharing options...
Cruel 4 Posted October 7, 2014 Author Share Posted October 7, 2014 Oh yes, i was write so fast. One moment. Link to comment Share on other sites More sharing options...
Honorable Member martysama0134 7171 Posted October 7, 2014 Honorable Member Share Posted October 7, 2014 Click 1 Check out my GitHub Link to comment Share on other sites More sharing options...
Cruel 4 Posted October 9, 2014 Author Share Posted October 9, 2014 I was thinking about im first who made that. Link to comment Share on other sites More sharing options...
Night 366 Posted October 10, 2014 Share Posted October 10, 2014 the way he did is cleaner (not in coding part but for using marco to define whather you use it or not) thanks anyway Link to comment Share on other sites More sharing options...
loyein 18 Posted January 3, 2016 Share Posted January 3, 2016 Thx. Link to comment Share on other sites More sharing options...
Recommended Posts