Jump to content

==>ҭᾄlᾄl

Members
  • Posts

    299
  • Joined

  • Last visited

Everything posted by ==>ҭᾄlᾄl

  1. تقدر تغير شات بوكس بذي https://wiki.multitheftauto.com/wiki/Control_names
  2. اخوي .. خطاء مثالك .. يعني اي لاعب بالسيرفر يركب سيارة يسوي لكل سيارات السيرفر كذا؟؟ ...
  3. importHandling ( veh , "handeling" , "SA") veh = السياره handeling = الوزنيه لازم يكون الكود في مود الوزنيات
  4. غير "onPlayerJoin" وحطها "onPlayerLogin"
  5. PlayerListSearch = edit---اسم المكان الي يكتب في الاسم_VERSION PlayerList = list ---اسم اللسته function aClientGUIChanged () if ( source == PlayerListSearch ) then guiGridListClear ( PlayerList ) local text = guiGetText ( source ) if ( text == "" ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemPlayerName ( PlayerList, guiGridListAddRow ( PlayerList ), 1, getPlayerName ( player ), false, false ) end else for id, player in ipairs ( getElementsByType ( "player" ) ) do if ( string.find ( string.upper ( getPlayerName ( player ) ), string.upper ( text ), 1, true ) ) then guiGridListSetItemPlayerName ( PlayerList, guiGridListAddRow ( PlayerList ), 1, getPlayerName ( player ), false, false ) end end end end addEventHandler ( "onClientGUIChanged", root, aClientGUIChanged )
  6. انتم ما فهمتوه ------ المود ما يشتغل لشص معين المود يشتغل للكل اجباري لكن تقدر تخلي الوظيفه تشتغل لحساب معين
  7. source = مصدر الحدث
  8. http://community.multitheftauto.com/ind ... ls&id=3028
  9. addEventHandler( "onClientMouseEnter", root, function () alpha = guiGetAlpha(source) if alpha == 0.5 then guiSetAlpha ( source, 1 ) end end )
  10. function Replacetxd() txd = engineLoadTXD("data/wheel_gn1.txd", 1074 ) engineImportTXD(txd, 1074) dff = engineLoadDFF("data/wheel_gn1.dff", 1074) engineReplaceModel(dff, 1074) txd = engineLoadTXD("data/wheel_gn2.txd", 1075 ) engineImportTXD(txd, 1075) dff = engineLoadDFF("data/wheel_gn2.dff", 1075) engineReplaceModel(dff, 1075) txd = engineLoadTXD("data/wheel_gn3.txd", 1076 ) engineImportTXD(txd, 1076) dff = engineLoadDFF("data/wheel_gn3.dff", 1076) engineReplaceModel(dff, 1076) txd = engineLoadTXD("data/wheel_gn4.txd", 1077 ) engineImportTXD(txd, 1077) dff = engineLoadDFF("data/wheel_gn4.dff", 1077) engineReplaceModel(dff, 1077) txd = engineLoadTXD("data/wheel_gn5.txd", 1078 ) engineImportTXD(txd, 1078) dff = engineLoadDFF("data/wheel_gn5.dff", 1078) engineReplaceModel(dff, 1078) txd = engineLoadTXD("data/wheel_lr1.txd", 1079 ) engineImportTXD(txd, 1079) dff = engineLoadDFF("data/wheel_lr1.dff", 1079) engineReplaceModel(dff, 1079) txd = engineLoadTXD("data/wheel_lr2.txd", 1080 ) engineImportTXD(txd, 1080) dff = engineLoadDFF("data/wheel_lr2.dff", 1080) engineReplaceModel(dff, 1080) txd = engineLoadTXD("data/wheel_lr3.txd", 1081 ) engineImportTXD(txd, 1081) dff = engineLoadDFF("data/wheel_lr3.dff", 1081) engineReplaceModel(dff, 1081) txd = engineLoadTXD("data/wheel_lr4.txd", 1082 ) engineImportTXD(txd, 1082) dff = engineLoadDFF("data/wheel_lr4.dff", 1082) engineReplaceModel(dff, 1082) txd = engineLoadTXD("data/wheel_lr5.txd", 1083) engineImportTXD(txd, 1083) dff = engineLoadDFF("data/wheel_lr5.dff", 1083) engineReplaceModel(dff, 1083) txd = engineLoadTXD("data/wheel_sr1.txd", 1084 ) engineImportTXD(txd, 1084) dff = engineLoadDFF("data/wheel_sr1.dff", 1084) engineReplaceModel(dff, 1084) txd = engineLoadTXD("data/wheel_sr2.txd", 1085 ) engineImportTXD(txd, 1085) dff = engineLoadDFF("data/wheel_sr2.dff", 1085) engineReplaceModel(dff, 1085) txd = engineLoadTXD("data/wheel_sr3.txd", 1096 ) engineImportTXD(txd, 1096) dff = engineLoadDFF("data/wheel_sr3.dff", 1096) engineReplaceModel(dff, 1096) txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) engineImportTXD(txd, 1097) dff = engineLoadDFF("data/wheel_sr4.dff", 1097) engineReplaceModel(dff, 1097) txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( ), Replacetxd )
  11. دور في المنتدى بتلقى
  12. triggerServerEvent triggerClientEvent #ينقل
  13. طيب انت ذلحين سويت انترو للماركر ولا للاعب ووش دراك باحداثياته
  14. marker = createMarker ( x, y, z, "cylinder", size, r, b, g, albah ) -------- function sp(thePlayer) if getElementType(thePlayer) == "player" then setElementPosition(thePlayer,x,y,z) end end addEventHandler( "onClientMarkerHit", marker, sp )
  15. marker = createMarker ( 1791.1716308594, 1372.0931396484, 6.7419948577881, "cylinder", 4, 255, 255, 0, 170 ) -------- function kill(thePlayer) local accName = getAccountName (getPlayerAccount(thePlayer)) if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then killPed ( thePlayer ) end end addEventHandler( "onMarkerHit", marker, kill ) By 3nad
  16. local object = createObject ( 2963, 298.60000610352, -1616.5, 4870.2001953125, 0, 0, 270.25 ) local marker = createMarker ( 298.60000610352, -1616.5, 4870.2001953125, 'cylinder', 4, 0, 0, 0, 0 ) local open = false function onStart() for i,v in ipairs(getElementsByType("player")) do bindKey (v,"tab","down",openANDcloseFun) end end addEventHandler ( "onResourceStart",getResourceRootElement(),onStart) function onJoin( ) bindKey (source,"tab","down",openANDcloseFun) end addEventHandler ( "onPlayerJoin", getRootElement(), onJoin ) function openANDcloseFun( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then if ( isElementWithinMarker(player,marker) ) then if ( open ) then moveObject ( object, 1500, 302.29998779297, -1616.4000244141, 4870.2001953125 ) else moveObject ( object, 1500, 298.60000610352, -1616.5, 4870.2001953125 ) end open = not open end end end
  17. للاطلاق toggleControl("fire",true) لمنع الاطلاق toggleControl("fire",false)
×
×
  • Create New...