-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
لولا الله ثم هو ! ترا فيها شرك اصغر لو ؟ ومو لولآ ذذ ومآودنآ نفتح نقاشات و كلن يحكي من عندهـ
-
addEvent("ClientMsg",true) addEventHandler("ClientMsg",getRootElement(), function ( Text,Line,Name ) if ( isElement ( sound ) ) then destroyElement( sound ) sound = nil end sound = playSound("son.mp3",true) guiSetText ( GUIEditor.memo[1], Name.." : ".. Text..'\n'..Line.." " ) setTimer ( function ( ) if isElement ( sound ) then destroyElement ( sound ) end end,1000,1) end ) بعد ثانية يسحب الصوت ~
-
تكتب بـسرعه؟ لانة المستحيل انة يكرر !
-
حياكـ الله .. : )
-
addEvent("ClientMsg",true) addEventHandler("ClientMsg",getRootElement(), function ( Text,Line,Name ) if ( isElement ( sound ) ) then destroyElement( sound ) sound = nil end sound = playSound("son.mp3",true) guiSetText ( GUIEditor.memo[1], Name.." : ".. Text..'\n'..Line.." " ) end ) مادري المفروض مايكرر بـ 'stopSound' -- function !! جربة كذآ عمومآ !
-
-- Client Side -- addEvent("ClientMsg",true) addEventHandler("ClientMsg",getRootElement(), function ( Text,Line,Name ) if ( isElement ( sound ) ) then stopSound ( sound ) end sound = playSound("son.mp3",true) guiSetText ( GUIEditor.memo[1], Name.." : ".. Text..'\n'..Line.." " ) end ) addEventHandler ( 'onClientGUIClick', root, function ( ) if source == GUIEditor.button[1] then local text = guiGetText ( GUIEditor.edit[1] ) local Text = guiGetText ( GUIEditor.memo[1] ) if text == "" or text == " " then return end triggerServerEvent("SendTheMsg",localPlayer,text,Text) end end ) -- Server Side -- addEvent("SendTheMsg",true) addEventHandler("SendTheMsg",getRootElement(), function ( Text , Line ) local player = getPlayerName(source) triggerClientEvent(root,"ClientMsg",root,Text,Line,player) end )
-
-- Client Side -- addEventHandler( "onClientResourceStart", resourceRoot, function( ) fadeCamera(false) showCursor(true) end ) addEventHandler("onClientPlayerWasted",localPlayer, function( ) fadeCamera(false) guiSetVisible(Serwi, not guiGetVisible(Serwi)) showCursor(guiGetVisible(Serwi)) showCursor(true) end ) -- Server Side -- function FZ () for _,player in pairs(getElementsByType("player")) do fadeCamera(player,false) end end addEventHandler ( "onResourceStart", resourceRoot, FZ ) الاخطاء : root = للكل التصحيح : resourceRoot = للمود نفسة اللي اشتغل للاعب : التصحيح localPlayer source "onResourceStart" source = المود اللي اشتغل !! نستخدم تيبل pairs getElementsByType loop Done! للي يموت ~
-
اطرح الحدث و الوظيفة 'ClientMsg'
-
حطة مع الحدث بالكلنت هذا : 'SendTheMsg' وخلية كذا : if ( isElement ( sound ) ) then stopSound ( sound ) end sound = playSound("son.mp3",true)
-
تسوي : --Server Side!! triggerClientEvent getRootElement() --Client Side !! playSound
-
triggerServerEvent ( "onLogin", getRootElement(), getLocalPlayer(), guiGetText(user_edit_l), guiGetText(pw_edit_l) ) Should Be : triggerServerEvent ( "onLogin", getLocalPlayer(), guiGetText(user_edit_l), guiGetText(pw_edit_l) )
-
clearChat = ? من كود اللي صححة لة عناد ~
-
No problem to know the function it's a 'server side' OR 'client side' You have to open the wiki page for example this page : setPedArmor It's 'server side' Read it on the right dxDrawText It's 'client side' Read it on the right as i said above .
-
Read castillo post : https://forum.multitheftauto.com/viewtopic.php?f=108&t=33905#p368737
-
You have to compile it : https://forum.multitheftauto.com/viewtopic.php?f=108&t=33905
-
تقدر تستخدم وظيفة : split string.byte مع فواصل بـ كل كلمة مثآل : Player = { } Words = { ["نشر"] = { "حياكم,سيرفري", }; }; addEventHandler ( "onPlayerChat",root, function ( msg, msgType ) for i, v in ipairs ( Words["نشر"] ) do local find = split(v,string.byte(',')) for i = 1, #find do if string.find ( msg, find[i] ) then cancelEvent ( ) clearChat ( source, "نشر" ) setPlayerMuted ( source, true ) return unMutePlayer ( source, 300000 ) end end end end )
-
it's a "client" script And you're script it would be better like that : addEventHandler("onClientResourceStart",resourceRoot, function ( ) txd = engineLoadTXD("Terrorist.txd") engineImportTXD(txd, 235) dff = engineLoadDFF("Terrorist.dff", 235) engineReplaceModel(dff, 235) end )
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=7076 https://community.multitheftauto.com/index.php?p=resources&s=details&id=7060 Stolen . DONE!
-
سطر 89 فية بق من المنتدى ~
-
تقدر تنسخها بس خلي الاخير بدون فاصلة "," و سوي الاغلاق بالاخير }
-
شف هذا مختصر و حط كلماتكـ بـ جدول وآحد و سوي وظيفة وحدهـ آفضل : local Words = { "حياكـم الله", "سيرفري" } addEventHandler("onPlayerChat",getRootElement(), function ( msg , type ) for _,v in ipairs ( Words ) do if ( string.find ( msg,v ) ) then cancelEvent ( true ) for i = 1,10 do outputChatBox(" ",getRootElement()) end outputChatBox("* تم مسح الشات تم العثور على كلمة غير مرغوب فيها !| مساعد الادمنية",getRootElement(),255,0,0) end end end ) يمسح الشات 10 مرآت ~
-
بالنسبة للشات تقدر تسوي مرة وحدهـ : for i = 1,count do ..