Jump to content

مساعدةة ضروريي


Recommended Posts

هلا شباب

ابي مساعدة

ابي مود اللي يكتب شئ مثلا س1

بدل ما يطلع في الشات س1 يطلع السلام عليكم

هو قريب عن مود الفيسات لكن مو صورة يطلع كلام

المود ذا موجود بسيرفر وزارة الهجولة طبعا :$

Link to comment

لم يتم التجربه

function dod() 
if messageType == s1 then 
cancelEvent() 
outputChatBox ( "السلام عليكم ورحمه الله وبركاته", 255, 255, 255, true ) 
  end 
end 
addEventHandler( "onPlayerChat", getRootElement(), dod ) 

Link to comment
    function onChat (msg) 
    if ( msg == "s1" ) then 
    cancelEvent ( ) 
    local name = getPlayerName ( source ) 
    outputChatBox(""..name..": السلام عليكم ورحمة الله وبركاته ",root,255,255,255,true) 
    end 
    end 
    addEventHandler("onPlayerChat",root,onChat) 

Link to comment

Client Side

addEventHandler("onClientChatMessage", root, function(msg, r, g, b) 
    if string.find(msg, "س1") then 
        outputChatBox(string.gsub(msg, "س1", "السلام عليكم ورحمة الله وبركاته"), r, g, b, true) 
        cancelEvent( ) 
    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...