]>
jfr.im git - irc/gameservirc.git/blob - gameserv/do_load.cpp
10 if (!(user
= find(u
)))
12 notice(s_GameServ
, u
, "Error: aClient not found. Contact a <S admin");
13 log("Error: aClient not found: %s", u
);
15 else if (!isAdmin(user
))
17 notice(s_GameServ
, u
, "You must be a <S admin to use this command!");
21 char *cmd2
= strtok(NULL
, " ");
24 notice(s_GameServ
, u
, "Loading player data from %s", playerdata
);
27 else if (stricmp(cmd2
, "MONSTERS") == 0)
29 notice(s_GameServ
, u
, "Loading monster data");
32 else if (stricmp(cmd2
, "SCRIPTS") == 0)
34 // Testing scripts for now
36 notice(s_GameServ
, u
, "Loading scripts");
38 if (scr
.loadScript("test.txt"))
39 scr
.executeScript(user
->stats
);
43 display_help(u
, "load");