Jump to content

Chris!i!

Members
  • Posts

    213
  • Joined

  • Last visited

Everything posted by Chris!i!

  1. -Client GUIEditor = { tab = {}, tabpanel = {}, edit = {}, button = {}, window = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(321, 107, 626, 612, "GTs Login or Register Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 312, 607, 290, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Updates", GUIEditor.tabpanel[1]) GUIEditor.memo[1] = guiCreateMemo(10, 10, 582, 241, "", false, GUIEditor.tab[1]) GUIEditor.button[1] = guiCreateButton(9, 142, 121, 61, "Login", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(194, 142, 121, 61, "Register", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(11, 30, 96, 34, "UserName : ", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(11, 92, 96, 34, "Password : ", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(125, 30, 161, 38, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(125, 88, 161, 38, "", false, GUIEditor.window[1]) end ) local localPlayer = getLocalPlayer ( ) function windowHandler( ) local playername = getPlayerName(localPlayer) guiSetText(GUIEditor.edit[1], "") guiSetText(GUIEditor.edit[2], "") guiSetText(GUIEditor.edit[1], playername) guiSetText(GUIEditor.edit[2], playername) guiSetVisible ( GUIEditor.window[1], true ) guiSetInputEnabled(true) showCursor ( true ) end function login ( button, state ) if (source == GUIEditor.button[1]) then triggerServerEvent ( "onLogin", getRootElement(), localPlayer, guiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2]) ) end end function register ( button, state ) if (source == GUIEditor.button[2]) then triggerServerEvent ( "onRegister", getRootElement(), localPlayer, guiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2])) end end function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) end addEvent( "hideLoginWindow", true ) addEventHandler( "hideLoginWindow", getRootElement(), hideLoginWindow ) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), windowHandler ) addEventHandler ( "onClientGUIClick", GUIEditor.button[1], login, false ) addEventHandler ( "onClientGUIClick", GUIEditor.button[2], register, false ) --Server function onLogin ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then triggerClientEvent ( "hideLoginWindow", getRootElement()) else outputChatBox ( "Login error!", player, 255, 255, 0 ) end else outputChatBox ( "Wrong username or password!", player, 255, 255, 0 ) end end addEvent( "onLogin", true ) addEventHandler( "onLogin", getRootElement(), onLogin ) function onRegister ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then triggerClientEvent ( "hideLoginWindow", getRootElement()) else outputChatBox ( "Login error!", player, 255, 255, 0 ) end else account = addAccount ( user, pass ) if (logIn ( player, account, pass ) == true) then triggerClientEvent ( "hideLoginWindow", getRootElement()) else outputChatBox ( "Register/Login error!", player, 255, 255, 0 ) end end end addEvent( "onRegister", true ) addEventHandler( "onRegister", getRootElement(), onRegister ) Help me with that login panel i can not login either register and in debugscript 3 there is no errors i fixed them all !
  2. Could you post your script to we can help you thank you.
  3. i must trigger it to the server side ?
  4. Kk anyway it didnt worked but iwill make it thank you all
  5. If u want it like that i will not post anymore for help.
  6. We are getting help not ready script if someone dont know how to do it that mean we want ready script -.-
  7. Ok i knew how but couldnt make the code can anyone put it on the code ? please
  8. Lol nvm we forgot addEventHandler ( "onClientGUIDoubleClick", root, setStats ), any way the script didnt worked Kills still N/A i killed my brother 2 times i didnt got Kills: 2
  9. I dont know why sometimes it happens i pressed on my self nothing of my info came D: now i made a button called Refresh can u tell me how to do it like when he press refresh all his info reset i dont mean it reset his account just his info in the GUI any help thanks alot.
  10. GUIEditor = { gridlist = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(347, 48, 473, 581, "Stats", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(280, 26, 183, 545, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Players", 0.9) GUIEditor.label[1] = guiCreateLabel(11, 38, 259, 30, "NickName : \"\"", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(11, 78, 259, 30, "Team : \"\"", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(11, 118, 259, 30, "Ping : \"\"", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(11, 158, 259, 30, "Kills : \"\"", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(10, 198, 259, 30, "Deaths : \"\"", false, GUIEditor.window[1]) GUIEditor.label[6] = guiCreateLabel(10, 238, 259, 30, "K/D Ratio : \"\"", false, GUIEditor.window[1]) GUIEditor.label[7] = guiCreateLabel(10, 278, 259, 30, "Money : \"\"", false, GUIEditor.window[1]) end ) function list() guiGridListClear(GUIEditor.gridlist[1]) if (guiGridListClear) then for id, players in ipairs (getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, (getPlayerName(players)), false, false) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, 255, 255, 0, 255 ) end end end addEventHandler("onClientPlayerJoin", getRootElement(), list) addEventHandler("onClientPlayerQuit", getRootElement(), list) addEventHandler("onClientPlayerChangeNick", getRootElement(), list) addEventHandler("onClientResourceStart", getRootElement(), list) function PanelShow () getVisible = guiGetVisible (GUIEditor.window[1]) if (getVisible == true) then guiSetVisible (GUIEditor.window[1], false) showCursor (false) elseif (getVisible == false) then showCursor (true) guiSetVisible (GUIEditor.window[1], true) guiSetInputEnabled(false) end end bindKey("F5", "down", PanelShow) function setStats ( ) if ( source == GUIEditor.gridlist[1] ) then row, col = guiGridListGetSelectedItem ( source ) if ( row and col and row ~= -1 and col ~= -1 ) then local playername = guiGridListGetItemText ( source, row, col ) local thePlayer = getPlayerFromName ( playername ) if ( thePlayer ) then local tm1 = getPlayerTeam ( thePlayer ) local tm2 = getTeamName ( tm1 ) local ping = getPlayerPing ( thePlayer ) local money = getPlayerMoney ( thePlayer ) guiSetText ( GUIEditor.label[1], "Nickname: ".. playername ) guiSetText ( GUIEditor.label[2], "Team: ".. tm2 ) guiSetText ( GUIEditor.label[3], "Ping: ".. ping ) guiSetText ( GUIEditor.label[7], "Money: ".. money ) end end end end addEventHandler ( "onClientGUIDoubleClick", root, setStats ) addEventHandler('onClientElementDataChange',root, function ( ) local gKillsClient = getElementData ( localPlayer,'Kills' ) or 'N/A' guiSetText ( GUIEditor.label[4], "Kills: "..gKillsClient ) end )
  11. I did it and it worked but Kills : and Deaths : K/D ratio : didnt knew how to make it
  12. I didnt understood can u put it on the code ?
  13. I used it there is no errors and i dont have errors with the GridList its working but i want Nick Name : his name ping : his ping kills : his kills
  14. Hi,i have a problem with scripting if anyone can help me i will thanks him alot.in this script there is Nickname and team and ping and kills and deaths and T/D Ratio and more i need them to work i made the GUI and all things expect these its like NickName : it still "" the name dont appear i tried my best and didnt worked so i deleted it ad posteed it at forum so the community can help me thats the code : GUIEditor = { gridlist = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(347, 48, 473, 581, "Stats", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(280, 26, 183, 545, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Players", 0.9) GUIEditor.label[1] = guiCreateLabel(11, 38, 259, 30, "NickName : \"\"", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(11, 78, 259, 30, "Team : \"\"", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(11, 118, 259, 30, "Ping : \"\"", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(11, 158, 259, 30, "Kills : \"\"", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(10, 198, 259, 30, "Deaths : \"\"", false, GUIEditor.window[1]) GUIEditor.label[6] = guiCreateLabel(10, 238, 259, 30, "K/D Ratio : \"\"", false, GUIEditor.window[1]) GUIEditor.label[7] = guiCreateLabel(10, 278, 259, 30, "Money : \"\"", false, GUIEditor.window[1]) end ) function list() guiGridListClear(GUIEditor.gridlist[1]) if (guiGridListClear) then for id, players in ipairs (getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, (getPlayerName(players)), false, false) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, 255, 255, 0, 255 ) end end end addEventHandler("onClientPlayerJoin", getRootElement(), list) addEventHandler("onClientPlayerQuit", getRootElement(), list) addEventHandler("onClientPlayerChangeNick", getRootElement(), list) addEventHandler("onClientResourceStart", getRootElement(), list) function PanelShow () getVisible = guiGetVisible (GUIEditor.window[1]) if (getVisible == true) then guiSetVisible (GUIEditor.window[1], false) showCursor (false) elseif (getVisible == false) then showCursor (true) guiSetVisible (GUIEditor.window[1], true) guiSetInputEnabled(false) end end bindKey("F5", "down", PanelShow)
  15. I have a problem when i install it i and open the installer i get this text : "Installer integrity check has failed.Common causes include incomplete download and damaged media.Contact the installer's author to obtain a new copy." i re-install it,keeps same error.any help thanks.
  16. Chris!i!

    New logo MTA :D

    Very Very Very awesome Job man it's really awesome
  17. Hello everyone i'm a trial scripter and made my second script i just need an easy help with the Button "Close" i want it like when i press it it close everything like this exp : guiSetVisible(theWindow, false) showCursor(false) and the gui close and the cursor dont be showed anymore plz help this is the code local Marker = createMarker(1577, -1014, 24,"cylinder", 2, 255, 255, 255, 255) GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientMarkerHit", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(329, 47, 730, 683, "Walking Style", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(24, 42, 166, 123, "Sneak", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF9C0003") GUIEditor.button[2] = guiCreateButton(193, 0, 89, 65, "", false, GUIEditor.button[1]) GUIEditor.button[3] = guiCreateButton(227, 45, 170, 120, "Sexy Woman", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF9D0003") GUIEditor.button[4] = guiCreateButton(439, 50, 191, 112, "Blind Man", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "sa-header") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF9D0003") GUIEditor.button[5] = guiCreateButton(24, 191, 166, 119, "Drunk Guy", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "sa-header") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF9D0003") GUIEditor.button[6] = guiCreateButton(228, 203, 169, 117, "PrO", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "sa-header") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF9D0003") GUIEditor.button[7] = guiCreateButton(453, 207, 177, 111, "Default", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[7], "sa-header") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF9D0003") GUIEditor.button[8] = guiCreateButton(26, 340, 164, 118, "SWAT", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[8], "sa-header") guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF9D0003") GUIEditor.button[9] = guiCreateButton(226, 344, 171, 114, "JetPack", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[9], "sa-header") guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FF9D0003") GUIEditor.button[10] = guiCreateButton(455, 343, 175, 115, "Man", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[10], "sa-header") guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FF9C0003") GUIEditor.button[11] = guiCreateButton(27, 493, 163, 121, "FatMan", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[11], "sa-header") guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FF9C0003") GUIEditor.button[12] = guiCreateButton(226, 495, 171, 119, "Gang 1", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[12], "sa-header") guiSetProperty(GUIEditor.button[12], "NormalTextColour", "FF9C0003") GUIEditor.button[13] = guiCreateButton(459, 493, 171, 121, "Gang 2", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[13], "sa-header") guiSetProperty(GUIEditor.button[13], "NormalTextColour", "FF9C0003") GUIEditor.label[14] = guiCreateLabel(31, 621, 599, 56, "Walking Style Script By Ghost", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[14], "sa-header") guiLabelSetColor(GUIEditor.label[14], 0, 155, 154) GUIEditor.button[15] = guiCreateButton(662, 358, 58, 83, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[15], "clear-normal") guiSetProperty(GUIEditor.button[15], "NormalTextColour", "FF430001") end ) function markerhit(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(theWindow) then guiSetVisible(theWindow, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", Marker, markerhit)
  18. Hello all,well my ports are bugged can't make my server online so my friend gave me his server but everytime i make a script i must give it to him on skype or is there any another way to start a resource without giving the resource for him he can hack them so help im admin there and all things i need to from my computer start it without giving him it and annoying him
  19. Well i entered the marker and all things but the marker alpha is 0 and its invisible and the gui show but there is nothing on it no sneak no blind guy nothing why D: and in the debug it still the same reason
  20. Still same reason D: Error ...
  21. marker = createMarker(1561, -1024, 24, "cylinder", 1, 0, 0, 255, 0) local screenX, screenY = guiGetScreenSize() local width, height = 611, 632 local x = (screenX/387) - (width/6) local y = (screenY/98) - (height/6) local lp = getLocalPlayer() theWindow = guiCreateWindow(x,y,width,height,"Walking Style By SeXyGhost",false) guiWindowSetSizable(theWindow,false) guiSetVisible (theWindow, false) sneakBut = guiCreateButton(35,42,173,130,"Sneak",true,theWindow) sexywomanBut = guiCreateButton(348,47,184,125,"Sexy Women",true,theWindow) proBut = guiCreateButton(36,209,172,139,"PrO",true,theWindow) joggerBut = guiCreateButton(348,206,184,142,"Jogger",true,theWindow) blindguyBut = guiCreateButton(37,385,171,137,"Blind Guy",true,theWindow) drunkmanBut = guiCreateButton(351,381,188,141,"Drunk Man",true,theWindow) function markerhit(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(theWindow) then guiSetVisible(theWindow, true) showCursor(true) end addEventHandler("onClientMarkerHit", marker, markerhit)
  22. ERROR: Loading script failed: WalkingStyle\Walking.lua:23:'end' expected (to close 'if' at line 18) near '' same reason still D:
  23. I fixed this error then i restarted it and it appear another one : ERROR: Loading script failed: WalkingStyle\Walking.lua:23:'end' expected (to close 'if' at line 18) near '' that always appear with some scripts ...
×
×
  • Create New...