public static void SendTickerToServer() { if (PlayerAuthenticate.isLogged && _tickerList.Count > 0) { LiveTick nextTicker = _tickerList.First(); if (nextTicker != null) { WebRequestManager.SendResponse(nextTicker.Data, nextTicker.responseHandler); _tickerList.Remove(nextTicker); } } }
public static void Login() { IniReader playOnlineIni = new IniReader("Plugins/LSPDFR/PoliceLifeS/PoliceLifeS.ini", "Account", "online", "true"); playOnline = playOnlineIni.getIniOption(); if (playOnline == "true") { var postData = new List <KeyValuePair <string, string> >(); postData.Add(new KeyValuePair <string, string>("Methode", "LoginCall")); var responseObject = new WebRequestManager.RequestResponseObject(); responseObject.handler = new WebRequestManager.getWebRequestResponse(loginResponse); WebRequestManager.SendResponse(postData, responseObject); } else { isLogged = false; onlineUsername = ""; NotificationManager.addNotification("[~b~Police~s~Life~r~S~s~]: ~r~You disabled the Online-Mode, your data will not be updated with our Server. ~w~Visit http://PoliceLifeS.de for more Infos"); Game.DisplayHelp("In our online mode, you have more options (EXP System, Callout Statistics and more)"); } }