Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. صحيح بس عطه صلاحيات آدمن
  2. انت قصدك لمن تتكلم عادي في الشات ؟
  3. لو كان القيم مود بلاي ما راح تضبط بدون تعديل عليه
  4. I don't know about the bag thing xp, But you can use shaders for a darker night . like this one > [REL] Realistic Night Shader
  5. %x > أكواد الهيكس إللي هي الألوان %d > الأرقام %u > A الحروف الكابيتال زي %l > a الحروف السمول زي و الباقي تلقاه هنا Patterns
  6. قصدي إن في مود ثاني قاعد يسوي فيد مع انتهاء التحميل ( غالبا القيم مود ), أو إن عندك خطأ في السكربت
  7. Yep + موقع للخطوط > dafont.com
  8. كودي أحس فيه أخطاء ذذ جرب ذا : local Object = createObject( 980, 1270.5, -1650, 16, 0, 0 ,90 ); local Marker = createMarker( 1272.3994140625, -1650.7998046875, 10.800000190735, 'cylinder', 18, 0, 0, 0, 0 ); open = false; function OpenObject ( player ) if isElementWithinMarker( player, Marker ) then if getElementData( player, 'Group') == 'KOL' then if not Open then moveObject( Object, 1500, 1270.5, -1650, 8.1 ); else moveObject( Object, 1500, 1270.5, -1650, 16 ); end Open = not Open; else outputChatBox ( '* You must be \'KOL\' !', player, 200, 0, 0, true ); end end end addEventHandler ( 'onResourceStart', resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( 'player' ) ) do bindKey ( v, 'tab', 'down', OpenObject, v ); end end ); addEventHandler ( 'onPlayerJoin', root, function ( ) bindKey ( source, 'tab', 'down', OpenObject, source ); end );
  9. في مود ثاني قاعد يسوي هالشي, شيك على موداتك ذذ
  10. font = guiCreateFont( 'font.ttf' ); button = guiCreateButton( ... ); guiSetFont( button, font );
  11. يعني قصدك لمن يخلص التحميل يصير الفيد ؟ addEventHandler( 'onClientResourceStart', R, function( ) fadeCamera( false ); end );
  12. هذا الكود راح ينقل أي واحد من الفريق المحدد للمكان المحدد كل ما سوى سباون حتى لو كان السباون من الفري روم إستخدم الأحداث 'onPlayerWasted' 'onPlayerLogin'
  13. يعني إذا في تحميل ما تقدر تلعب ولا العكس ؟ معليش مخي ملحوس شوي ذذ
  14. يعني تبغى لو ما خلص التحميل يمديه يلعب ؟
  15. guiSetFont ولو تبي تضيف خط حطه في الميتا و إستخدم guiCreateFont
  16. Client : outputChatBox ("F6 = افتح النافذة",255,0,0,true) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(459,185,175,240,"سيارة",false) GUIEditor_Button[1] = guiCreateButton(0.0857,0.1167,0.8286,0.2917,"استدعاء سيارة 100$",true,GUIEditor_Window[1]) addEventHandler("onClientGUIClick",root, function() -- نسوي وظيفه if (source == GUIEditor_Button[1] ) then triggerServerEvent("Rhino",localPlayer) end end ) function OpenWin() guiSetVisible ( GUIEditor_Window[1], not guiGetVisible( GUIEditor_Window[1] )) showCursor(guiGetVisible( GUIEditor_Window[1] )) guiSetInputEnabled(guiGetVisible( GUIEditor_Window[1] )) end bindKey("F6", "down", OpenWin) Server : addEvent("Rhino",true) addEventHandler("Rhino",root, function() -- local x,y,z = getElementPosition ( source ) local Get = getPlayerMoney(source) if Get >= 100 then takePlayerMoney (source,100) rhino = createVehicle ( 403, x, y, z ) warpPedIntoVehicle(source, rhino) outputChatBox("* لقد اشتريت سيارة",source,255,255,0,true) else outputChatBox("* لا تملك المال الكافي للشراء !",source,0,0,0,true) end end )
  17. You can't cancel the onChatMessage event, use onClientChatMessage .
  18. غير مجرب : ---- CLeint : local font = guiCreateFont("3NAD.ttf") local font0 = guiCreateFont("AUTHOR.ttf", 12) function isAdmin( player ) return getElementData( player, 'Admin' ); end GUIEditor = { checkbox = {}, window = {}, edit = {}, label = {} } addEventHandler( 'onClientResourceStart', getResourceRootElement( getThisResource( ) ), function( ) GUIEditor.window[1] = guiCreateWindow(157, 54, 466, 470, "~[ Made A Car | صناعة سيارة ]~", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(21, 25, 421, 82, "1- يجب أن تضع سريال اللاعب\n2- يجب وضع أسم اللاعب لأجل الشات والأملاك\n3- يجب أختيار نوع السيارة عن طريق وضع الأي دي الخاص بها\n4- إن لم يرد اللاعب دخان السيارة فأضغط خطأ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], font) guiLabelSetColor(GUIEditor.label[1], 255, 255, 0) GUIEditor.edit[1] = guiCreateEdit(186, 154, 256, 30, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(77, 154, 84, 40, "Serial", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], font0) GUIEditor.label[3] = guiCreateLabel(73, 224, 88, 38, "Name", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], font0) GUIEditor.edit[2] = guiCreateEdit(186, 232, 256, 30, "", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(83, 288, 72, 48, "ID", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], font0) GUIEditor.edit[3] = guiCreateEdit(186, 298, 118, 31, "", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(186, 355, 118, 22, "Yes", false, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[1], font0) GUIEditor.label[5] = guiCreateLabel(73, 355, 100, 40, "Car \"D5AN\"", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], font0) GUIEditor.checkbox[2] = guiCreateCheckBox(186, 377, 118, 22, "No", false, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[2], font0) GUIEditor.label[6] = guiCreateLabel(83, 420, 100, 40, "Arrow", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], font0) guiLabelSetHorizontalAlign(GUIEditor.label[6], "center", false) GUIEditor.checkbox[3] = guiCreateCheckBox(186, 438, 118, 22, "No", true, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[3], font0) GUIEditor.checkbox[4] = guiCreateCheckBox(186, 416, 118, 22, "Yes", false, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[4], font0) GUIEditor.button[1] = guiCreateButton(317, 374, 139, 86, "Finish", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") guiSetFont(GUIEditor.button[1], font0) if isAdmin( localPlayer ) then bindKey("[","down", function ( ) guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])); showCursor(guiGetVisible(GUIEditor.window[1])); end ); end end ); addEventHandler( "onClientGUIClick", GUIEditor.button[1], function( ) local serial = guiGetText(GUIEditor.edit[1]); local name = guiGetText(GUIEditor.edit[2]) local ID = guiGetText(GUIEditor.edit[3]) if string.len( serial ) >= 15 and string.len( ID ) == 3 then triggerServerEvent( "onVehicleCreate",localPlayer,serial,ID) return end outputChatBox( 'يجب أن تدخل آيدي + سيريال صحيحين' ); end ); ------- Server : addEventHandler( 'onResourceStart', getResourceRootElement( getThisResource( ) ), function( ) for k,v in ipairs( getElementsByType( 'player' ) ) do if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( v ) ), aclGetGroup( 'Console' ) ) then setElementData( v, 'Admin', true ); end end end ); addEventHandler( 'onResourceStop', getResourceRootElement( getThisResource( ) ), function( ) for k,v in ipairs( getElementsByType( 'player' ) ) do setElementData( v, 'Admin', false ); end end ); addEventHandler( 'onPlayerLogin', getRootElement( ), function( _,account ) if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Console' ) ) then setElementData( source, 'Admin', true ); end end ); addEventHandler( 'onPlayerLogout', getRootElement( ), function( ) setElementData( source, 'Admin', false ); end ); addEvent( "onVehicleCreate", true ) addEventHandler( "onVehicleCreate", getRootElement(), function( serial, ID ) ID = tonumber( ID ); if ID then for k,v in ipairs( getElementsByType( 'player' ) ) do if getPlayerSerial( v ) == serial then local C = createVehicle( ID, 1797.2901611328, 841.5078125, 10.643834114075 ); setElementData( C, 'owned', true ); setElementData( C, 'owner', serial ); end end end end ); addEventHandler( "onVehicleStartEnter", getRootElement(), function( player ) if getElementData( source, 'owned' ) then if getElementData( source, 'owner' ) ~= getPlayerSerial ( player ) then cancelEvent( ); outputChatBox( 'هذه أملاك خاصة', player ); return end outputChatBox( 'مرحبا في سيارتك', player ); end end );
  19. PaiN^

    Progress Bar

    create tow rectangles above each other, And then resize the one above when you want the proggres bar to move .
  20. PaiN^

    Death Code

    'onPlayerSpawn' isPedDead addCommandHandler
  21. لوول قصدي كذا ListSerial = { [1] = 'serial', [2] = 'serial', [3] = 'serial', [4] = 'serial' } -- or ListSerial = { 'serial', 'serial', 'serial', 'serial', 'serial' }
×
×
  • Create New...