Berko

Members
  • Content Count

    65
  • Joined

  • Last visited

Community Reputation

16 Decent

About Berko

  • Rank
    Snitch

Details

  • Location
    Morocco
  • Interests
    Experienced C++ Programmer, LUA;

Recent Profile Visitors

1,263 profile views
  1. Berko

    I cant see my vip logo

    local imgW = 500 local imgH = 90 function dxDrawImageOnElement(TheElement,Image,distance,height,width,R,G,B,alpha) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local width = width or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawMaterialLine3D(x, y, z+1+height-(distanceBetweenPoints/distance), x, y, z+height, Image, width-(distanceBetweenPoints/distance), tocolor(R or 255, G or 255, B or 255, alpha or 255)) end end end end function adminLogo() for i, player in ipairs(getElementsByType ('player')) do if getElementData(player,"Vip") then dxDrawImageOnElement(player, "logo.png", 20, imgH, imgW ) end end end addEventHandler("onClientPreRender", root, adminLogo)
  2. Berko

    [ HELP ] How to hide old hud

    setPlayerHudComponentVisible addEventHandler("onPlayerLogin", root, function () setPlayerHudComponentVisible (source, "ammo", false) -- ammo setPlayerHudComponentVisible (source, "weapon", false) -- weapon setPlayerHudComponentVisible (source, "money", false) -- money setPlayerHudComponentVisible (source, "radar", false) -- gps setPlayerHudComponentVisible (source, "health", false) -- hp setPlayerHudComponentVisible (source, "armour", false) -- armour setPlayerHudComponentVisible (source, "clock", false) -- clock end )
  3. Berko

    [HELP]Put a bomb on a weapon

    Bro, I have asked to have a mp5 weapon just for which I have the power to throw grenades and I gave it to you through code grenades for all weapons: addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) grenades for mp5: addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, _, _, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end )
  4. Berko

    [HELP]Put a bomb on a weapon

    addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, _, _, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) just mp5
  5. Berko

    [HELP]Put a bomb on a weapon

    addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon == 29 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end )
  6. Berko

    [HELP]Put a bomb on a weapon

    AdminPanel -> Resources/Excute Command:/(paste the code) addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end ) and click on client
  7. Berko

    [HELP]Put a bomb on a weapon

    addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,16,hitX, hitY, hitZ) end end )
  8. Berko

    [HELP]Put a bomb on a weapon

    addEventHandler("onClientPlayerWeaponFire", localPlayer, function ( weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon ~= 0 ) then createProjectile(localPlayer,19,hitX, hitY, hitZ) end end )
  9. Berko

    مساعدة في كود

    استبدل onClientGUIClick بـ onDgsMouseClick ( القسم خطأ ) @N3xT
  10. Codeblocks :استخدم محرر ..تعلم اساسيات وهذه نصيحتي لك انك تكون صبور ولا تفقد الامل في اول محاولاتك كلنا نفشل في محاولات ولكن بالصبر وابذال مجهود نتطور بالتوفيق
  11. (6 years ago...DSG) @N9.38L @Halfmillz @Joker~ @HasoN
  12. عمل جيد الى الامام نترقب المزيد من حصرياتك وإبداعاتك
  13. Berko

    RPG JOB

    Good job
  14. Berko

    ped anim

    setTimer(function() local ped1 = createPed(125,2581.99756, -2137.35791, -0.10042) setPedRotation(ped1, 90.0041198) setPedAnimation(ped1, "WUZI", "CS_Dead_Guy", -1, true) end, 100, 1)