-
Posts
1,862 -
Joined
-
Days Won
8
Everything posted by Rockyz
-
Delete This Too : https://community.multitheftauto.com/index.php?p=resources&s=details&id=14678
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=14677 Delete DONE
-
اوه صح مانتبهت نسخت الكود من عنده ولا عدلت خخخ نسيت تقولي اغير سطر 19 التعريف الكود يصير كذا : -- #Client Side : gridList = grid -- اسم القريد ليست حقك buttonz = btn -- اسم الزر حقك addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) Refresh ( ) end ) function Refresh ( ) guiGridListClear ( gridList ) for i, v in ipairs ( getElementsByType ( 'player' ) ) do local Row = guiGridListAddRow ( gridList ) guiGridListSetItemText ( gridList, Row, 1, tostring ( getPlayerName ( v ) ), false, false ) guiGridListSetItemColor ( gridList, Row, 1, 0, 255, 0 ) end end addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == buttonz ) then local sel = guiGridListGetSelectedItem ( gridList ) if ( sel ~= -1 ) then local text = guiGridListGetItemText ( gridList, sel, 1 ) guiSetEnabled ( buttonz, false ) setTimer ( guiSetEnabled, 1000, 1, buttonz, true ) triggerServerEvent ( "killPlayer", getPlayerFromName ( text ), localPlayer ) else outputChatBox ( "Please Choose Player To Kill it", 255, 0, 0, true ) end end end ) -- #Server Side : addEvent ( "killPlayer", true ) addEventHandler ( "killPlayer", root, function ( plrkilled ) outputChatBox ( 'The Player ' .. getPlayerName ( plrkilled ) .. ' Has Killed You', 255, 0, 0, true ) killPed ( source ) end )
-
مثال : addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == button ) then outputChatBox ( 'Congs you Pressed The Button', 0, 255, 0, true ) end end )
-
text = التعريف بالنسبة الى اكوادك تصير كذا : -- #Client Side : gridList = grid -- اسم القريد ليست حقك buttonz = btn -- اسم الزر حقك addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) Refresh ( ) end ) function Refresh ( ) guiGridListClear ( gridList ) for i, v in ipairs ( getElementsByType ( 'player' ) ) do local Row = guiGridListAddRow ( gridList ) guiGridListSetItemText ( gridList, Row, 1, tostring ( getPlayerName ( v ) ), false, false ) guiGridListSetItemColor ( gridList, Row, 1, 0, 255, 0 ) end end addEventHandler ( "onClientGUIClick", root, function ( ) elseif ( source == btn ) then local sel = guiGridListGetSelectedItem ( gridList ) if ( sel ~= -1 ) then local text = guiGridListGetItemText ( gridList, sel, 1 ) guiSetEnabled ( btn, false ) setTimer ( guiSetEnabled, 1000, 1, btn, true ) triggerServerEvent ( "killPlayer", getPlayerFromName ( text ), localPlayer ) else outputChatBox ( "Please Choose Player To Kill it", 255, 0, 0, true ) end end ) -- #Server Side : addEvent ( "killPlayer", true ) addEventHandler ( "killPlayer", root, function ( plrkilled ) outputChatBox ( 'The Player ' .. getPlayerName ( plrkilled ) .. ' Has Killed You', 255, 0, 0, true ) killPed ( source ) end )
-
^ local text = guiGridListGetItemText(grid,sel,1) triggerServerEvent("killPlayer",localPlayer,text)
-
لا انت بس عدل عليها كانها لوحة كانك تشتغل عليها من قبل
-
اول شي افتح الوحة وشغل الجوي اديتور واضغط كلك يمين ع الوحة وسو load gui شي زي كذا نسيت المهم وعدل ع الوحة
-
كأنك تستخرج لوحة جديدة من الجوي اديتور output
-
xxxx 'onMarkerHit' getResourceFromName stopResource startResource
-
انا عطيته طريقة بس هو اذا يبي يستخدمها بكيفه
-
^ addEvent ( "ree", true ) addEventHandler ( "ree", root,function ( ) redirectPlayer ( source, '46.105.250.205', 25011 ); end );
-
^ function setSerialData(serial,key,value) if( value and type(serial) == "string") then setElementData(root,serial.."&"..key,value) end end function getSerialData(serial,key) if ( key and type(serial) == "string") then value = getElementData(root,serial.."&"..key) end return value end
-
انا مافهمت وش تبي تسوي
-
انت موفاهمني وين فنكشن LVL1F في الاكواد