Jump to content

مطلوب فنكشات


Recommended Posts

انا ابي اعرف كيف راح احط 6 وين احطها

function consoleSetFightingStyle ( thePlayer, commandName, id )

if thePlayer and id then

local status = setPedFightingStyle ( thePlayer, tonumber(id) )

if not status then -- if that failed

outputConsole ( "Failed to set fighting style.", thePlayer )

end

end

end

addCommandHandler ( "setstyle", consoleSetFightingStyle )

في اي محل بل كود اكتب 6 ممكن حل؟

Link to comment
انا ابي اعرف كيف راح احط 6 وين احطها

function consoleSetFightingStyle ( thePlayer, commandName, id )

if thePlayer and id then

local status = setPedFightingStyle ( thePlayer, tonumber(id) )

if not status then -- if that failed

outputConsole ( "Failed to set fighting style.", thePlayer )

end

end

end

addCommandHandler ( "setstyle", consoleSetFightingStyle )

في اي محل بل كود اكتب 6 ممكن حل؟

الكود تضعه في ملف سيرفر .

Link to comment

ويعطيك حركه الكارتيه؟ (F8) انت تقصد تبي تكتب الامر في الكونسل

-- Server Side # 
addCommandHandler ( 'setstyle',function ( thePlayer ) 
    if getPedFightingStyle ( thePlayer ) == 6 then return end 
        setPedFightingStyle ( thePlayer, 6 ) 
    end 
) 
Link to comment

-- Server Side # 
addCommandHandler ( 'setstyle',function ( _, _, player ) 
    if player and isElement( getPlayerFromName(player) ) then 
        if getElementModel( getPlayerFromName(player) ) == skin and getPedFightingStyle ( getPlayerFromName(player) ) ~= 6 then 
            setPedFightingStyle ( getPlayerFromName(player), 6 ) 
            end 
        end 
    end 
) 

* skin : ايدي الشخصيه .

مثآل :

  • setstyle Ra7sErEom

وتقدر تسوي تايمر لو غير الشخصيه تروح من عنده حركه الكارتيه .

Link to comment
-- Server Side # 
addCommandHandler ( 'setstyle',function ( _, _, player ) 
    if player and isElement( getPlayerFromName(player) ) then 
        if getElementModel( getPlayerFromName(player) ) == skin and getPedFightingStyle ( getPlayerFromName(player) ) ~= 6 then 
            setPedFightingStyle ( getPlayerFromName(player), 6 ) 
            end 
        end 
    end 
) 

* skin : ايدي الشخصيه .

مثآل :

  • setstyle Ra7sErEom

وتقدر تسوي تايمر لو غير الشخصيه تروح من عنده حركه الكارتيه .

Event: "onElementModelChange"

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