Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. لولا الله ثم هو ! ترا فيها شرك اصغر لو ؟ ومو لولآ ذذ ومآودنآ نفتح نقاشات و كلن يحكي من عندهـ
  2. 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 ) بعد ثانية يسحب الصوت ~
  3. تكتب بـسرعه؟ لانة المستحيل انة يكرر !
  4. 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 !! جربة كذآ عمومآ !
  5. كل شيء تمآم الان؟
  6. -- 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 )
  7. -- 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! للي يموت ~
  8. اطرح الحدث و الوظيفة 'ClientMsg'
  9. حطة مع الحدث بالكلنت هذا : 'SendTheMsg' وخلية كذا : if ( isElement ( sound ) ) then stopSound ( sound ) end sound = playSound("son.mp3",true)
  10. تسوي : --Server Side!! triggerClientEvent getRootElement() --Client Side !! playSound
  11. 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) )
  12. clearChat = ? من كود اللي صححة لة عناد ~
  13. 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 .
  14. Read castillo post : https://forum.multitheftauto.com/viewtopic.php?f=108&t=33905#p368737
  15. You have to compile it : https://forum.multitheftauto.com/viewtopic.php?f=108&t=33905
  16. تقدر تستخدم وظيفة : 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 )
  17. 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 )
  18. 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!
  19. سطر 89 فية بق من المنتدى ~
  20. تقدر تنسخها بس خلي الاخير بدون فاصلة "," و سوي الاغلاق بالاخير }
  21. شف هذا مختصر و حط كلماتكـ بـ جدول وآحد و سوي وظيفة وحدهـ آفضل : 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 مرآت ~
  22. بالنسبة للشات تقدر تسوي مرة وحدهـ : for i = 1,count do ..
×
×
  • Create New...