Jump to content

إستفسآر


z24d

Recommended Posts

Posted

السلآم عليكم

عندي استفسآر

الحين مثلآ هذي الدرو

dxDrawText("#Admin #CC0000[ ".. msg[2] .." #CC0000] : #FFFFFF"..msg[1], screenW * 0.0203, screenH * 0.3281, screenW * 0.3531, screenH * 0.3646, tocolor(r, g, b), 1, "default-bold", "left", "top", true, true, false, true, false) 

ابي ال r,g,b

يشتغل علا

msg[1]

شلون ؟

i_32f18af6671.jpg

لا اله الا انت سبحانك اني كنت من الظالمين..#

Name: #Monster , #Master

Skype : fcbmjnon

Posted

خلاص حليت المشكلة طيب هذا التايمر يكرر ماهو يسوي الشيء بعد ثانيتين

    setTimer(setElementData, 2000, 1, root, "adminMSG", nil ) 
    setTimer(playSoundFrontEnd,2000,1,root,6) 

i_32f18af6671.jpg

لا اله الا انت سبحانك اني كنت من الظالمين..#

Name: #Monster , #Master

Skype : fcbmjnon

Posted

الصوت يكرر والله

i_32f18af6671.jpg

لا اله الا انت سبحانك اني كنت من الظالمين..#

Name: #Monster , #Master

Skype : fcbmjnon

Posted (edited)
local screenW, screenH = guiGetScreenSize() 
addEventHandler("onClientRender", root, 
function() 
--:: 
  --:: 
   --:: 
        dxDrawText("#Admin #CC0000[ ".. msg[2] .." #CC0000] : #FFFFFF"..msg[1], screenW * 0.0203, screenH * 0.3281, screenW * 0.3531, screenH * 0.3646, tocolor(r, g, b), 1, "default-bold", "left", "top", true, true, false, true, false) 
        if string.find(msg[1],"مسح") then 
        triggerServerEvent("Deleteit",localPlayer) 
        end 
    end 
end) 
  
--سيرفر 
addEvent("Deleteit",true) 
addEventHandler("Deleteit", root, 
function() 
     setTimer(setElementData, 2000, 1, root, "adminMSG", nil ) 
    outputChatBox( "#FFFF06Please wait 2 Seconds !!",source, 255, 255, 255, true ) 
    end) 
  

Edited by Guest

i_32f18af6671.jpg

لا اله الا انت سبحانك اني كنت من الظالمين..#

Name: #Monster , #Master

Skype : fcbmjnon

Posted

هذا الكود مشكلته يكرر الرسالة بالشاتت

i_32f18af6671.jpg

لا اله الا انت سبحانك اني كنت من الظالمين..#

Name: #Monster , #Master

Skype : fcbmjnon

Posted

ممكن تشرحلي ليش؟

i_32f18af6671.jpg

لا اله الا انت سبحانك اني كنت من الظالمين..#

Name: #Monster , #Master

Skype : fcbmjnon

Posted

الـ trigger

مع حدث onClientRender

راح يظل يتكرر لانه كل شوي يرسل الـ trigger

استخدمة مع حدث آخر شوف الاحداث اللي عندك والمناسبة للوظيفة واستخدمه

Posted
function() 
        if string.find(msg[1],"مسح") then 
        triggerServerEvent("Deleteit",localPlayer) 
        end 
    end 

ماضبط؟

i_32f18af6671.jpg

لا اله الا انت سبحانك اني كنت من الظالمين..#

Name: #Monster , #Master

Skype : fcbmjnon

Posted

مو امر ولا زر نفس العاجل بس اذا شاف الكلام الي كاتبه مسح

يسوي تريقر للسيرفر ويمسح هي ضبطت لكن تتكرر اما الكود الي حطيته ماضضبط فيه

i_32f18af6671.jpg

لا اله الا انت سبحانك اني كنت من الظالمين..#

Name: #Monster , #Master

Skype : fcbmjnon

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...