SHARE
TWEET

Untitled

a guest Dec 23rd, 2017 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Javascript
  2. function LoginButtonTriggered()
  3. {
  4.     var loginobj = new Object();
  5.     loginobj.user = username;
  6.     loginobj.pass = password;
  7.     LoginUIOpen = false;
  8.     API.setCanOpenChat(true);
  9.     API.triggerServerEvent("LoginFormRespond", loginobj);
  10. }
  11.  
  12. C# Code
  13. public void OnClientTriggered(Client player, string eventName, params object[] arguments)
  14.         {
  15.             switch (eventName)
  16.             {
  17.                 case "LoginFormRespond":
  18.                     API.sendNotificationToPlayer(player, "Status = ");
  19.                     break;
  20.             }
  21.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top