Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. Ahh!, yes it,s visible . Ver = guiCreateLabel(0.10029282420874,0.76041668653488,0.81551975011826,0.23046875, "(V.2)", true) guiSetVisible ( Ver, false ) guiLabelSetColor(Ver, 0, 254, 233)
  2. bindKey ( "n" , "down" , function ( ) if ( guiGetVisible ( Drift ) and guiGetVisible ( War ) and guiGetVisible ( ChoseL ) and guiGetVisible ( Ver ) == true ) then guiSetVisible ( Drift, false ) guiSetVisible ( War, false ) guiSetVisible ( ChoseL, false ) guiSetVisible ( Ver, false ) fadeCamera ( true ) showChat ( true ) showCursor ( false ) elseif ( guiGetVisible ( Drift ) and guiGetVisible ( War ) and guiGetVisible ( ChoseL ) and guiGetVisible ( Ver ) == false ) then guiSetVisible ( Drift, true ) guiSetVisible ( War, true ) guiSetVisible ( ChoseL, true ) guiSetVisible ( Ver, true ) fadeCamera ( false ) showChat ( false ) showCursor ( true ) end end ) No Erros or Warnings .
  3. my script work now but the key not work!i mean not binded! i don know why no errors!
  4. sorry my bad! and here new problem and dont work:( bindKey ( "n" , "down" , function() if ( guiGetVisible ( Drift ) and ( guiGetVisible ( War ) and ( guiGetVisible ( Chose ) and ( guiGetVisible ( Ver )== true ) then guiSetVisible ( Drift ,false ) guiSetVisible ( War ,false ) guiSetVisible ( Chose ,false ) guiSetVisible ( Ver ,false ) fadeCamera(true) showChat(true) showCursor (false ) elseif ( guiGetVisible ( Drift ) and ( guiGetVisible ( War ) and ( guiGetVisible ( Chose ) and ( guiGetVisible ( Ver )== false ) then guiSetVisible ( Drift ,true ) guiSetVisible ( War ,true ) guiSetVisible ( Chose ,true ) guiSetVisible ( Ver ,true ) fadeCamera(false) showChat(false) showCursor (true) end end ) reason:Warning: Loading script failed: name/client.lua:347: expected symbol near "then"
  5. realy it,s hard to post the full script but i but my full code about guiSetVisible... and the error here: Warning: Loading script failed: name/client.lua:342: unexpected symbol near "and" full code = bindKey ( "n" , "down" , function() if ( guiGetVisible ( Drift ) and ( guiGetVisible ( War ) and ( guiGetVisible ( Chose ) and and ( guiGetVisible ( Ver )== true ) then guiSetVisible ( Drift ,false ) guiSetVisible ( War ,false ) guiSetVisible ( Chose ,false ) guiSetVisible ( Ver ,false ) fadeCamera(true) showChat(true) showCursor (false ) elseif ( guiGetVisible ( Drift ) and ( guiGetVisible ( War ) and ( guiGetVisible ( Chose ) and and ( guiGetVisible ( Ver )== false ) then guiSetVisible ( Drift ,true ) guiSetVisible ( War ,true ) guiSetVisible ( Chose ,true ) guiSetVisible ( Ver ,true ) fadeCamera(false) showChat(false) showCursor (true) end end )
  6. hi , i need help here what,s the wrong! bindKey ( "F1" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) and ( guiGetVisible ( GUIEditor_Window[2] ) and ( guiGetVisible ( GUIEditor_Window[3] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) guiSetVisible ( GUIEditor_Window[2] ,false ) guiSetVisible ( GUIEditor_Window[3] ,false ) showCursor (false ) elseif ( guiGetVisible ( GUIEditor_Window[1] ) and ( guiGetVisible ( GUIEditor_Window[2] ) and ( guiGetVisible ( GUIEditor_Window[3] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) guiSetVisible ( GUIEditor_Window[2] ,true ) guiSetVisible ( GUIEditor_Window[3] ,true ) showCursor (true) end end )
  7. You say this is the client side : function markerLeave( leaveElement, matchingDimension ) cancelEvent("onMarkerHit", leaveElement, paynspray) outputChatBox("Wait! What about your repair?", hitElement) end addEventHandler( "onMarkerLeave", leaveElement, markerLeave ) yes? onMarkerLeave it,s ServerSide Only! Thats What i mean and i give you the clientSide Event
  8. what you mean with that? explain more realy i dont understand what you want!
  9. iPrestege

    CJ Clothes

    i dont,know ,maybe that will help you as what i understand: SetPedClothes CJ_Clothes
  10. How would i cancel the event server side? cancel event Client and Server function and you use OnMarkerLeave? at client it,s Serverside event you can use: onClientMarkerLeave
  11. بدال ماتسوي الباب صحيح سو الباب معكوس وبيضبط ان شاء الله ..!
  12. مشكور ..~ تعبتك معي حياك الله
  13. حط الكود فوق النافذهـ هذا : function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end و هذا تحت النافذه : centerWindow( Window ) و الـ centerWindow تتغير مع اسم الفنكشن اعلاهـ ^ function centerWindow(center_window)
  14. iPrestege

    Server Problem!

    i send msg to my host company
  15. Marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) function ( player ) if not isPedInVehicle(player) then x,y,z = getElementPosition( player ) vehicle = createVehicle ( id, x, y, z ) warpPedIntoVehicle(player,vehicle) end end addEventHandler( "onMarkerHit", Marker,
  16. لا يلبى خطأ سويته اول مادخلت في العلامه جاتني سيارات كثييييييره اانا ابيه اول ما يدخل فيها ينتقل داخل السياره على طول وفي المكان الي احدده انا يعني تبية اذا دخل الماركر! يركب سيارة بعدين تختار احداثيات يوديك لها
  17. يلبى قلبك تسلم اشتغلت بس فيه مشكله انه كل ما يدخل في الدائره تطلع سياره ثانيه الحل هو ابيه اول مايدخل في الدائره تجيه السياره يعني يكون راكب فيها اول ما يدخل الدائره وش قصدك بالهرجة ذي وضح أكثر / =! يعني تبية اذا دخل ماتطلع الا سيارة وحده مايقدر يأخذ ثانية؟
  18. iPrestege

    help me!!

    https://forum.multitheftauto.com/viewtopic.php?f=91&t=31891&sid=b245641a6ae8925c0c5d57b9b8d2b11a https://forum.multitheftauto.com/viewtopic.php?f=91&t=39678&sid=b245641a6ae8925c0c5d57b9b8d2b11a https://wiki.multitheftauto.com/wiki/Scripting_Introduction https://wiki.multitheftauto.com/wiki/Main_Page These pages can help you. if you learn Lua Lang create a simple script then start prgraming world! and if you want to create a simple login register panel you should to use : getAccount addAccount logIn Server Side only! and if you use addAccount you should to give the script permissions in acl!
  19. iPrestege

    Server Problem!

    i try to upload a new resource from google code but the same problem! And this is a picture for the problem:http://store2.up-00.com/Nov12/c7B29435.png
  20. iPrestege

    Server Problem!

    hi, i have problem in my server! when i join to the server after 5sec the server Disconnect and tell me: Error : File Client/admin_client.lua" in resource "admin" = CRC Mismatch what does that mean?
  21. iPrestege

    Help please.

    function OnPlayerConnect() outputChatBox ( "Welcome to my first server in MTA!" , source, 255, 255, 0 ) end addEventHandler ( "onPlayerJoin", getRootElement(), OnPlayerConnect ) Now you have to create meta file and create Lua file and put the script code! and add the file script id in meta for example! my file Server.lua and i put the code inside it! then what? i have to create the meta file how can i create it? "YourName" type="script" name="My Server" description="My first MTA server" /> and please read the wiki here:https://wiki.multitheftauto.com/wiki/Scripting_Introduction and for full info about meta.xml you should read this:https://wiki.multitheftauto.com/wiki/Meta.xml
  22. iPrestege

    Help please.

    Maybe that will help you more: Writing_Gamemodes
  23. Add the comments for programmer script.and this maybe help you: https://forum.multitheftauto.com/viewtopic.php?f=108&t=49040
×
×
  • Create New...