![]() |
Any Brilliant Tallenter Scripters?
basically i have a gui with warn , jail and unjail and i want it to be activated when you double click a player and then the text fields filled with the players account if thats possible :3
here is the script if anyone knows how to do it it would be MUCH appriciated :3 function onActionServerSide() { if (params[0] == "jail") { findplayerbycommunityname(params[1]).setlevel2("jail.nw", 31.5, 28.5); } if (params[0] == "unjail") { findplayerbycommunityname(params[1]).setlevel2("ge_f2.nw", 0, 24); } if (params[0] == "warn") { findplayerbycommunityname(params[1]).setlevel2("warning_room.nw", 37.5, 16.5); } } //Scripted By Gunderak //#CLIENTSIDE function onKeyPressed(code, key, scancode) { if (key == "3") { new GuiWindowCtrl("MyGUI_Window1") { profile = GuiBlueWindowProfile; clientrelative = true; clientextent = "161,87"; canmaximize = false; canminimize = false; canmove = true; canresize = true; closequery = false; destroyonhide = true; text = "Tools"; y = 96; new GuiButtonCtrl("MyGUI_Button1") { profile = GuiBlueButtonProfile; text = "Jail"; width = 80; } new GuiButtonCtrl("MyGUI_Button2") { profile = GuiBlueButtonProfile; text = "Unjail"; width = 80; y = 29; } new GuiButtonCtrl("MyGUI_Button3") { profile = GuiBlueButtonProfile; text = "Warn"; width = 80; y = 58; } new GuiTextEditCtrl("MyGUI_TextEdit1") { profile = GuiBlueTextEditProfile; height = 20; width = 80; x = 80; y = 5; } new GuiTextEditCtrl("MyGUI_TextEdit2") { profile = GuiBlueTextEditProfile; height = 20; width = 80; x = 80; y = 34; } new GuiTextEditCtrl("MyGUI_TextEdit3") { profile = GuiBlueTextEditProfile; height = 20; width = 80; x = 80; y = 64; } } } } function MyGUI_Button1.onAction() { triggerserver("gui",this.name,"jail",MyGUI_TextEdi t1.text); } function MyGUI_Button2.onAction() { triggerserver("gui",this.name,"unjail",MyGUI_TextE dit2.text); } function MyGUI_Button3.onAction() { triggerserver("gui",this.name,"warn",MyGUI_TextEdi t3.text); } |
1. You should generally style your weapons. Makes it easier to debug. Also use the php tags
2. How to do it: You would have to check first if the player is clicking the other player twice. The function would look like: PHP Code:
PHP Code:
PHP Code:
|
sorry im a bit of a newb, im fairly new to scripting still :3 but how would i impliment all this into my script :/
would i put function on mouse double blah blah ithen make that open it? what do i put in herecouldbeyourname because i want it to make the test in the text box who ever i click |
the server its on is Dev MrMagoo if you wanna have a looksie :3
|
Quote:
Quote:
Quote:
Quote:
|
| All times are GMT +2. The time now is 11:19 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.