Jump to content

طلب اكمال كود


M7MD#

Recommended Posts

سلامُ عليكم

عندي مود الــ لوجو

ابيه يوم اللاعب يدخل السيارة الوجو يختفي

ويوم يخرج يررجع

local screenWidth, screenHeight = guiGetScreenSize() 
  
img = "logo.png"  
  
addEventHandler("onClientRender", root, 
function() 
local seconds = getTickCount() / 1000 
local R = math.sin(seconds) * 80 
dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) 
end 
) 

حاولت اسويه بنفسي ضبط معي فقط يوم يدخل يختفي لكن يوم يخرج يظل مختفي ارجو المساعدة .. :):fadein:

Link to comment
local screenWidth, screenHeight = guiGetScreenSize() 
  
img = "logo.png"  
  
addEventHandler("onClientRender", root, 
function logo() 
local seconds = getTickCount() / 1000 
local R = math.sin(seconds) * 80 
if (not isPedInVehicle(getLocalPlayer)) then 
dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) 
else 
removeEventHandler("onClientRender",root,logo) 
end 
  end 
) 

كذا ؟

Link to comment

تفضل

local screenWidth, screenHeight = guiGetScreenSize() 
  
img = "logo.png" 
  
function logo() 
local seconds = getTickCount() / 1000 
local R = math.sin(seconds) * 80 
dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) 
end 
addEventHandler("onClientRender",root,logo) 
  
addEventHandler("onClientResourceStart",resourceRoot, function ( ) 
if ( isPedInVehicle(localPlayer) ) then 
removeEventHandler("onClientRender",root,logo) 
end 
 end 
) 
  
addEventHandler("onClientVehicleEnter",root, function ( ) 
removeEventHandler("onClientRender",root,logo) 
end) 
  
addEventHandler("onClientVehicleExit",root, function ( ) 
addEventHandler("onClientRender",root,logo) 
end) 
  

Link to comment
تفضل
local screenWidth, screenHeight = guiGetScreenSize() 
  
img = "logo.png" 
  
function logo() 
local seconds = getTickCount() / 1000 
local R = math.sin(seconds) * 80 
dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) 
end 
addEventHandler("onClientRender",root,logo) 
  
addEventHandler("onClientResourceStart",resourceRoot, function ( ) 
if ( isPedInVehicle(localPlayer) ) then 
removeEventHandler("onClientRender",root,logo) 
end 
 end 
) 
  
addEventHandler("onClientVehicleEnter",root, function ( ) 
removeEventHandler("onClientRender",root,logo) 
end) 
  
addEventHandler("onClientVehicleExit",root, function ( ) 
addEventHandler("onClientRender",root,logo) 
end) 
  

انشهد انك كفو ومبدع

بارك الله بكك ..

لكن لو انك اعطيتني الفنكشنات احاول واغلط وتصحح الخطأ احسن :)

بالتوفيق وشكراً اخوي بارك الله بكك :)

Link to comment

لكن في مشكلة بـــ كودك توي الاحظه

ان لما اي لاعب يدخل السيارة الــ شعار يختفي من عند الكُل ..

وجربتها مع خويي في سيرفر مجاني

Link to comment
local screenWidth, screenHeight = guiGetScreenSize() 
  
img = "logo.png" 
  
function logo() 
local seconds = getTickCount() / 1000 
local R = math.sin(seconds) * 80 
dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) 
end 
addEventHandler("onClientRender",root,logo) 
  
addEventHandler("onClientResourceStart",getRootElement(), function ( ) 
if ( isPedInVehicle(localPlayer) ) then 
removeEventHandler("onClientRender",getRootElement(),logo) 
end 
 end 
) 
  
addEventHandler("onClientVehicleEnter",getRootElement(), function ( ) 
removeEventHandler("onClientRender",getRootElement(),logo) 
end) 
  
addEventHandler("onClientVehicleExit",getRootElement(), function ( ) 
addEventHandler("onClientRender",getRootElement(),logo) 
end) 

Link to comment
local screenWidth, screenHeight = guiGetScreenSize() 
  
img = "logo.png" 
  
function logo() 
local seconds = getTickCount() / 1000 
local R = math.sin(seconds) * 80 
dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) 
end 
addEventHandler("onClientRender",root,logo) 
  
addEventHandler("onClientResourceStart",getRootElement(), function ( ) 
if ( isPedInVehicle(localPlayer) ) then 
removeEventHandler("onClientRender",getRootElement(),logo) 
end 
 end 
) 
  
addEventHandler("onClientVehicleEnter",getRootElement(), function ( ) 
removeEventHandler("onClientRender",getRootElement(),logo) 
end) 
  
addEventHandler("onClientVehicleExit",getRootElement(), function ( ) 
addEventHandler("onClientRender",getRootElement(),logo) 
end) 

نَفسْ المُشكلة :(

Link to comment
    local screenWidth, screenHeight = guiGetScreenSize() 
      
    img = "logo.png" 
      
    function logo() 
    local seconds = getTickCount() / 1000 
    local R = math.sin(seconds) * 80 
    if ( isPedInVehicle(localPlayer) ) then return end 
    dxDrawImage( (screenWidth / 800) * 645, (screenHeight / 520) * 157, (screenWidth / 850) * 150, (screenHeight / 600) * 130, img , R) 
    end 
    addEventHandler("onClientRender",root,logo) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...