-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
setElementData getElementData تسوي اذا دخل القيم ذا داتا للاعب ويوم يصير لة سباون يوم يموت تسوي تحقق انة معه الداتا حق اي ..
-
You mean you want to remove or stop the animation ?
-
تحقق داتا او اي شيء ذذ يوم يموت قبل السباون #
-
-- # Client Side : addEventHandler("onClientGUIClick",GUIEditor.button[4], function ( ) guiSetVisible (GUIEditor.progressbar[1], true) guiSetVisible (GUIEditor.gridlist[1], false) guiSetVisible (GUIEditor.gridlist[2], false) guiSetVisible (GUIEditor.gridlist[3], false) if isTimer ( Timer ) then return end LoadProgress ( ) end,false ) function LoadProgress ( ) Timer = setTimer ( function ( ) if isElement ( GUIEditor.progressbar[1] ) then local pro = guiProgressBarGetProgress(GUIEditor.progressbar[1]) guiProgressBarSetProgress(GUIEditor.progressbar[1],pro+10) if pro == 100 and isTimer ( Timer ) then guiSetVisible ( GUIEditor.progressbar[1],false ) killTimer ( Timer ) end end end,1000,0) end
-
You're not make any sense use : guiSetVisible guiGetVisible showCursor bindKey
-
المفروض انت مسوي سباون ولا ؟ .. اذا ماسويت : spawnPlayer
-
is that so hard to understand what i said above ? After create the gui window .. button .. label ..etc Convert them to relative on the gui editor options .
-
onPlayerJoin fadeCamera
-
يعني تاخذ مكان شيء لانة فية بارتمنت قبل الاكاونت ذذ _,account
-
You're not make any sense .
-
عارف بس صلحتة بـ زر لا اكثر
-
No one will script that for you , You have to learn or search on the community .
-
You're welcome .
-
بسم الله الرحمن الرحيم السلام عليكم و رحمة الله وبركاتة ( Parameters ) ماهو الـ : Parameters Parameters : هي عدهـ اشياء مرتبطة بـ الحدث آمثلة : الحدث ( onPlayerLogin ) : البارتمنت الثاني هو اللي سججل فية الاعب الحساب دخوله .. : addEventHandler("onPlayerLogin",root, function ( _,account ) if getAccountName ( account ) == "Prestege" then outputChatBox("* Prestege Logged in",root) end end ) الوظيفة : getAccountName تتطلب وظيفة : Account Player = getPlayerAccount و بـ الحدث عند تسجيل دخول الاعب الحساب معرف الحساب اللي توهـ سجل دخوله فية .. طبعا من الويكي : theCurrentAccount: The account the player logged into just now مثآل آخر : الحدث ( onPlayerDamage ) : addEventHandler("onPlayerDamage",root, function ( attacker ) if ( attacker and attacker ~= source and getElementType ( attacker ) == "player" ) then takePlayerMoney ( attacker , math.random ( 100,50000 ) ) end end ) نشوف فـ الحدث عندنا بارتمنت الـ ( attacker ) : الـ attacker = ? وش هو اصلا ? الاتاكر هو اللي هاجم اللاعب .. من الويكي : attacker: A player element representing the player who was the attacker. If there was no attacker this returns false. و طبعا هذي مجرد امثلة بسيطة ! لـ التوضيح فقط لاني اشوف الناس الصراحة بعضها ماهي عارفة البارتمنت وش هو تنبية : شرط اساسي فتح صفحة الويكي .. :') تنبية : ماهو لازم يكون نفس الاسم اللي بالويكي مجرد الترتيب هو المهم .. إن أصبت فمن الله وإن أخطأت فمن نفسي والشيطان
-
I've tested it right now and everything fine .
-
-- # Client Side ! addEventHandler("onClientResourceStart",resourceRoot, function ( ) guiCreateLabel(0.02,0.04,0.94,0.2, "Press ACCEPT to work as Police Officer, press CANCEL to leave this window", true, PoliceJobChooseTab) PoliceJobWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Police Job", true ) guiSetVisible ( PoliceJobWindow,false ) PoliceJobTabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, PoliceJobWindow ) PoliceJobChooseTab = guiCreateTab ( "Accept/Cancel", PoliceJobTabPanel) guiCreateLabel(0.02,0.04,0.94,0.2, "Press ACCEPT to work as Police Officer, press CANCEL to leave this window", true, PoliceJobChooseTab) end ) addEvent("policejobwindow",true) addEventHandler("policejobwindow",root, function ( ) guiSetVisible ( PoliceJobWindow,true ) showCursor ( true ) end ) -- Server Side ! local PoliceJobMarker = createMarker(1552.7, -1673.6, 16.2, "cylinder", 1.5, 0, 0, 255) function policejob (theMarker) if ( theMarker == PoliceJobMarker) then triggerClientEvent ( source,"policejobwindow", source) end end addEventHandler ( "onPlayerMarkerHit", root, policejob ) Try it .
-
Run it as an administrator and try .
-
ماتحس القسم خطأ ذذ getElementPosition -- Marker getWorldFromScreenPosition getCameraMatrix getDistanceBetweenPoints3D dxDrawText setElementInterior
-
اي في احداثيات معينة يشتغل .. : )
-
اي بالضبط المتغير اجباري لانك تسوي تحقق انة مايكرر ذذ
-
انا ذا مسوية يوم يلمس الماركر تايمر ترايقر يشغل الصوت ويوم يلمس ماركر الخروج تايمر يسحب الصوت : playSound isElement destroyElement or stopSound
-
تراهـ سهل ماهو صعب ..
