Jump to content

MR.S3D

Members
  • Posts

    732
  • Joined

  • Last visited

Everything posted by MR.S3D

  1. تسلم عالطرح وذا الكود يفيدك خصوصا اذا كان مودك تستخدم فيه القريد لست كثير فديت طروحاتك ياعسل ض1
  2. كفوك واخير اشتغل لو كنت مشرف كان قفلت الموضوع من كثر ماتقول مايشتغل لحست مخي
  3. مايحتاج تعيد وتكرر في كود تابل
  4. اقول راسلني على الخاص عطني معلومات سيرفرك واشوف وش المشكله
  5. شيل مودك وخذ ذا لحاله وعدل الأحداثيات والحجم
  6. وهذا المود لحاله رفعته لك http://www.mediafire.com/?sm95a2yi2nd9abl
  7. على فكرة الكود انا مجربة وشغال والكود سيرفر ورني الكود اللي جربته يمكن انت معدل شي وخربته
  8. addEventHandler("onClientRender", root showRender) --- To show dx removeEventHandler("onClientRender", root showRender) --- to remvoe dx
  9. GUIEditor = { window = {}, edit = {}, button = {}, } GUIEditor.window[1] = guiCreateWindow(0, 0, 763, 741, "Zombie Apocalypse Spawn Menu", true) guiWindowSetSizable(GUIEditor.window[1], true) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.edit[1] = guiCreateEdit(1008, 588, 322, 137, "Class Information:", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FFAB0000") guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.button[2] = guiCreateButton(152, 626, 455, 105, "Spawn", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-gothic") guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) addEvent("ShowLoginWindow", true) addEventHandler("ShowLoginWindow", root, function() guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) function showRender() dxDrawText("Class", 518, 99, 671, 144, tocolor(255, 255, 255, 255), 2, "pricedown", "left", "top", false, false, true, false, false) dxDrawText("", 615, 411, 618, 411, tocolor(255, 255, 255, 255), 2, "default", "left", "top", false, false, true, false, false) dxDrawText("Category", 51, 89, 255, 158, tocolor(255, 255, 255, 255), 2, "pricedown", "left", "top", false, false, true, false, false) dxDrawLine(391, 71, 391, 626, tocolor(255, 255, 255, 255), 1, true) end Use this addEventHandler("onClientRender", root showRender) --- To show dx removeEventHandler("onClientRender", root showRender) --- to remvoe
  10. MR.S3D

    need help!!

    use this Event [url=https://wiki.multitheftauto.com/wiki/OnClientPlayerWasted]https://wiki.multitheftauto.com/wiki/OnC ... ayerWasted[/url]
  11. Server addEventHandler( 'onPlayerLogin', root, function( _, acc ) triggerClientEvent(source,"ShowLoginWindow",source) end ) Client GUIEditor = { window = {}, edit = {}, button = {}, } GUIEditor.window[1] = guiCreateWindow(0, 0, 763, 741, "Zombie Apocalypse Spawn Menu", true) guiWindowSetSizable(GUIEditor.window[1], true) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.edit[1] = guiCreateEdit(1008, 588, 322, 137, "Class Information:", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FFAB0000") guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.button[2] = guiCreateButton(152, 626, 455, 105, "Spawn", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-gothic") guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) addEvent("ShowLoginWindow", true) addEventHandler("ShowLoginWindow", root, function() guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientRender", root, function () dxDrawText("Class", 518, 99, 671, 144, tocolor(255, 255, 255, 255), 2, "pricedown", "left", "top", false, false, true, false, false) dxDrawText("", 615, 411, 618, 411, tocolor(255, 255, 255, 255), 2, "default", "left", "top", false, false, true, false, false) dxDrawText("Category", 51, 89, 255, 158, tocolor(255, 255, 255, 255), 2, "pricedown", "left", "top", false, false, true, false, false) dxDrawLine(391, 71, 391, 626, tocolor(255, 255, 255, 255), 1, true) end )
  12. VehicleM = createMarker ( 1490.6999511719, 1283.0999755859, 10.10000038147, "cylinder", 2, 255, 0, 0, 255 ) ColorM = createMarker ( 1474.6999511719, 1284.9000244141, 10.300000190735, "cylinder", 2, 0, 255, 0, 255 ) IdCar = { {416}, {417}, {420}, {500}, } addEventHandler( "onMarkerHit", root, function ( hitElement ) if source == VehicleM and getElementType( hitElement ) == "player" then if Vehicles[hitElement] and getElementType( Vehicles[hitElement] ) == "vehicle" then destroyElement( Vehicles[hitElement] ) end local x,y,z = getElementPosition( hitElement ) Vehicles[hitElement] = createVehicle ( IdCar[math.random(#IdCar)], x, y, z ) if Vehicles[hitElement] then warpPedIntoVehicle( hitElement, Vehicles[hitElement] ) outputChatBox( "لقد حصلت علي موتر ", hitElement, 255, 0, 0, true ) end elseif source == ColorM and getElementType( hitElement) == "player" and isPedInVehicle( hitElement ) then local player = getPedOccupiedVehicle( hitElement ) setVehicleColor( player, math.random(255), math.random(255), math.random(255) ) outputChatBox( "تم تلوين موترك ", hitElement, 0, 255, 0, true ) end end ) addEventHandler( "onVehicleExplode", root, function( ) setTimer( destroyElement, 2000, 1, source ) end ) addEventHandler( "onPlayerQuit", root, function( ) if Vehicles[source] then destroyElement( Vehicles[source] ) end end ) حط رقم السيارة اللي تبيه داخل الجدول ذا IdCar = { {id}, }
  13. go to freeroam open meta.xml then go to setting name="*vehicles/maxidletime" Change value to 999999999 "*vehicles/maxidletime" value="[999999999]" /> -- Time in ms before a vehicle without passengers gets destroyed -->
  14. FraktionpanelOpen = 0 local blockFraklistSpam = 0 local frakPanelFraktion = false local frakPanelBlacklist = false FraktionpanelTab = {} FraktionpanelButton = {} FraktionpanelLabel = {} FraktionpanelGrid = {} FraktionpanelColumn = {} FraktionpanelWindow = guiCreateWindow(screenx/2-351/2,screeny/2-452/2,351,452,"Fraktions",false) guiSetVisible(FraktionpanelWindow,false) guiSetAlpha(FraktionpanelWindow,1) guiWindowSetSizable(FraktionpanelWindow,false) guiWindowSetMovable(FraktionpanelWindow,false) FraktionpanelTabPanel = guiCreateTabPanel(9,28,332,415,false,FraktionpanelWindow) FraktionpanelTab[1] = guiCreateTab("Wanteds",FraktionpanelTabPanel) FraktionpanelButton[1] = guiCreateButton(7,9,102,38,"Give wanteds",false,FraktionpanelTab[1]) FraktionpanelButton[2] = guiCreateButton(7,54,103,38,"Delete wanteds",false,FraktionpanelTab[1]) FraktionpanelButton[3] = guiCreateButton(7,99,103,38,"Track down",false,FraktionpanelTab[1]) FraktionpanelGrid[1] = guiCreateGridList(122,10,200,237,false,FraktionpanelTab[1]) FraktionpanelColumn[1] = guiGridListAddColumn(FraktionpanelGrid[1],"Name",0.625) FraktionpanelColumn[2] = guiGridListAddColumn(FraktionpanelGrid[1],"Wanteds",0.2) guiGridListSetSelectionMode(FraktionpanelGrid[1],0) FraktionpanelGrid[2] = guiCreateGridList(122,253,200,132,false,FraktionpanelTab[1]) guiGridListSetSelectionMode(FraktionpanelGrid[2],0) FraktionpanelColumn[4] = guiGridListAddColumn(FraktionpanelGrid[2],"",0.2) FraktionpanelColumn[3] = guiGridListAddColumn(FraktionpanelGrid[2],"Reason",0.6) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Refusing arrest",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"1",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Prevent Government",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"1",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"disturbing the public order",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"1",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Refusing a order",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"1",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Try to steal",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"1",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"bring damage to objects",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"1",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Theft",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"2",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Helping Escape",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"2",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Shooting",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"2",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Driving without a license",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"2",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"robbery",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"3",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Murder",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"3",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Taking Hostages",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"4",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Baseburglary",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"4",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Illegal Transport",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"4",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Terroristic attack",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"6",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Jail-Breach",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"8",false,false) FraktionpanelWantedGrundRow = guiGridListAddRow(FraktionpanelGrid[2]) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[3],"Bank Robbery",false,false) guiGridListSetItemText(FraktionpanelGrid[2],FraktionpanelWantedGrundRow,FraktionpanelColumn[4],"12",false,false) FraktionpanelTab[4] = guiCreateTab("Blacklist",FraktionpanelTabPanel) FraktionpanelButton[13] = guiCreateButton(7,9,102,38,"Put on Blacklist",false,FraktionpanelTab[4]) FraktionpanelButton[14] = guiCreateButton(7,54,103,38,"Remove from Blacklist",false,FraktionpanelTab[4]) FraktionpanelEdit4 = guiCreateEdit(7,99,103,38,false,FraktionpanelTab[4]) FraktionpanelGrid[6] = guiCreateGridList(122,10,200,300,false,FraktionpanelTab[4]) guiGridListSetSelectionMode(FraktionpanelGrid[6],1) FraktionpanelColumn[10] = guiGridListAddColumn(FraktionpanelGrid[6],"Name",0.70) FraktionpanelTab[5] = guiCreateTab("Weather",FraktionpanelTabPanel) FraktionpanelButton[17] = guiCreateButton(7,9,102,38,"Change",false,FraktionpanelTab[5]) FraktionpanelGrid[9] = guiCreateGridList(122,10,200,300,false,FraktionpanelTab[5]) guiGridListSetSelectionMode(FraktionpanelGrid[9],0) FraktionpanelColumn[11] = guiGridListAddColumn(FraktionpanelGrid[9],"Weather",0.6) FraktionpanelColumn[12] = guiGridListAddColumn(FraktionpanelGrid[9],"Waves",0.2) FraktionpanelWetterRow = guiGridListAddRow(FraktionpanelGrid[9]) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[11],"Heat",false,false) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[12],"0",false,false) FraktionpanelWetterRow = guiGridListAddRow(FraktionpanelGrid[9]) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[11],"Blue Sky",false,false) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[12],"0.3",false,false) FraktionpanelWetterRow = guiGridListAddRow(FraktionpanelGrid[9]) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[11],"Blue sky and cloudy",false,false) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[12],"0.4",false,false) FraktionpanelWetterRow = guiGridListAddRow(FraktionpanelGrid[9]) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[11],"cloudy",false,false) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[12],"0.5",false,false) FraktionpanelWetterRow = guiGridListAddRow(FraktionpanelGrid[9]) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[11],"Grey and sad",false,false) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[12],"0.1",false,false) FraktionpanelWetterRow = guiGridListAddRow(FraktionpanelGrid[9]) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[11],"Stormy",false,false) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[12],"2",false,false) FraktionpanelWetterRow = guiGridListAddRow(FraktionpanelGrid[9]) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[11],"Foggy",false,false) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[12],"0.1",false,false) FraktionpanelWetterRow = guiGridListAddRow(FraktionpanelGrid[9]) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[11],"Cloudy and Rainy",false,false) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[12],"1",false,false) FraktionpanelWetterRow = guiGridListAddRow(FraktionpanelGrid[9]) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[11],"Heat-Waves",false,false) guiGridListSetItemText(FraktionpanelGrid[9],FraktionpanelWetterRow,FraktionpanelColumn[12],"0",false,false) FraktionpanelTab[3] = guiCreateTab("UDC-Points",FraktionpanelTabPanel) FraktionpanelButton[10] = guiCreateButton(7,9,102,38,"UDC-Points",false,FraktionpanelTab[3]) FraktionpanelButton[11] = guiCreateButton(7,54,103,38,"Remove Points",false,FraktionpanelTab[3]) FraktionpanelGrid[4] = guiCreateGridList(122,10,200,237,false,FraktionpanelTab[3]) FraktionpanelColumn[7] = guiGridListAddColumn(FraktionpanelGrid[4],"Name",0.625) FraktionpanelColumn[8] = guiGridListAddColumn(FraktionpanelGrid[4],"UDC-Points",0.2) guiGridListSetSelectionMode(FraktionpanelGrid[4],1) FraktionpanelGrid[5] = guiCreateGridList(122,253,200,132,false,FraktionpanelTab[3]) guiGridListSetSelectionMode(FraktionpanelGrid[5],1) FraktionpanelColumn[7] = guiGridListAddColumn(FraktionpanelGrid[5],"",0.2) FraktionpanelColumn[8] = guiGridListAddColumn(FraktionpanelGrid[5],"Reason",0.6) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"Burnout",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"1",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"Wheelie",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"1",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"Parking On The Street",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"1",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"Damaging Objects",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"1",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"abuse of the transition rules",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"2",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"abuse of the one way street",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"3",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"Landing On The Street",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"3",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"Making a Accident",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"4",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"Ghost Riding",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"4",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"Illegal Streetracing",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"4",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"Racing (120km/h) ",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"5",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"Driving over People",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"6",false,false) FraktionpanelSTVOGrundRow = guiGridListAddRow(FraktionpanelGrid[5]) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[8],"Nitro Using",false,false) guiGridListSetItemText(FraktionpanelGrid[5],FraktionpanelSTVOGrundRow,FraktionpanelColumn[7],"6",false,false) FraktionpanelLabel[1] = guiCreateLabel(5,257,103,125,"Grund:",false,FraktionpanelTab[3]) guiLabelSetVerticalAlign(FraktionpanelLabel[1],"center") guiLabelSetHorizontalAlign(FraktionpanelLabel[1],"right",false) guiSetFont(FraktionpanelLabel[1],"default-bold-small") FraktionpanelTab[2] = guiCreateTab("INFO",FraktionpanelTabPanel) FraktionpanelLabel[2] = guiCreateLabel(8,8,317,38,"Fraktion Money: ",false,FraktionpanelTab[2]) guiLabelSetHorizontalAlign(FraktionpanelLabel[2],"right",false) guiSetFont(FraktionpanelLabel[2],"default-bold-small") FraktionpanelEdit = guiCreateEdit(9,50,110,33,"",false,FraktionpanelTab[2]) FraktionpanelButton[4] = guiCreateButton(126,50,84,34,"Put Money In",false,FraktionpanelTab[2]) FraktionpanelButton[5] = guiCreateButton(218,50,84,34,"Get Money Out",false,FraktionpanelTab[2]) FraktionpanelGrid[3] = guiCreateGridList(11,93,200,239,false,FraktionpanelTab[2]) guiGridListSetSelectionMode(FraktionpanelGrid[3],1) guiGridListSetSortingEnabled(FraktionpanelGrid[3],false) FraktionpanelColumn[5] = guiGridListAddColumn(FraktionpanelGrid[3],"Name",0.45) FraktionpanelColumn[6] = guiGridListAddColumn(FraktionpanelGrid[3],"Rang",0.14) FraktionpanelEdit3 = guiCreateEdit(218,93,84,34,"",false,FraktionpanelTab[2]) FraktionpanelColumn[9] = guiGridListAddColumn(FraktionpanelGrid[3],"Warning",0.14) FraktionpanelColumn[11] = guiGridListAddColumn(FraktionpanelGrid[3],"EXP",0.14) FraktionpanelButton[12] = guiCreateButton(218,134,84,34,"Put EXP",false,FraktionpanelTab[2]) FraktionpanelButton[6] = guiCreateButton(218,175,84,34,"Rang up",false,FraktionpanelTab[2]) FraktionpanelButton[7] = guiCreateButton(218,216,84,34,"Rang down",false,FraktionpanelTab[2]) FraktionpanelEdit2 = guiCreateEdit(218,257,84,34,"",false,FraktionpanelTab[2]) FraktionpanelButton[8] = guiCreateButton(218,298,84,34,"Inviten",false,FraktionpanelTab[2]) FraktionpanelButton[9] = guiCreateButton(218,339,84,34,"Uninviten",false,FraktionpanelTab[2]) FraktionpanelButton[15] = guiCreateButton(12,339,84,34,"Give Warning",false,FraktionpanelTab[2]) FraktionpanelButton[16] = guiCreateButton(100,339,84,34,"Remove Warning",false,FraktionpanelTab[2]) bindKey ( "f2", "down", function() if FraktionpanelOpen == 0 then if getElementData(getLocalPlayer(),"Clicked") == false and getElementData(getLocalPlayer(),"inarztVeh") == false and getElementData(getLocalPlayer(),"Duty") == true and tonumber(getElementData(getLocalPlayer(),"Fraktion")) >= 1 then guiSetVisible(FraktionpanelTab[5],false) if tonumber(getElementData(getLocalPlayer(),"Fraktion")) == 3 then guiSetVisible(FraktionpanelTab[5],true) end if tonumber(getElementData(getLocalPlayer(),"Fraktion")) == 1 or tonumber(getElementData(getLocalPlayer(),"Fraktion")) == 2 or tonumber(getElementData(getLocalPlayer(),"Fraktion")) == 3 or tonumber(getElementData(getLocalPlayer(),"Fraktion")) == 4 then guiSetVisible(FraktionpanelTab[1],true) guiSetVisible(FraktionpanelTab[3],true) if not frakPanelFraktion or frakPanelFraktion ~= tonumber(getElementData(getLocalPlayer(),"Fraktion")) then guiGridListRemoveColumn ( FraktionpanelGrid[3], FraktionpanelColumn[11] ) FraktionpanelColumn[11] = guiGridListAddColumn(FraktionpanelGrid[3],"PA",0.14) end guiSetVisible(FraktionpanelButton[12],false) guiSetVisible(FraktionpanelEdit3,false) guiSetSelectedTab ( FraktionpanelTabPanel, FraktionpanelTab[1] ) guiSetText(FraktionpanelButton[12],"Give EXP") if tonumber(getElementData(getLocalPlayer(),"Fraktion")) == 1 then guiSetVisible(FraktionpanelButton[12],true) guiSetVisible(FraktionpanelEdit3,true) end if tonumber(getElementData(getLocalPlayer(),"Fraktion")) == 7 then guiSetVisible(FraktionpanelTab[3],false) if not frakPanelFraktion or frakPanelFraktion ~= tonumber(getElementData(getLocalPlayer(),"Fraktion")) then guiGridListRemoveColumn ( FraktionpanelGrid[3], FraktionpanelColumn[11] ) FraktionpanelColumn[11] = guiGridListAddColumn(FraktionpanelGrid[3],"GW",0.14) end guiSetVisible(FraktionpanelButton[12],true) guiSetText(FraktionpanelButton[12],"Put Ranger-Tag") guiSetVisible(FraktionpanelEdit3,true) end else guiSetVisible(FraktionpanelTab[1],false) guiSetVisible(FraktionpanelTab[3],false) guiGridListRemoveColumn ( FraktionpanelGrid[3], FraktionpanelColumn[11] ) guiSetVisible(FraktionpanelButton[12],false) guiSetVisible(FraktionpanelEdit3,false) guiSetSelectedTab ( FraktionpanelTabPanel, FraktionpanelTab[2] ) if tonumber(getElementData(getLocalPlayer(),"Fraktion")) >= 4 and tonumber(getElementData(getLocalPlayer(),"Fraktion")) <= 6 then guiSetSelectedTab ( FraktionpanelTabPanel, FraktionpanelTab[4] ) elseif tonumber(getElementData(getLocalPlayer(),"Fraktion")) == 3 then
  15. ماتلاحظون ان المنتدى من دون تيتي مو حلو ض2
  16. function showGUIp(hitPlayer) if hitPlayer and getElementType(hitPlayer) == "player" then if ( getPlayerTeam ( hitPlayer ) == getTeamFromName ( "police" ) ) then triggerClientEvent (hitPlayer,"showGUI2p",getRootElement(),hitPlayer) else warnText("vehicles for police only!",hitPlayer) end end end addEventHandler("onMarkerHit",markerp,showGUIp) addEventHandler("onMarkerHit",marker2p,showGUIp) addEventHandler("onMarkerHit",marker3p,showGUIp) addEventHandler("onMarkerHit",marker4p,showGUIp)
  17. خذ الكود ذا عشان اللاق وعشان ماتتكرر السيارة الكود سيرفر marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) car = {} addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then if isElement(car[player]) then destroyElement(car[player]) car[player] = nil end car[player] = createVehicle ( id, x, y, z ) if car[player] then warpPedIntoVehicle ( player, car[player]) end end end ) addEventHandler("onPlayerQuit", root, function() if isElement(car[source]) then destroyElement(car[source]) car[source] = nil end end ) غير x, y, z الى الأحداثيات اللي تبيها
  18. شكرا لكن كذا حتى اللاعب لو ما عنده سيارة و ينتقل عادي ابيها لازم يكون معه سيارة مشان م ايخربون بالبدياة خذ كودي اللي فوق ذا اللي رد عليك مايفهم شي ههههههه
  19. AhmadQTR من علمك البرمجه ياحبيبي تفضل يالغالي Server local imarker = createMarker ( -3743.6, -3022.52, 38, "cylinder", 10, 0, 0, 255, 255 ) addEventHandler( "onMarkerHit", root, function(hitElement) if (source == imarker) and (getElementType (hitElement) == "vehicle") then setElementVelocity (hitElement, 0, 0, 0) setElementPosition (hitElement, 0, 0, 7) ---هنا احداثيات المكان اللي تنقل له end end )
×
×
  • Create New...