Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. غير الجدول مثلا تبي تضيف احداثيت انسخ [ 1 ] = { x,y,z }, مع تغيير الاندكس !
  2. الجدول يكون لة اندكس مثل كذا : vTable = { [ 1 ] = { x,y,z }, } local x,y,z = unpack( vTable [ math.random( #vTable ) ] )
  3. ماتحرك الماركر؟ | = ديبوق شيء؟
  4. addEventHandler ( "onClientGUIClick",GUIEditor.button[1], function ( ) guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) triggerServerEvent ("Setskin", getLocalPlayer()) triggerServerEvent ("SetTeam", getLocalPlayer()) one = createMarker ( -1696.65, 1320.79, 6.4, "cylinder", 3, 255, 255, 0, 170 ) myBlip = createBlipAttachedTo ( one, 51 ) addEventHandler ( "onClientMarkerHit", one, Spawncar ) end,false ) function Spawncar ( hitPlayer ) if hitPlayer == localPlayer then triggerLatentServerEvent ( "money",hitPlayer ) if not isElement ( one ) then return outputChatBox ( 'NO MARKER' ) end setElementPosition ( one,-1733.11, 1306.04, 70 ) outputChatBox ( 'MARKER MOVED' ) end end قلي شيجيك بالشات
  5. addEventHandler ( "onClientMarkerHit", one, Spawncar ) ضيفة تحت الماركر بحدث الضغط + شيل روت الحدث كلة القديم
  6. اشرح لي وش تبي تسوي
  7. وش المشكلة ؟ x,y,z,type,size,r,g,b,a
  8. +1 -_-" انا حسبتة للاعب
  9. local groupName = 'RPG' local health = createMarker( 1629.69921875,545.3994140625,10,"cylinder",1,0,0,0,0 ) local EnterHouse = createMarker( 1630,537.5,11.699999809265,"arrow",1,0,0,0,0 ) local outHouse = createMarker( 493.39999389648,-25.10000038147,1002,"arrorw",2,0,255,0,0 ) setElementInterior( outHouse,17 ) setElementDimension( outHouse,5664 ) addEventHandler("onMarkerHit",root, function ( hitElement ) if source == health or source == EnterHouse or source == outHouse then if getElementType ( hitElement ) == 'player' and getPlayerTeam ( hitElement ) then if getElementData ( hitElement,'Group' ) ~= groupName then return outputChatBox( 'For '..groupName..' only' ) end local Team = getTeamFromName ( 'No Team' ) if Team then if getPlayerTeam ( hitElement ) == Team then if source == health then setElementHealth ( hitElement,100 ) setPedArmor ( hitElement,100 ) elseif source == EnterHouse and not isPedInVehicle ( hitElement ) then setElementPosition( hitElement,1267,-784,1092.3 ) setElementInterior( hitElement,5 ) setElementDimension( hitElement,5664 ) outputChatBox( 'Welcome '..getPlayerName( hitElement )..' !',thePlayer,0,255,30 ) elseif source == outHouse and not isPedInVehicle ( hitElement ) then setElementPosition( hitElement,1625,541,12.2 ) setElementInterior( hitElement,0 ) setElementDimension( hitElement,0 ) end end end end end end )
  10. انا مثلك حسبتة بيشتغل بس الايدي الله ياخذهـ .. لول ذذ الايدي حق سياره شوف كودي عدلتة -_-"
  11. انسخ السيرفر ثانية توني انتبة للسيارهـ -_-"
  12. -- # Client Side function Spawncar ( hitPlayer ) if hitPlayer == localPlayer then triggerLatentServerEvent ( "money",hitPlayer ) end end addEventHandler ( "onClientMarkerHit", root, Spawncar ) ^^ اي ماركر ينلمس كلنت بتصير الوظيفة انت ماحددت ~ -- # Server Side addEvent("money", true) addEventHandler("money", getRootElement(), function ( ) if getPedOccupiedVehicle( client ) then local id = getElementModel ( getPedOccupiedVehicle( client ) ) if id == 437 or id == 431 then givePlayerMoney ( client, 2000 ) end end end )
  13. Add the resource to the acl file! -- lex There's problem if i add a chat event for the player onPlayerChat -_-' The tactics will repate the message -______-" Can i have the source code for this part so i can edit it!
  14. iPrestege

    [HELP] GUI

    No one will make it for you as castillo's said so if you want someone to do it pay one or learn.
  15. You're using 'Castillo's' Exp's system?
  16. ابسط طريقة وشرحت لك ترجع لـ ايش للاندكس اللي من القريد الكلام اللي باللستة ^^ .. الدائري كمثال وريتك ذذ
  17. I made it server side-Did you switch the type in the meta? You can't change it to server side read the code.
  18. It's client side so you'll not see other players.
  19. I ask for help as soon as possible.
  20. السلام عليكم ! لا صعبة ولا شيء اذا تبي تصير مبرمج مثلك مثل الناس ^^ تعلم لا تقول شيء صعب دآم تقول هذا صعب الباقي شبيصير >!< انا سويت جدولين عشان ترتيب الجدول لانك لو تستخدم هالجدول : local vToGet = { [ 'البداية' ] = { x,y,z,xl,xy,xz }, [ 'الدائري' ] = { x,y,z,xl,xy,xz }, } لو بستخدم الـ index ماراح يجي مرتب عشان كذا سويت هالجدول : local vToGridText = { { 'البداية' }, { 'الدائري' }, } ^ هالجدول سويتة عشان اضيف الكلام للستة الحين نسوي الحدث يوم يضغط element gui ! function vReturnMatrix ( ) if guiGridListGetSelectedItem ( source ) ~= -1 then local vReturnValue = guiGridListGetItemText ( source, guiGridListGetSelectedItem ( source ), 1 ) if vReturnValue then setCameraMatrix ( vToGet [ vReturnValue ] [ 1 ],vToGet [ vReturnValue ] [ 2 ],vToGet [ vReturnValue ] [ 3 ],vToGet [ vReturnValue ] [ 4 ],vToGet [ vReturnValue ] [ 5 ],vToGet [ vReturnValue ] [ 6 ] ) end end end if guiGridListGetSelectedItem ( source ) ~= -1 then نتأكد انة مختار شيء من اللستة ^^ .. نجيب الكلام اللي مختارهـ من اللستة !: local vReturnValue = guiGridListGetItemText ( source, guiGridListGetSelectedItem ( source ), 1 ) بعد مانجيب الكلام نسوي الماتركس : setCameraMatrix ( vToGet [ vReturnValue ] [ 1 ],vToGet [ vReturnValue ] [ 2 ],vToGet [ vReturnValue ] [ 3 ],vToGet [ vReturnValue ] [ 4 ],vToGet [ vReturnValue ] [ 5 ],vToGet [ vReturnValue ] [ 6 ] ) الحين كيف حطينا vReturnValue 1,6 = ? لان vReturnValue ترجع للـ index .. حق الجدول : local vToGet = { [ 'البداية' ] = { x,y,z,xl,xy,xz }, [ 'الدائري' ] = { x,y,z,xl,xy,xz }, } local vToGet = { [ 'index' ] = { x,y,z,xl,xy,xz }, [ 'index' ] = { x,y,z,xl,xy,xz }, } نسوي الماتركس من كلام اللستة ويرجع للاندكس حق الجدول .. يعني نفرض الناتج بيصير كذا يوم تختار الدائري : setCameraMatrix ( vToGet [ 'الدائري' ] [ 1 ],vToGet [ 'الدائري' ] [ 2 ],vToGet [ 'الدائري' ] [ 3 ],vToGet [ 'الدائري' ] [ 4 ],vToGet [ 'الدائري' ] [ 5 ],vToGet [ 'الدائري' ] [ 6 ] ) رجع للاندكس الدائري وجاب الـ 6 قيم حق الاندكس .. و بـكذا ان شاء الله تكون فهمت الكود .. الكود بـ أبسط الطرق سويتة ^^
  21. Looool! Client Side! Local Player
×
×
  • Create New...