Jump to content

طلب كود حق سيريال


Recommended Posts

-- Client Side # 
  
serials = { 
    ['SERIAL'] = true, 
    ['SERIAL'] = true, 
    ['SERIAL'] = true, 
    ['SERIAL'] = true, 
    ['SERIAL'] = true 
} 
  
if serials[getPlayerSerial(localPlayer)] then 
    -- سوي التحقق مع كود فتح النافذه ; 
end 
Link to comment

لو بحثت بـ المنتدى كان لقيت .. ذذ :

# اللوحة تفتح لسيريال محدد

ZA7F = { 
["Your Serial"] = true, 
} 
  
local Key = "F2" 
local WindowName = Your Window  
  
bindKey(Key,"down",function ( ) 
        local PlayerSerial = getPlayerSerial(localPlayer) 
        if ( ZA7F[PlayerSerial] ) then   
            guiSetVisible( WindowName, not guiGetVisible ( WindowName ) ) ; 
            showCursor ( guiGetVisible ( WindowName ) ); 
        end; 
end ); 
Link to comment
لو بحثت بـ المنتدى كان لقيت .. ذذ :
# اللوحة تفتح لسيريال محدد

ZA7F = { 
["Your Serial"] = true, 
} 
  
local Key = "F2" 
local WindowName = Your Window  
  
bindKey(Key,"down",function ( ) 
        local PlayerSerial = getPlayerSerial(localPlayer) 
        if ( ZA7F[PlayerSerial] ) then   
            guiSetVisible( WindowName, not guiGetVisible ( WindowName ) ) ; 
            showCursor ( guiGetVisible ( WindowName ) ); 
        end; 
end ); 
-- Client Side # 
  
serials = { 
    ['SERIAL'] = true, 
    ['SERIAL'] = true, 
    ['SERIAL'] = true, 
    ['SERIAL'] = true, 
    ['SERIAL'] = true 
} 
  
if serials[getPlayerSerial(localPlayer)] then 
    -- سوي التحقق مع كود فتح النافذه ; 
end 

لو نلاحظ كلكم حاطين في فنكشن :

getPlayerSerial 
getPlayerSerial ( localPlayer ) 

لكن فعلياً لـا يوجد أرقمنت لـ الاعب بجانب الكلنت ..

if getPlayerSerial ( ) == '' then -- stuff end 

Link to comment

برستيج ان حطيتها ما في مشكلة والكود يشتغل ذذ

ZA7F = { 
["Your Serial"] = true, 
} 
  
local Key = "F2" 
local WindowName = Your Window 
  
bindKey(Key,"down",function ( ) 
        local PlayerSerial = getPlayerSerial(localPlayer) 
        if ( ZA7F[PlayerSerial] ) then   
            guiSetVisible( WindowName, not guiGetVisible ( WindowName ) ) ; 
            showCursor ( guiGetVisible ( WindowName ) ); 
     else 
            outputChatBox ( "لا تملك التصريح", math.random( 255 ), math.random( 255 ), math.random( 255 ), true) 
        end; 
end ); 
Link to comment
يعني وظائف للسيارة و كذا

لقيت لك رد حاطه انا من زمان اختصصارات لشوب الريس .. يفيدكـ .. :

amountFix = سعر الأصصلأح

amountNitro = سعر النيترو

amountFlip = سعر الأنقلأب

local amountFix = 1000 
local amountNitro = 2000 
local amountFlip = 3000 
  
addEventHandler( "onResourceStart", resourceRoot, function ( )    
  for _,plrs in ipairs( getElementsByType("player") ) do 
       bindKey( plrs, "1", "Down", Fix) 
       bindKey( plrs, "2", "Down", Flip) 
       bindKey( plrs, "3", "Down", Nitro) 
     end 
end ) 
  
addEventHandler( "onPlayerJoin", root, function ( ) 
  bindKey( source, "1", "Down", Fix) 
  bindKey( source, "2", "Down", Flip) 
  bindKey( source, "3", "Down", Nitro) 
end ) 
  
function Fix ( plr ) 
      if ( isPedInVehicle( plr ) ) then 
          if ( getPlayerMoney( plr ) >= tonumber( amountFix ) ) then 
            takePlayerMoney( plr, tonumber( amountFix ) ) 
            fixVehicle( getPedOccupiedVehicle( plr ) ) 
            outputChatBox("#FF0000 ** You've bought Fix !", plr,255,255,255,true) 
      else 
            outputChatBox("#FF0000 ** You Don't Have enough Money.", plr,255,255,255,true) 
            end 
       else 
            outputChatBox("#FF0000 ** You Are not in The Vehicle", plr,255,0,0,true) 
          end 
end 
  
function Flip ( plr ) 
        if ( isPedInVehicle( plr ) ) then 
          if ( getPlayerMoney( plr ) >= tonumber( amountFlip ) ) then 
            takePlayerMoney( plr, tonumber( amountFlip ) ) 
            local rx, ry, rz = getElementRotation(getPedOccupiedVehicle( plr )) 
            setElementRotation ( getPedOccupiedVehicle( plr ), 0, 0, rx > 90 and rx < 279 and rz + 180 or rz ) 
            outputChatBox("#FF0000 ** You've bought Flip !", plr,255,255,255,true) 
       else 
            outputChatBox("#FF0000 ** You Don't Have enough Money.", plr,255,255,255,true) 
            end 
       else 
            outputChatBox("#FF0000 ** You Are not in The Vehicle", plr,255,0,0,true) 
           end 
end 
     
function Nitro ( plr ) 
        if ( isPedInVehicle( plr ) ) then 
          if ( getPlayerMoney( plr ) >= tonumber( amountNitro ) ) then 
            takePlayerMoney( plr, tonumber( amountNitro ) ) 
            addVehicleUpgrade( getPedOccupiedVehicle( plr ), 1010 ) 
            outputChatBox("#FF0000 ** You've bought a nitro !", plr,255,255,255,true) 
       else 
            outputChatBox("#FF0000 ** You Don't Have enough Money.", plr,255,255,255,true) 
            end 
       else 
            outputChatBox("#FF0000 ** You Are not in The Vehicle", plr,255,0,0,true) 
         end 
end 
Link to comment
يب مثلا

يشتري مضاد الدمج 30 ثانيه و كذا

و يشتري طلقات من السيارة 30 ثانيه

تقدر

setVehicleDamageProof( )

* هذا يمنع السيارة من انها تضرر

بالنسبة لطلقات من السيارة اتوقع تقصد مثل الشوتر

هذي تعدله من الكود اللي معك وتستخدم الداتا

Link to comment

كل طلباتكـ موجودة من قبل ..

Client Side !

CanShoot = true 
  
bindKey ( "mouse1", "down", 
    function ( ) 
        local vehicle = getPedOccupiedVehicle ( localPlayer ) 
        if ( vehicle ) then 
            if ( CanShoot == true ) then 
                local x, y, z = getElementPosition ( vehicle ) 
                createProjectile ( vehicle, 19, x, y, z, 200 ) 
                CanShoot = false 
                setTimer ( function ( ) CanShoot = true end, 3000, 1 ) 
            end 
        end 
    end 
) 
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...