Nasa47 Posted August 13, 2014 Posted August 13, 2014 local msgs = { ['hello'] = "hi" } function chatt ( msg ) if ( msg == msgs ) then cancelEvent() outputChatBox ("* ".. getPlayerName ( source ) .." : "..msgs [ msg ], source, 0, 255, 0, true ) end end addEventHandler("onPlayerChat", root, chatt) هذا الكود مو جاي يزبط ولا في رسايل من الدي بق
./BlackBird# Posted August 13, 2014 Posted August 13, 2014 local msgs = { ['hi'] = "hello" } function chatt ( msg ) if ( msgs[msg] ) then cancelEvent() outputChatBox ("* ".. getPlayerName ( source ) .." : "..msgs [ msg ], source, 0, 255, 0, true ) end end addEventHandler("onPlayerChat", root, chatt) هذا الكود مو جاي يزبط ولا في رسايل من الدي بق #~BlackBird~#
xX|KeMo|Xx Posted August 13, 2014 Posted August 13, 2014 ما فهمت انت شو تبي بالكود وشو مستفيد من الجدول؟ FaceBook: Kamal Skype: kkk-ka MultiGames V.2 in Gta-Pro(1) (2)
Max+ Posted August 13, 2014 Posted August 13, 2014 (edited) * Edited August 13, 2014 by Guest - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
xX|KeMo|Xx Posted August 13, 2014 Posted August 13, 2014 شو استفدت يوم دخلت السورس بجدول + هو مسوي الجدول لكلمات FaceBook: Kamal Skype: kkk-ka MultiGames V.2 in Gta-Pro(1) (2)
Nasa47 Posted August 13, 2014 Author Posted August 13, 2014 كود مجنون فيك ضبط بس ابيه اذا كتب كلمه مع الكلمات اللي بالجدول يسوي الامر مثلا : اذا كتبت hi all يطلع hello all
Nasa47 Posted August 13, 2014 Author Posted August 13, 2014 local msgs = { ['hello'] = "hi" } function chatt ( msg ) if string.find( msg, msgs ) then if ( msgs [ msg ] ) then cancelEvent() outputChatBox ("* ".. getPlayerName ( source ) .." : "..msgs [ msg ], source, 0, 255, 0, true ) end end end addEventHandler("onPlayerChat", root, chatt)
#DRAGON!FIRE Posted August 13, 2014 Posted August 13, 2014 local gWords = { [ "hi" ] = "hello" } addEventHandler( "onPlayerChat", root, function ( msg ) for i,v in next, ( gWords ) do msg = string.gsub( msg, i, v ) end cancelEvent ( true ) outputChatBox ( "* ".. getPlayerName ( source ) .." : ".. msg, source, 0, 255, 0, true ) end ) To Contact Me at Skype : [email protected]
Nasa47 Posted August 14, 2014 Author Posted August 14, 2014 local gWords = { [ "hi" ] = "hello" } addEventHandler( "onPlayerChat", root, function ( msg ) for i,v in next, ( gWords ) do msg = string.gsub( msg, i, v ) end cancelEvent ( true ) outputChatBox ( "* ".. getPlayerName ( source ) .." : ".. msg, source, 0, 255, 0, true ) end ) كودك يطلع الكلام مرتين انا ابي اذا كتبت هاي يطلع هيلو
Max+ Posted August 14, 2014 Posted August 14, 2014 local gWords = { [ "hi" ] = "hello" } addEventHandler( "onPlayerChat", root, function ( msg ) for i,v in next, ( gWords ) do msg = string.gsub( msg, i, v ) end cancelEvent ( true ) outputChatBox ( "* ".. getPlayerName ( source ) .." : ".. msg, source, 0, 255, 0, true ) end ) كودك يطلع الكلام مرتين انا ابي اذا كتبت هاي يطلع هيلو طف مود play وجرب السكربت على مود fallout ... - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
Nasa47 Posted August 14, 2014 Author Posted August 14, 2014 مايضبط, لان اللي اقصده ان كود زاحف مرة يطلع hi ومرة hi >> يعني ملونة
xX|KeMo|Xx Posted August 14, 2014 Posted August 14, 2014 الكلمه الخضراء من الكود اما الكلمه الغير ملونه تلاقيها من مود تاني مثلا تاج او بلاي FaceBook: Kamal Skype: kkk-ka MultiGames V.2 in Gta-Pro(1) (2)
Nasa47 Posted August 14, 2014 Author Posted August 14, 2014 يَ ناااس افهمووا المشكلة مو في التكرااار, المشكلة انه يطلع لي الكلمة بلون ثاني, بدوون تغييير انا ابييه يغير الكلمة
./BlackBird# Posted August 14, 2014 Posted August 14, 2014 يَ ناااس افهموواالمشكلة مو في التكرااار, المشكلة انه يطلع لي الكلمة بلون ثاني, بدوون تغييير انا ابييه يغير الكلمة الكود مجرب و شغال #~BlackBird~#
Nasa47 Posted August 14, 2014 Author Posted August 14, 2014 يَ ناااس افهموواالمشكلة مو في التكرااار, المشكلة انه يطلع لي الكلمة بلون ثاني, بدوون تغييير انا ابييه يغير الكلمة الكود مجرب و شغال كم انا غبي طيب الكود ذا يطلع اييي كلام, انا ابيه بسس اذا قال hi لان لو كتبت اي كلمة ثانية يطلعها لي, انا مابيه يطلعها
-#Saimon Posted August 14, 2014 Posted August 14, 2014 الكلمه الثانيه اللي مو ملونه تطللع لانك مشغل الفريروم , طفه وجرب Hide it
Nasa47 Posted August 14, 2014 Author Posted August 14, 2014 يَ ناااس افهموواالمشكلة مو في التكرااار, المشكلة انه يطلع لي الكلمة بلون ثاني, بدوون تغييير انا ابييه يغير الكلمة
#DRAGON!FIRE Posted August 14, 2014 Posted August 14, 2014 local gWords = { [ "hi" ] = "hello" } addEventHandler( "onPlayerChat", root, function ( msg ) for i,v in next, ( gWords ) do msg = string.gsub( msg, i, v ) end cancelEvent ( true ) outputChatBox ( "* ".. getPlayerName ( source ) .." : #FFFFFF".. msg, source, 0, 255, 0, true ) end ) To Contact Me at Skype : [email protected]
Nasa47 Posted August 15, 2014 Author Posted August 15, 2014 local gWords = { [ "hi" ] = "hello" } addEventHandler( "onPlayerChat", root, function ( msg ) for i,v in next, ( gWords ) do msg = string.gsub( msg, i, v ) end cancelEvent ( true ) outputChatBox ( "* ".. getPlayerName ( source ) .." : #FFFFFF".. msg, source, 0, 255, 0, true ) end ) طيب ابيه اذا كتب كلام وفيه hi يطلع نفس الكلام بس يستبدل الـ هاي مثلا hi all يطلع hello all
#DRAGON!FIRE Posted August 15, 2014 Posted August 15, 2014 هو كذا ... جربته ؟ To Contact Me at Skype : [email protected]
Nasa47 Posted August 15, 2014 Author Posted August 15, 2014 هو كذا ... جربته ؟ يب, وحاولت ازبطه بنفسي بس جاني سبام addEventHandler( "onPlayerChat", root, function ( msg ) for i,v in next, ( gWords ) do if string.find(msg, v) then --هذي سببت سبام ض1 msg = string.gsub( msg, i, v ) end cancelEvent ( true ) outputChatBox ( "* ".. getPlayerName ( source ) .." : #FFFFFF".. msg, source, 0, 255, 0, true ) end end )
#DRAGON!FIRE Posted August 15, 2014 Posted August 15, 2014 وش المشكلة ؟؟ الكود حقي تمام ! To Contact Me at Skype : [email protected]
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