Jump to content

خطأ بالكود


Recommended Posts

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

الكود الي يقتل شخص تطلع له صوره مو راضيه تطلع

k1 = guiCreateStaticImage(630,130,168,168,"1.png",false) 
guiSetVisible(k1,false) 
k2 = guiCreateStaticImage(630,320,168,168,"2.png",false) 
guiSetVisible(k2,false) 
  
function o ( killer ) 
    if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        if ( isTimer ( timer ) ) then 
            killTimer ( timer ) 
        end 
        local a = math.random(1,2) 
if ( a == 1 ) then 
guiSetVisible(k1,true) 
setTimer(guiSetVisible,5000,1,k1,false) 
elseif ( a == 2 ) then 
guiSetVisible(k,true) 
setTimer(guiSetVisible,5000,1,k2,false) 
end 
end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 

Link to comment
بسم الله الرحمن الرحيم السلام عليكم ورحمة الله وبركاته

الكود الي يقتل شخص تطلع له صوره مو راضيه تطلع

k1 = guiCreateStaticImage(630,130,168,168,"1.png",false) 
guiSetVisible(k1,false) 
k2 = guiCreateStaticImage(630,320,168,168,"2.png",false) 
guiSetVisible(k2,false) 
  
function o ( killer ) 
    if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        if ( isTimer ( timer ) ) then 
            killTimer ( timer ) 
        end 
        local a = math.random(1,2) 
if ( a == 1 ) then 
guiSetVisible(k1,true) 
setTimer(guiSetVisible,5000,1,k1,false) 
elseif ( a == 2 ) then 
guiSetVisible(k,true) 
setTimer(guiSetVisible,5000,1,k2,false) 
end 
end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 

وش فايدة

math.random

هنا ؟

اذا المود مو من صنعك مقدر اساعدك ..

Link to comment

كذا ؟

messages = {  
"1.png", 
"2.png"  
} 
  
function o ( killer ) 
    if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        if ( isTimer ( timer ) ) then 
            killTimer ( timer ) 
        end 
    local randomID = math.random ( 1, #messages ) 
    local randomMessage = messages[randomID] 
end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 

Link to comment
كذا ؟
messages = {  
"1.png", 
"2.png"  
} 
  
function o ( killer ) 
    if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        if ( isTimer ( timer ) ) then 
            killTimer ( timer ) 
        end 
    local randomID = math.random ( 1, #messages ) 
    local randomMessage = messages[randomID] 
end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 

مع السلامة

-_-

:leftfighter1::leftfighter2::leftfighter3:

Edited by Guest
Link to comment
بسم الله الرحمن الرحيم السلام عليكم ورحمة الله وبركاته

الكود الي يقتل شخص تطلع له صوره مو راضيه تطلع

k1 = guiCreateStaticImage(630,130,168,168,"1.png",false) 
guiSetVisible(k1,false) 
k2 = guiCreateStaticImage(630,320,168,168,"2.png",false) 
guiSetVisible(k2,false) 
  
function o ( killer ) 
    if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        if ( isTimer ( timer ) ) then 
            killTimer ( timer ) 
        end 
        local a = math.random(1,2) 
if ( a == 1 ) then 
guiSetVisible(k1,true) 
setTimer(guiSetVisible,5000,1,k1,false) 
elseif ( a == 2 ) then 
guiSetVisible(k,true) 
setTimer(guiSetVisible,5000,1,k2,false) 
end 
end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 

وش فايدة

math.random

هنا ؟

اذا المود مو من صنعك مقدر اساعدك ..

انت قلت ااذا كان الكود لي راح تساعدني !

Link to comment

محاولت ثانيه

  
kk = { 
      'k1.png', 
      'k2.png', 
    
} 
  
function o ( killer ) 
    if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        if ( isTimer ( timer ) ) then 
            killTimer ( timer ) 
        end 
    local randomkk = kk[randomID] 
ki = guiCreateStaticImage(630,130,168,168,randomk3k,false) 
end 
end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 

Link to comment
كذا ؟
messages = {  
"1.png", 
"2.png"  
} 
  
function o ( killer ) 
    if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        if ( isTimer ( timer ) ) then 
            killTimer ( timer ) 
        end 
    local randomID = math.random ( 1, #messages ) 
    local randomMessage = messages[randomID] 
end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 

مع السلامة

-_-

:leftfighter1::leftfighter2::leftfighter3:

:lol::lol::lol::lol:

Link to comment
محاولت ثانيه
  
kk = { 
      'k1.png', 
      'k2.png', 
    
} 
  
function o ( killer ) 
    if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        if ( isTimer ( timer ) ) then 
            killTimer ( timer ) 
        end 
    local randomkk = kk[randomID] 
ki = guiCreateStaticImage(630,130,168,168,randomk3k,false) 
end 
end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 

randomID = ??

randomk3k = ??

Link to comment
kk = { 
      'k1.png', 
      'k2.png', 
} 
  
function o ( killer ) 
    if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        if ( isTimer ( timer ) ) then 
            killTimer ( timer ) 
        end 
    local randomID = math.random ( 1, #kk ) 
    local ra = kk[randomID] 
Kill = guiCreateStaticImage(630,130,168,168,ra,false) 
setTimer(guiSetVisible,5000,1,Kill,false) 
end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 

Link to comment
kk = { 
      'k1.png', 
      'k2.png', 
} 
  
function o ( killer ) 
    if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
        if ( isTimer ( timer ) ) then 
            killTimer ( timer ) 
        end 
    local randomID = math.random ( 1, #kk ) 
    local ra = kk[randomID] 
Kill = guiCreateStaticImage(630,130,168,168,ra,false) 
setTimer(guiSetVisible,5000,1,Kill,false) 
end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 

وش دخل

if ( isTimer ( timer ) ) then

killTimer ( timer )

end

؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

Link to comment
??????????????????????

وش مدريني عنه هو مسوي الكود سأله خخخخخخخخخخخخخخخخخخخخخخخخ

انا عدلت عليه وعطيته شغال ليه تضيف ذا ليه تضيف ذاك مادري عنه انا

طيب انت معدل له الكود ومسوي فاهم

يعني ذا غلط مفروض تسأله ليه يستخدمه

تعدله وانت ماتدري عنه

Link to comment
??????????????????????

وش مدريني عنه هو مسوي الكود سأله خخخخخخخخخخخخخخخخخخخخخخخخ

انا عدلت عليه وعطيته شغال ليه تضيف ذا ليه تضيف ذاك مادري عنه انا

طيب انت معدل له الكود ومسوي فاهم

يعني ذا غلط مفروض تسأله ليه يستخدمه

تعدله وانت ماتدري عنه

كلاآم سليم

Link to comment
??????????????????????

وش مدريني عنه هو مسوي الكود سأله خخخخخخخخخخخخخخخخخخخخخخخخ

انا عدلت عليه وعطيته شغال ليه تضيف ذا ليه تضيف ذاك مادري عنه انا

طيب انت معدل له الكود ومسوي فاهم

يعني ذا غلط مفروض تسأله ليه يستخدمه

تعدله وانت ماتدري عنه

مابي املي المووضوع 1000 رد بردلك برد واحد .... الله يسامحك ويهديك بس

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