Jump to content

Mark0

Members
  • Posts

    89
  • Joined

  • Last visited

Everything posted by Mark0

  1. Mark0

    Login Panel

    i create a guiwindow for my login panel So how to set it vesible and to active the login/register button ? i'm noob at scripting Login = guiCreateWindow(0.2775,0.155,0.5263,0.7933,"Login",true) guiWindowSetMovable(Login,false) guiWindowSetSizable(Login,false) loginButton = guiCreateButton(0.2257,0.7752,0.5748,0.0462,"Login",true,Login) registerButton = guiCreateButton(0.228,0.8634,0.5701,0.0483,"Register",true,Login) infolbl = guiCreateLabel(0.3159,0.3613,0.3682,0.0483,"Welcome to....server",true,Login) guiLabelSetColor(infolbl,50,100,50) guiLabelSetVerticalAlign(infolbl,"center") guiLabelSetHorizontalAlign(infolbl,"center",false) guiSetFont(infolbl,"default-bold-small") userlbl = guiCreateLabel(0.0665,0.4748,0.2328,0.042,"Your Username : ",true,Login) guiSetFont(userlbl,"default-bold-small") passlabl = guiCreateLabel(0.0665,0.5861,0.228,0.0357,"Your Password : ",true,Login) guiSetFont(passlabl,"default-bold-small") edit_Login = guiCreateEdit(0.3135,0.458,0.5178,0.0588,"",false,Login) edit_password = guiCreateEdit(0.3135,0.5714,0.5178,0.0588,"",false,Login) logimg = guiCreateStaticImage(0.2423,0.0504,0.5202,0.313,"images/mtalogo.png",true,Login) Reg = guiCreateWindow(0.6062,0.2617,0.3787,0.6683,"register",true) guiSetAlpha(Reg,1) AccEdit = guiCreateEdit(0.2541,0.4938,0.5248,0.0449,"",true,Reg) Acclbl = guiCreateLabel(0.3333,0.4414,0.3861,0.0424,"account name:",true,Reg) guiSetFont(Acclbl,"default-bold-small") passEdit = guiCreateEdit(0.2541,0.5885,0.5314,0.0449,"",true,Regwnd) passlbl = guiCreateLabel(0.3234,0.5486,0.4026,0.0374,"password:",true,Regwnd) guiLabelSetHorizontalAlign(passlbl,"center",false) guiSetFont(passlbl,"default-bold-small") CpassEdit = guiCreateEdit(0.2475,0.6783,0.538,0.0449,"",true,Reg) Cpasslbl = guiCreateLabel(0.3003,0.6334,0.4785,0.0449,"Confirm your password:",true,Reg) guiSetFont(Cpasslbl,"default-bold-small") emailEdit = guiCreateEdit(0.2475,0.7781,0.5479,0.0449,"",true,Reg) Regaccbtn = guiCreateButton(0.3036,0.8803,0.4224,0.0474,"Register",true,Reg) guiSetFont(Regaccbtn,"default-bold-small") wrglbl = guiCreateLabel(0.2904,0.8279,0.4521,0.0424,"Wrong password ",true,Reg) guiLabelSetColor(wrglbl,255,0,0) guiLabelSetHorizontalAlign(wrglbl,"center",false) guiSetFont(wrglbl,"default-bold-small") addEventHandler("onClientGUIClick",loginButton,onClickLogin) function onClickLogin(button,state) if(button == "left" and state == "up") then if (source == loginButton) then username = guiGetText(edit_Login) password = guiGetText(edit_password) triggerServerEvent("onRequestLogin",getLocalPlayer(),username,password,enableKickPlayer,attemptedLogins,maxLoginAttempts) xmlFileHandler() end end end addEventHandler('onClientGUIClick', root, function() if source == registerButton then guiSetVisible(Reg,true) end end )
  2. Mark0

    Some help guys

    lool ok ty if you like i will send you the picture ?
  3. Mark0

    Some help guys

    ok wait well it's not the same gui but it shoold be like this ...
  4. Mark0

    Some help guys

    guieditor and you can try the script in your local sv
  5. Mark0

    Some help guys

    Cursor Fixed ty but i can't see the memos
  6. Mark0

    Some help guys

    The same + when i hide the window the Cursor stay
  7. Mark0

    Some help guys

    infoWindow i can see the window+the image+the buttons but the memos no It's work like my window i can't see the memos too
  8. Mark0

    Some help guys

    i think the script is right but it's not work i can't see the rulesmemo and the infomemo local textrules = "Rules." local textinfo = "Information." function WindowRules() infoWindow = guiCreateWindow(0.1988,0.2317,0.6363,0.6817,"info",true) guiSetAlpha(infoWindow,1) ino_ImG = guiCreateStaticImage(0.0177,0.0489,0.9646,0.2958,"ino.png",true,infoWindow) buttonRules = guiCreateButton(0.2811,0.6777,0.1324,0.1653,"Rules",true,ino_ImG) guiSetAlpha(buttonRules,1) guiSetFont(buttonRules,"default-bold-small") buttoninfo = guiCreateButton(0.5845,0.6694,0.1446,0.157,"Information",true,ino_ImG) guiSetAlpha(buttoninfo,1) guiSetFont(buttoninfo,"default-bold-small") memoInfo = guiCreateMemo(0.0177,0.3521,0.9646,0.6259,textinfo,false,infoWindow) memoRules = guiCreateMemo(0.0177,0.3521,0.9646,0.6259,textrules,false,infoWindow) guiMemoSetReadOnly( memoInfo, true ) guiMemoSetReadOnly( memoRules, true ) guiWindowSetSizable(infoWindow,false) guiSetVisible( infoWindow, false ) end addEventHandler("onClientResourceStart", resourceRoot, WindowRules) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == buttonInfo ) then guiSetVisible( memoInfo, true ) guiSetVisible( memoRules, false ) elseif ( source == buttonRules ) then guiSetVisible( memoRules, true ) guiSetVisible( memoInfo, false ) end end ) function infoShow ( ) guiSetVisible ( infoWindow, not guiGetVisible ( infoWindow ) ) guiSetVisible( memoInfo, not guiGetVisible ( memoInfo ) ) guiSetVisible( memoRules, true) showCursor ( not isCursorShowing( ) ) end bindKey ( "F1","down", infoShow ) <meta> <info name="Info" author="Mark0" description="" version="" type="script"></info> <script src="info.lua" type="client"></script> <file src="ino.png" /> </meta>
  9. the Script not needed just i need the function after you take job you show the car spowners
  10. Well, i have some simple job script and i need some help -how to add car spowner after take a job like medic/police/mechanic .....
  11. Mark0

    Need help !!

    ty but the problem now is the windows start before i press F1 ???
  12. Mark0

    Need help !!

    what is Wrong plz function startup() infoGui = guiCreateWindow(0.2463,0.0567,0.5913,0.68,"Information by Mark",false) guiSetAlpha(infoGui,1) guiWindowSetSizable(infoGui,false) guiWindowSetMovable(infoGui,true) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,39,455,351,false,infoGui) GUIEditor_Tab[1] = guiCreateTab("Rules",infoGui) GUIEditor_Memo[1] = guiCreateMemo(6,8,442,313,"\n Rules",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Information",infoGui) GUIEditor_Memo[2] = guiCreateMemo(6,8,442,313,"\n Information",false,GUIEditor_Tab[2]) end addEventHandler("onClientResourceStart", resourceRoot, startup) function Guishow() if (guiGetVisible(infoGui)) then showCursor(false) guiSetVisible(infoGui,false) else showCursor(true) guiSetVisible(infoGui,true) end end bindKey ("F1", "down", Guishow )
×
×
  • Create New...