Jump to content

طلب كود


Recommended Posts

Posted

اممم

اولاً

سلام عليكم

ثانياً

استعمل

  

في الاكواد

ثالثاً

الكود الصحيح

  
local marker1 = createMarker(1554.21118,-1675.60803,15.19531,"cylinder",2,0,0,255) 
  
GUIEditor = { 
button = {}, 
window = {} 
} 
GUIEditor.window[1] = guiCreateWindow(271, 103, 518, 319, "Police Job", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
GUIEditor.button[1] = guiCreateButton(9, 267, 143, 42, "Accept", false, GUIEditor.window[1]) 
GUIEditor.button[2] = guiCreateButton(369, 263, 139, 46, "Exit", false, GUIEditor.window[1]) 
function Police2 () 
guiSetVisible(GUIEditor.window[1],true) 
setElementFrozen(player, true)   
end 
addEventHandler("onClientMarkerHit",marker1,Police2) 
  

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted (edited)

واي فاي كودك غلط

اولاً البلاير مو معرف

ثانياً ماتحققت ان الي دخل الماركر لاعب

تفضل ياصاحب الموضوع , حطه من جانب كلينت

local marker = createMarker ( x, y, z, "type", size, r, g, b, alpha ) 
  
addEventHandler ( "onClientMarkerHit", resourceRoot, 
function ( player ) 
    if ( player == localPlayer ) then 
        if ( source == marker ) and ( getElementType ( player ) == "player" ) then 
            setElementFrozen ( player, true ) 
        end 
    end 
end ) 

x, y, z = احداثيات الماركر

type = نوع الماركر

size = حجم الماركر

r, g, b = الوان الماركر

alpha = شفافية الماركر

Ex.

createMarker ( 931.78, 1564.12, 16.96, "cylinder", 2, 255, 0, 255, 0 ) 
Edited by Guest

* There is no God but Allah, Mohammed is the Messenger Of Allah

Posted
واي فاي كودك غلط

اولاً البلاير مو معرف

ثانياً ماتحققت ان الي دخل الماركر لاعب

تفضل ياصاحب الموضوع , حطه من جانب كلينت

local marker = createMarker ( x, y, z, "type", size, r, g, b, alpha ) 
  
addEventHandler ( "onClientGUIClick", resourceRoot, 
function ( player ) 
    if ( source == marker ) and ( getElementType ( player ) ) then 
        setElementFrozen ( player, true )  
    end 
end ) 

x, y, z = احداثيات الماركر

type = نوع الماركر

size = حجم الماركر

r, g, b = الوان الماركر

alpha = شفافية الماركر

Ex.

createMarker ( 931.78, 1564.12, 16.96, "cylinder", 2, 255, 0, 255, 0 ) 

عندكـ خطأ بسـيط في الحـدث والتـحقق:

addEventHandler ( 'onClientMarkerHit', resourceRoot, 
function ( player ) 
    if (source == marker and getElementType (player) == 'player' and player == localPlayer) then 
        setElementFrozen (player, true) 
    end 
end) 

"A Year from Now You May Wish You Had Started Today"

Posted
واي فاي كودك غلط

اولاً البلاير مو معرف

ثانياً ماتحققت ان الي دخل الماركر لاعب

تفضل ياصاحب الموضوع , حطه من جانب كلينت

local marker = createMarker ( x, y, z, "type", size, r, g, b, alpha ) 
  
addEventHandler ( "onClientGUIClick", resourceRoot, 
function ( player ) 
    if ( source == marker ) and ( getElementType ( player ) ) then 
        setElementFrozen ( player, true )  
    end 
end ) 

x, y, z = احداثيات الماركر

type = نوع الماركر

size = حجم الماركر

r, g, b = الوان الماركر

alpha = شفافية الماركر

Ex.

createMarker ( 931.78, 1564.12, 16.96, "cylinder", 2, 255, 0, 255, 0 ) 

عندكـ خطأ بسـيط في الحـدث والتـحقق:

addEventHandler ( 'onClientMarkerHit', resourceRoot, 
function ( player ) 
    if (source == marker and getElementType (player) == 'player' and player == localPlayer) then 
        setElementFrozen (player, true) 
    end 
end) 

الكود مايبيله شي ,

خخخخ الحدث نسخته ونسيت اعدله , ماني فاضي اكتبه

مشكور

* There is no God but Allah, Mohammed is the Messenger Of Allah

Posted

عندكـ خطأ بسـيط في الحـدث والتـحقق:

addEventHandler ( 'onClientMarkerHit', resourceRoot, 
function ( player ) 
    if (source == marker and getElementType (player) == 'player' and player == localPlayer) then 
        setElementFrozen (player, true) 
    end 
end) 

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

Sha67 سابقاً

Posted

عندكـ خطأ بسـيط في الحـدث والتـحقق:

addEventHandler ( 'onClientMarkerHit', resourceRoot, 
function ( player ) 
    if (source == marker and getElementType (player) == 'player' and player == localPlayer) then 
        setElementFrozen (player, true) 
    end 
end) 

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

. ايه أدري ولاكن حطـيتها لزيـادة التحـقق من الالمـنت الـي دخـل

"A Year from Now You May Wish You Had Started Today"

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