Jump to content

ابغى كود


xb0

Recommended Posts

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

شباب انا ابغى كود حق تقريب الكلام يعني

مثلا

انا حاط مود الي يكتب بالشات سلاب يجيه سلاب اوك

فا ابغى لو واحد كتب

ابغى سلاب

او

اعطيني سلاب

والكلمه المحدده سلاب

فا اول ماتجي كلمه سلاب يعطي سلاب بس انا ابغى كود الي يقرب الكلام

Link to comment
addCommandHandler("example", 
    function(player,command,...) 
        message = table.concat({...}," ") 
        if string.find(message,"example") then 
            outputChatBox(message,player,0,255,0) 
        else 
            outputChatBox("There is no example",player,255,0,0) 
        end 
    end 
) 

Link to comment
        addEventHandler('onPlayerChat',root, 
        function(msg) 
                if string.find(msg,'ابي سلاب') then 
                killPed (source) 
        outputChatBox("* [KFO]=|> تم إعطائك سلآب بنجاح <|=[KFO]",source,255,0,0,true); 
                end 
            end 
) 
        addEventHandler('onPlayerChat',root, 
        function(msg) 
                if string.find(msg,'أبي سلاب') then 
                killPed (source) 
        outputChatBox("* [KFO]=|> تم إعطائك سلآب بنجاح <|=[KFO]",source,255,0,0,true); 
                end 
            end 
) 
        addEventHandler('onPlayerChat',root, 
        function(msg) 
                if string.find(msg,'سلاب لاهنت') then 
                killPed (source) 
        outputChatBox("* [KFO]=|> تم إعطائك سلآب بنجاح <|=[KFO]",source,255,0,0,true); 
                end 
            end 
) 

Link to comment
  • Moderators
        addEventHandler('onPlayerChat',root, 
        function(msg) 
                if string.find(msg,'ابي سلاب') then 
                killPed (source) 
        outputChatBox("* [KFO]=|> تم إعطائك سلآب بنجاح <|=[KFO]",source,255,0,0,true); 
                end 
            end 
) 
        addEventHandler('onPlayerChat',root, 
        function(msg) 
                if string.find(msg,'أبي سلاب') then 
                killPed (source) 
        outputChatBox("* [KFO]=|> تم إعطائك سلآب بنجاح <|=[KFO]",source,255,0,0,true); 
                end 
            end 
) 
        addEventHandler('onPlayerChat',root, 
        function(msg) 
                if string.find(msg,'سلاب لاهنت') then 
                killPed (source) 
        outputChatBox("* [KFO]=|> تم إعطائك سلآب بنجاح <|=[KFO]",source,255,0,0,true); 
                end 
            end 
) 

تقدر تختصر بهذا الشكل .

addEventHandler('onPlayerChat',root, 
    function(msg) 
        if string.find(msg,'ابي سلاب') or string.find(msg,'صكوني سلاب') or string.find(msg,'عطوني سلاب') then 
            killPed (source) 
            outputChatBox("* [KFO]=|> تم إعطائك سلآب بنجاح <|=[KFO]",source,255,0,0,true); 
        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...