Jump to content

XxX|مساعدة في مود الجيم|XxX


Doffy

Recommended Posts

1 minute ago, #_iMr.[E]coo said:

getElementModel

 

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

7 minutes ago, #_iMr.[E]coo said:

getElementModel

 

محاولتي

marker1 = createMarker(768.55798,8.74740,1000.70984-1,'cylinder',1.3,2,12,255,100)
setElementInterior (marker1,5)
function marker(player)
if ( getElementModel( player,0 ) then
    if getElementType(player) == "player" and player == localPlayer then
            guiSetVisible(GUIEditor.window[1], true)
            showCursor(true)
             guiSetInputEnabled(true)
        end
  end
end
end
addEventHandler("onClientMarkerHit", marker1, marker)

 

getElementModel عرفت اخليها تفتح بس بشخصية اول ما احط   ما تشتغل

Link to comment
Just now, a7zan said:

if ( getElementModel(player) == 0 ) then

 

لحظة اجرب

اشتغل بس ابي يجبله رسالة في البار شات لو ما معه سي جي ومو نافع وانا مشغل البار شات بس مو نافع مدري ليه
 

marker1 = createMarker(768.55798,8.74740,1000.70984-1,'cylinder',1.3,2,12,255,100)
setElementInterior (marker1,5)
function marker(player)
if ( getElementModel(player) == 0 ) then
    if getElementType(player) == "player" and player == localPlayer then
            guiSetVisible(GUIEditor.window[1], true)
            showCursor(true)
             guiSetInputEnabled(true)
			 else
			 exports["TopBarChat"]:sendClientMessage ("#FF0000 You Need Cj Skin To Buy This Stat",255,255,255,true )
        end
  end
end
addEventHandler("onClientMarkerHit", marker1, marker)

 

Link to comment
4 hours ago, KinG_Himoo12 said:

لحظة اجرب

اشتغل بس ابي يجبله رسالة في البار شات لو ما معه سي جي ومو نافع وانا مشغل البار شات بس مو نافع مدري ليه
 


marker1 = createMarker(768.55798,8.74740,1000.70984-1,'cylinder',1.3,2,12,255,100)
setElementInterior (marker1,5)
function marker(player)
if ( getElementModel(player) == 0 ) then
    if getElementType(player) == "player" and player == localPlayer then
            guiSetVisible(GUIEditor.window[1], true)
            showCursor(true)
             guiSetInputEnabled(true)
			 else
			 exports["TopBarChat"]:sendClientMessage ("#FF0000 You Need Cj Skin To Buy This Stat",255,255,255,true )
        end
  end
end
addEventHandler("onClientMarkerHit", marker1, marker)

 

 

استخدم 

marker1 = createMarker(768.55798,8.74740,1000.70984-1,'cylinder',1.3,2,12,255,100)
setElementInterior (marker1,5)
function marker(player)
if ( getElementModel(player) == 0 ) then
    if getElementType(player) == "player" and player == localPlayer then
            guiSetVisible(GUIEditor.window[1], true)
            showCursor(true)
             guiSetInputEnabled(true)
			 else
			 exports["TopBarChat"]:sendClientMessage (player,"#FF0000 You Need Cj Skin To Buy This Stat",255,255,255,true )
        end
  end
end
addEventHandler("onClientMarkerHit", marker1, marker)

 

Link to comment
34 minutes ago, DmAr511 said:

 

استخدم 


marker1 = createMarker(768.55798,8.74740,1000.70984-1,'cylinder',1.3,2,12,255,100)setElementInterior (marker1,5)function marker(player)if ( getElementModel(player) == 0 ) then    if getElementType(player) == "player" and player == localPlayer then            guiSetVisible(GUIEditor.window[1], true)            showCursor(true)             guiSetInputEnabled(true)			 else			 exports["TopBarChat"]:sendClientMessage (player,"#FF0000 You Need Cj Skin To Buy This Stat",255,255,255,true )        end  endendaddEventHandler("onClientMarkerHit", marker1, marker)

 

:/ ما نفع

Link to comment

الخطأ من اسم المود هنا

 exports["TopBarChat"]:sendClientMessage (player,"#FF0000 You Need Cj Skin To Buy This Stat",255,255,255,true )

لغة lua

لغة Case Sensitive

local ae = "a"
local Ae = "A2"
outputChatBox(ae) -- a
outputChatBox(Ae) -- A2

الحل :

 exports["topbarchat"]:sendClientMessage ("#FF0000 You Need Cj Skin To Buy This Stat",255,255,255,true )

قلي لو أشتغل

Edited by _Kinan
Link to comment
20 hours ago, DmAr511 said:

 

استخدم 


marker1 = createMarker(768.55798,8.74740,1000.70984-1,'cylinder',1.3,2,12,255,100)
setElementInterior (marker1,5)
function marker(player)
if ( getElementModel(player) == 0 ) then
    if getElementType(player) == "player" and player == localPlayer then
            guiSetVisible(GUIEditor.window[1], true)
            showCursor(true)
             guiSetInputEnabled(true)
			 else
			 exports["TopBarChat"]:sendClientMessage (player,"#FF0000 You Need Cj Skin To Buy This Stat",255,255,255,true )
        end
  end
end
addEventHandler("onClientMarkerHit", marker1, marker)

 

انت مسوي 

else

من التحقق حق الامنت و التحقق حق 

localPlayer == player

و المفروض تحقق الشخصيه اخر شي قبل تنفيذ الاكواد 

ولازم تتحقق ان الاعب في العالم رقم ٥ لان لو لمس المركر

لان المركرات بالكلينت لو كانت بديمشن او عالم ثاني او لو انت مريت من تحت المركر بيتنفذ حدث لمس المركر

الافضل

تسويها في ملف سيرفر

و تسوي تريقر 

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