Jump to content

طلب فنكشنات ,


Recommended Posts

تفضل وتعلم من الكود

addEventHandler ( "onPlayerChat", root,  
function ( msg, player ) 
    if ( msg == "فريز" ) then 
        if ( isTimer ( timerFrozen ) ) then  
            killTimer ( timerFrozen )  
        end 
            timerFrozen = setTimer ( function (    ) 
            setElementFrozen ( player, true ) 
        end 
    end 
end, 2000, 0 ) 

هذا بناءً على طلبك بكلمه معينه وللمعلوميه اذا تبيه بأكثر من كلمه تسويه بواسطة الجدول

table 
Edited by Guest
Link to comment
مشكور مستر ار

من كودك فهمت التايمر كويس <3

قلت لك تعال اشرح لك الطايمر :lol::lol::lol::lol::lol::lol::lol:

-_-" تزويد مشاركات براااااااااااااااااااااااااااااااااااااا :lol:

:mrgreen: اتذكر اني عرضت عليك اشرح لك الطايمر جلست تسبني و تقول كلام وصخ

:roll: مو تزويد كان مجرد عرض و قلت اعصبك :twisted:

انا الي ازود ؟

شوف مين يتكلم عن تزويد المشاركات :lol::lol:

Edited by Guest
Link to comment

:mrgreen: اتذكر اني عرضت عليك اشرح لك الطايمر جلست تسبني و تقول كلام وصخ

:roll: مو تزويد كان مجرد عرض و قلت اعصبك :twisted:

وليش تعرض الشرح على هالاشكال ؟ :lol:

مدري قلت اسوي خير كان جالس علي باب جامع يطلب شرح :lol::lol::lol::lol::lol::lol::lol::lol::lol:

Link to comment
تفضل وتعلم من الكود

addEventHandler ( "onPlayerChat", root,  
function ( msg ) 
    if ( msg == "فريز" ) then 
        if ( isTimer ( timerFrozen ) ) then  
            killTimer ( timerFrozen )  
        end 
            timerFrozen = setTimer ( function (    ) 
            setElementFrozen ( source, true ) 
        end 
    end 
end, 2000, 0 ) 

هذا بناءً على طلبك بكلمه معينه وللمعلوميه اذا تبيه بأكثر من كلمه تسويه بواسطة الجدول

table 
مشكور مستر ار

من كودك فهمت التايمر كويس <3

الكود غلط يالطيب شلون فهمت التايمر :?

Link to comment

local timerFrozen ={} 
setElementFrozenTimer = function (val) 
setElementFrozen (source, true) 
if timerFrozen[source] and isTimer(timerFrozen[source]) then killTimer(timerFrozen[source]) end 
timerFrozen[source] = setTimer ( function(source) 
if not isElement(source) then killTimer(timerFrozen[source]) return end 
setElementFrozen (source,false) 
end, val,1,source) 
end 
----------- 
addEventHandler ( "onPlayerChat", root, 
function ( msg ) 
if ( msg == "1" ) then 
setElementFrozenTimer (1000) 
elseif ( msg == "2" ) then 
setElementFrozenTimer (2000) 
elseif ( msg == "3" ) then 
setElementFrozenTimer (3000) 
elseif ( msg == "4" ) then 
setElementFrozenTimer (4000) 
elseif ( msg == "5" ) then 
setElementFrozenTimer (5000) 
end 
end) 
Link to comment

هذا بناءً على طلبك بكلمه معينه وللمعلوميه اذا تبيه بأكثر من كلمه تسويه بواسطة الجدول

table 

مو شرط يسوي جدول

آيه مو شرط يقدر يسويها نفس حركتك

addEventHandler ( "onPlayerChat", root, 
function ( msg ) 
if ( msg == "1" ) then 
setElementFrozenTimer (1000) 
elseif ( msg == "2" ) then 
setElementFrozenTimer (2000) 
elseif ( msg == "3" ) then 
setElementFrozenTimer (3000) 
elseif ( msg == "4" ) then 
setElementFrozenTimer (4000) 
elseif ( msg == "5" ) then 
setElementFrozenTimer (5000) 
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...