while (it != settings->GetScriptParams().end())
{
scriptOnConnectParams += " \"" + GetParamValue(it->c_str()) + "\"";
+ ++it;
}
ScriptExec(scriptOnConnectParams.c_str());
while (it != settings->GetScriptParams().end())
{
scriptOnDisonnectParams += " \"" + GetParamValue(it->c_str()) + "\"";
+ ++it;
}
ScriptExec(scriptOnDisonnectParams.c_str());
if (name == "userdata7") return property.userdata7;
if (name == "userdata8") return property.userdata8;
if (name == "userdata9") return property.userdata9;
-//if (name == "cash") return property.cash.ToString();
-//if (name == "id")
-// {
-// std::stringstream stream;
-// stream << id;
-// return stream.str();;
-// }
-//if (name == "login") return login;
-//if (name == "ip") return currIP.ToString();
+if (name == "cash") return property.cash.ToString();
+if (name == "id")
+ {
+ std::stringstream stream;
+ stream << id;
+ return stream.str();;
+ }
+if (name == "login") return login;
+if (name == "ip") return currIP.ToString();
+return "";
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------