Code:else if (strcmp(command, "name")==0) if(Config.Command_Ban > thisclient->Session->accesslevel) //*Works on acceslevel of Go so no need to edit headers. return true; char newcharname[65]; strcpy (newcharname,"[GM]"); strcat (newcharname, thisclient->CharInfo->charname); GServer->DB->QExecute(" UPDATE characters SET char_name = '%s' WHERE id = '%i' ",newcharname, thisclient->CharInfo->charid);
THat's what I've got so far, now the only thing I need to know is how to set the name to what you've typed, for example /name newb.
So I need to change [NAME] inI think this might be an usefull command for GMs.Code:strcpy (newcharname,"[GM]");
Thanks in advance.![]()




