Jump to content

طلب كودين


Recommended Posts

جرب ذا

    --لم يتم التجربه 
    function fireSpeed () 
    if getPlayerFromName "#[iMr][E'rrOr]_N" 
    then 
       getWeaponProperty ( 31, "pro", "firing_speed" ) 
    end 
    end 
    addCommandHandler ( "upgradeweapon", fireSpeed ) 
      

Link to comment
جرب ذا
    --لم يتم التجربه 
    function fireSpeed () 
    if getPlayerFromName "#[iMr][E'rrOr]_N" 
    then 
       getWeaponProperty ( 31, "pro", "firing_speed" ) 
    end 
    end 
    addCommandHandler ( "upgradeweapon", fireSpeed ) 
      

get = جلب / إحضار

set = تعيين / وضع

=========================

Command executed! Result: nil

فآهم غلط @@"

lua الأكواد ذي تحطها بـ ملف

و تخليها على شكل مود

Execute Command Handler مهوب تكتبها في

Link to comment
جرب ذا
    --لم يتم التجربه 
    function fireSpeed () 
    if getPlayerFromName "#[iMr][E'rrOr]_N" 
    then 
       getWeaponProperty ( 31, "pro", "firing_speed" ) 
    end 
    end 
    addCommandHandler ( "upgradeweapon", fireSpeed ) 
      

get = جلب / إحضار

set = تعيين / وضع

ادري بس شوف

http://img689.imageshack.us/img689/3806/95571373.png

Link to comment
-- لم يتم التجربة 
addCommandHandler ( "upgradeWeapon", 
    function ( thePlayer, _, theID ) 
        if getPlayerSerial ( thePlayer ) == "Your Serial" then 
            if theID then 
                setWeaponProperty ( theID, "pro", "move_speed", 1000 ) 
                outputChatBox ( "* Enabled 'Move Speed'", thePlayer, 0, 255, 0, true ) 
            else 
                outputChatBox ( "* Error, try again /upgradeWeapon [weaponID]", thePlayer, 255, 0, 0, true ) 
            end 
        end 
    end 
) 
  

اكتب بـ أف8

upgradeWeapon [weaponID]

مثال

upgradeWeapon 31

+

لاتنسى تحط سريالك

+

الكود سيرفر

Link to comment

setWeaponProperty ما يمديك تفعله لـ لاعب واحد

ذا يتفعل على لسكل

weaponSkill: Either: "pro", "std" or "poor". The player must have this skill level set to have the effect.

لازم تستخدم ذا الفنكشن إذا كنت تبيه لـ لاعب واحد أو مجموعة من اللاعبين

setPedStat 

Weapon skills مع العلم أن

pro = 1000

std = 500

poor = 0

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