Russian#37 Posted May 19, 2017 Share Posted May 19, 2017 (edited) جيت اضيف addEventHandler("onPlayerWasted",root,function(_,killer) local num = math.random(1000,2500) if ( killer ) and ( killer ~= source ) then givePlayerMoney(killer,tonumber(num)) outputChatBox ( "You Got "..tostring(num).." ! ",killer,0,255,0) end end ) عشان لما اقتل لاعب يعطيني فلوس وماظبط وش الخطأ Edited May 19, 2017 by Russian#37 Link to comment
#DRAGON!FIRE Posted May 19, 2017 Share Posted May 19, 2017 يا ليت تستخدم <> عشان نقدر نقرأ الاكواد . اشوف الكود تمام .. شوف الديبوق في اي اخطاء من السكربت ! + tostring - tonumber ما يحتاج تستخدم 1 Link to comment
^iiEcoo'x_) Posted May 19, 2017 Share Posted May 19, 2017 addEventHandler ( 'onPlayerWasted' , root , function( _ , aAttacker_ ) if ( aAttacker_ ) and ( aAttacker_ ~= source ) then if ( getElementType ( source ) == 'player' and getElementType ( aAttacker_ ) == 'player' ) then givePlayerMoney ( aAttacker_ , math.random ( 1000 , 2500 ) ) end end end ) Link to comment
Russian#37 Posted May 19, 2017 Author Share Posted May 19, 2017 1 hour ago, #_iMr.[E]coo said: addEventHandler ( 'onPlayerWasted' , root , function( _ , aAttacker_ ) if ( aAttacker_ ) and ( aAttacker_ ~= source ) then if ( getElementType ( source ) == 'player' and getElementType ( aAttacker_ ) == 'player' ) then givePlayerMoney ( aAttacker_ , math.random ( 1000 , 2500 ) ) end end end ) ماظبط اخي , للعلم السيرفر دايز Link to comment
^iiEcoo'x_) Posted May 19, 2017 Share Posted May 19, 2017 4 minutes ago, Russian#37 said: ماظبط اخي , للعلم السيرفر دايز حاطه بملف سيرفر 1 Link to comment
Russian#37 Posted May 19, 2017 Author Share Posted May 19, 2017 1 hour ago, #_iMr.[E]coo said: حاطه بملف سيرفر خلاص , شكرا اخوي حليت المشكلة Link to comment
#Soking Posted May 19, 2017 Share Posted May 19, 2017 3 hours ago, #_iMr.[E]coo said: addEventHandler ( 'onPlayerWasted' , root , function( _ , aAttacker_ ) if ( aAttacker_ ) and ( aAttacker_ ~= source ) then if ( getElementType ( source ) == 'player' and getElementType ( aAttacker_ ) == 'player' ) then givePlayerMoney ( aAttacker_ , math.random ( 1000 , 2500 ) ) end end end ) getElementType ( source ) == 'player' 'onPlayerWasted !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1 Link to comment
^iiEcoo'x_) Posted May 20, 2017 Share Posted May 20, 2017 8 hours ago, #Soking said: getElementType ( source ) == 'player' 'onPlayerWasted !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ذذ خلنا نتحقق اكثر Link to comment
#Soking Posted May 20, 2017 Share Posted May 20, 2017 1 hour ago, #_iMr.[E]coo said: ذذ خلنا نتحقق اكثر مو شرط لان الحدث للاعبين بس Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now