Jump to content

بتمني منكم مساعدة :)


Me[Z]oO

Recommended Posts

السلام عليكم ورحمة الله وبركاته :):)

انا مصمم فيب

فيها اشياء كثير بس في زر يعطيك سيارة ..

بس للاسف الناس الي اشترت فيب تنزل اكثر من سيارة ويجي لاق

أبي كود اذا نزل سيارة ثانية وكان في سيارة علي الارض تختفي الاول وتظهر الجديدة

انا حاولت كثير بس ما نفع :x

Link to comment
ااخي انا مبرمج يعني تقول 45% وما شي وقف امامي بس بتمني منك مساعدة هنا فقط وبكون ممنون ليك

كيف مبرمج وماتعرف تسوى اخفاء سياره ؟

حاولت اخي بس ما ظبطت معي

طيب اطرح الكود اللى حاولت تسويه

Link to comment
function vehiclecar ( ) 
   local accName = getAccountName ( getPlayerAccount ( source ) ) 
   if isObjectInACLGroup ("user."..accName, aclGetGroup ( "sfsf" ) ) then  
   x,y,z = getElementPosition ( source ) 
   createVehicle ( 400, x + 3, y, z + 1 ) 
   outputChatBox("[VIP]Vehicle Created",source,255,255,0,false) 
   else 
   outputChatBox("You Don’t Promottion To Do This",source,255,0,0,false) 
   end 
end 
addEvent( "vehiclecar", true ) 
addEventHandler( "vehiclecar", getRootElement(),vehiclecar ) 

Link to comment
local veh = {} 
function vehiclecar ( ) 
local accName = getAccountName ( getPlayerAccount ( source ) ) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "sfsf" ) ) then 
local x,y,z = getElementPosition ( source ) 
local r1, r2, r3 = getElementRotation(source) 
if isElement(veh[source]) then destroyElement(veh[source]) end 
local veh = createVehicle ( 400, x + 3, y, z + 1,r1, r2, r3 ) 
outputChatBox("[VIP]Vehicle Created",source,255,255,0,false) 
else 
outputChatBox("You Don’t Promottion To Do This",source,255,0,0,false) 
end 
end 
addEvent( "vehiclecar", true ) 
addEventHandler( "vehiclecar", getRootElement(),vehiclecar ) 

Link to comment
local veh = {} 
function vehiclecar ( ) 
local accName = getAccountName ( getPlayerAccount ( source ) ) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "sfsf" ) ) then 
local x,y,z = getElementPosition ( source ) 
local r1, r2, r3 = getElementRotation(source) 
if isElement(veh[source]) then destroyElement(veh[source]) end 
local veh = createVehicle ( 400, x + 3, y, z + 1,r1, r2, r3 ) 
outputChatBox("[VIP]Vehicle Created",source,255,255,0,false) 
else 
outputChatBox("You Don’t Promottion To Do This",source,255,0,0,false) 
end 
end 
addEvent( "vehiclecar", true ) 
addEventHandler( "vehiclecar", getRootElement(),vehiclecar ) 

بشكرك اخي تعلمت الصح وعرفت الغلط من كودك :)

Link to comment

اوبس كود اوسكار مب شغال للاسف انزل اكثر من سيارة :/ مدير تعرف تصلح لي هذا الكود ؟

local veh = {} 
function vehiclecar ( ) 
local accName = getAccountName ( getPlayerAccount ( source ) ) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "sfsf" ) ) then 
local x,y,z = getElementPosition ( source ) 
local r1, r2, r3 = getElementRotation(source) 
if isElement(veh[source]) then destroyElement(veh[source]) end 
local veh = createVehicle ( 400, x + 3, y, z + 1,r1, r2, r3 ) 
outputChatBox("[VIP]Vehicle Created",source,255,255,0,false) 
else 
outputChatBox("You Don’t Promottion To Do This",source,255,0,0,false) 
end 
end 
addEvent( "vehiclecar", true ) 
addEventHandler( "vehiclecar", getRootElement(),vehiclecar ) 

ابيه لو اللاعب نزل سيارة واجا ينزل سيارة اخري تنسحب علي طول الاولي وكمان لو خرج اللاعب

Link to comment

local veh = {} 
  
addEvent( "vehiclecar", true ) 
addEventHandler( "vehiclecar", root,  
function () 
    local accName = getAccountName ( getPlayerAccount ( source ) ); 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "sfsf" ) ) then 
        local x,y,z = getElementPosition ( source ); 
        local r1, r2, r3 = getElementRotation(source); 
        if isElement(veh[source]) then destroyElement(veh[source]) end 
        local veh[source] = createVehicle ( 400, x + 3, y, z + 1,r1, r2, r3 ); 
        outputChatBox("[VIP]Vehicle Created",source,255,255,0,false); 
    else 
        outputChatBox("You Don’t Promottion To Do This",source,255,0,0,false); 
    end 
end ); 
  
addEventHandler("onPlayeQuit", root,  
function () 
    if isElement(veh[source]) then 
        destroyElement (veh[source]); 
    end 
end ); 

اذا واجهتك مشاكل استخدم الأمر

debugscript 3

واطلعنا بها

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...