-
Posts
1,439 -
Joined
-
Last visited
-
Days Won
5
Everything posted by #Soking
-
اخوي ممكن طريقة تواصل اسويلك كل التبيه بدون ماتحط مواضيع ؟
-
addEvent('Create',true) addEvent('Delete',true) Object = { } addEventHandler('Create',root, function ( thePlayer ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', thePlayer ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( thePlayer ) , getElementDimension( thePlayer) , getElementPosition( thePlayer ) Object[thePlayer] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[thePlayer] , Interior ) setElementDimension( Object[thePlayer] , Dimension ) end ) addEventHandler('Delete',root, function ( thePlayer ) if ( isElement( Object[thePlayer] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", thePlayer, 255, 0, 0, true) destroyElement( Object[thePlayer] ) end ) ماجربته ~ ~ ~
-
string.format("%.2X%.2X%.2X%.2X" وش يسوي دا بالفنكشن حقك -_____-
-
-- Client Side local key = "o" --GUIEditor.window is deleted * bindKey( key,"down", function Show_Hide( ) guiSetVisible(GUIEditor.window[1] , not guiGetVisible( GUIEditor.window[1] ) ) showCursor( guiGetVisible( GUIEditor.window[1] ) ) end ) for id = 400, 611 do if getVehicleNameFromModel(id) ~= "" then local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 2, getVehicleNameFromModel(id), false, false) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, tostring(id), false, false) end end addEventHandler( 'onClientGUIClick', root, function() if (source == GUIEditor.gridlist[1]) then if id == -1 and idd then guiGridListSetSelectedItem( GUIEditor.gridlist[1], idd, 1) return false else idd = guiGridListGetSelectedItem( GUIEditor.gridlist[1]) end elseif (source == GUIEditor.button[1]) then triggerServerEvent("SpawnMyVehicle", localPlayer, ID) elseif (source == GUIEditor.button[2]) then triggerServerEvent("DestroyMyVehicle", localPlayer, ID) elseif (source == GUIEditor.button[5]) then triggerServerEvent( 'WVehicleToMe', localPlayer ) elseif (source == GUIEditor.button[4]) then triggerServerEvent( 'WMEToVehicle', localPlayer ) end end ) --Server Side addEvent('SpawnMyVehicle', true) addEventHandler( 'SpawnMyVehicle', root, function ( ID ) if isElement(vehicle[client]) then destroyElement(vehicle[client]) end local Player , SerialPlayer , x, y, z = getPlayerFromName( getPlayerName(client) ) , getPlayerSerial(client) , getElementPosition(client) vehicle[client] = createVehicle( getCarID, x + 2, y + 2, z + 1) setElementData(vehicle[client],'VehicleSerial',SerialPlayer) warpPedIntoVehicle ( client, vehicle[client] ) outputChatBox(getPlayerName(client)..'Welcome in Your Car ', client ,255,255,255,true ) end ) addEvent( 'DestroyMyVehicle', true ) addEventHandler( 'DestroyMyVehicle', root, function ( ) if not isElement(vehicle[client]) then destroyElement(vehicle[client]) end end ) Note : ماجربته , ومادري لو صح او غلط
-
وريني المود من جهة الـ Client Side
-
local name = getPlayerName(source) player_1 = getPlayerFromName(name) مافي داعي لـ هاذي الاكواد ليه حأطهم ؟
-
عندي طريقه اسهل لك سوي ايدت بوكس في الوحه و سوي لو ضغط على الجريد ليست يجيب المحدد بالقريد ويسوي guiSetText و يوم تضغط Button حقكك , سوي function () if ( guiGetText(yourText) == ' ' ) then -- your functions elseif ( guiGetText(yourText) == ' ' ) then end end ) فهمت ؟
-
function Function( Plr ) -- Your Functions end function addBindKey( ) for i,v in ipairs (getElementsByType("player")) do bindKey (v,"Key","down",Function) end end addEventHandler("onPlayerJoin",getRootElement( ),addBindKey ) addEventHandler("onClientResourceStart", resourceRoot,addBindKey )
-
Veh = { } bindKey("x","down", function ( ) if ( Veh[client] ) then destroyElement(Veh[client]) end local xPosition , yPosition , zPosition = getElementPosition ( client ) Veh[client] = createVehicle(id,xPosition+1 , yPosition+1 , zPosition,0,0,90) warpPedIntoVehicle(client,Veh[client]) end ) function Destory( ) if Vehcile[client] then destroyElement(Vehcile[client]) end end addEventHandler("onPlayerWasted",getRootElement( ), Destory ) addEventHandler("onPlayerQuit",getRootElement( ), Destory ) addEventHandler("onVehicleExplode",getRootElement( ), Destory )
-
Veh = { } bindKey("x","down", function ( ) if ( Veh[source] ) then destroyElement(Veh[source]) end local xPosition , yPosition , zPosition = getElementPosition ( source ) Veh[source] = createVehicle(id,xPosition+1 , yPosition+1 , zPosition,0,0,90) warpPedIntoVehicle(source,Veh[source]) end )
-
وش المختلف ؟ وش عدلت ؟ تراانت تدخل تنسخخخ , وتلصصق !!!!!!
-
ادخلو هنا https://wiki.multitheftauto.com/wiki/Main_Page تمام ؟ بتحصلو على اليسار Client Functions ادعسو عليها و روحو لـ 23 Ped functions بتحصل killPed وش معنها دي ؟ معنها ان الفنكشن يقبل كلينت
-
احد قالك انه سيرفر بس ؟ Shared function @
-
local key = "m" local screenW, screenH = guiGetScreenSize() Window = guiCreateWindow((screenW - 468) / 2, (screenH - 436) / 2, 468, 436, "xX[Police Panel | لوحة الشرطي]Xx", false) guiWindowSetSizable(Window, false) guiSetProperty(Window, "CaptionColour", "FF0012FE") guiSetVisible (Window,false) Button1 = guiCreateButton(274, 32, 172, 35, "xX[slap|سلاب]Xx", false, Window) guiSetProperty(Button1, "NormalTextColour", "FFC70009") Button2 = guiCreateButton(274, 101, 172, 35, "xX[Destroy Vehicle | سحب السيارة]Xx", false, Window) guiSetProperty(Button2, "NormalTextColour", "FFC70009") gridlist1 = guiCreateGridList(14, 27, 235, 389, false, Window) Column = guiGridListAddColumn(gridlist1, "Player", 0.9) changeGridListItemToPlayersName( gridlist1, Column ) Button3 = guiCreateButton(377, 358, 19, 16, "", false, gridlist1) Button4 = guiCreateButton(286, 381, 172, 35, "xX[Close Window|اغلاق النافذة]Xx", false, Window) guiSetProperty(Button4, "NormalTextColour", "FFC70009") bindKey(key,"down", function ( ) guiSetVisible(Window, not guiGetVisible(Window) ) showCursor( guiGetVisible(Window) ) end ) addEventHandler("onClientGUIClick",root, function () if ( source == Button4 ) then guiSetVisible(Window,false) showCursor(false) guiSetInputEnabled(false) elseif ( source == Button1 ) then killPed(localPlayer) end end ) changeGridListItemToPlayersName = function ( GridList, Column ) if ( GridList ) and ( Column ) and ( getElementType ( GridList ) == "gui-gridlist" ) and ( guiGridListClear ( GridList ) ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); end; end; end;
-
onResourceStop , وش علاقه بالاعب ؟ يالهي
-
addEventHandler("onPlayerLogin", root, function () showChat(source, false) end ) CommandT = { ['register'] = true; ['login'] = true; } addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if CommandT [ cmd ] then cancelEvent ( ); outputChatBox ("No Log or Register In F8"); end; end );
-
addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition(YourMarker) local x2, y2, z2 = getElementPosition(localPlayer) if ( isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true) ) then local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if( distance < 30 ) then dxDrawText("Text", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") dxDrawText("Text", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") end end end end )
-
Window = guiCreateWindow(144, 127, 457, 373, "#", false) guiWindowSetSizable(Window, false) guiSetVisible(Window ,false() Button1 = guiCreateButton(90, 203, 282, 53, "Send", false, Window) Checkbox1 = guiCreateCheckBox(90, 175, 237, 18, "Player", true, false, Window) Gridlist = guiCreateGridList(106, 52, 295, 108, false, Window) guiGridListAddColumn(Gridlist, "Message", 0.9) edit1 = guiCreateEdit(94, 263, 288, 41, "", false, Window) wnd2 = guiCreateWindow(209, 219, 336, 180, "info", false) guiWindowSetSizable(wnd2, false) guiSetVisible(wnd2 ,false) Button1 = guiCreateButton(71, 134, 197, 15, "Ok", false, wnd2) addCommandHandler ( "Tag", function ( ) guiSetVisible ( Window, not guiGetVisible( Window ) ) showCursor ( guiSetVisible(Window) ) end ) addEventHandler("onClientGUIClick", Button1, function() if ( Box == true ) then local Row , Text , Box = guiGridListAddRow( Gridlist ) , guiGetText( edit1 ) , guiCheckBoxGetSelected( Checkbox1 ) guiGridListSetItemText( Gridlist, Row, 1, Text, false, false ) guiGridListSetItemColor ( Gridlist, Row, 1, 255, 255, 0 ) end end , false )
-
local screenW, screenH = guiGetScreenSize() wnd = { } edit = { } GUIEditor = { button = {}, label = {} } wnd.give = guiCreateWindow((screenW - 373) / 2, (screenH - 189) / 2, 373, 189, "~# Give Level #~", false) guiWindowSetSizable(wnd.give, false) guiSetAlpha(wnd.give, 1.00) pList = guiCreateGridList(10, 22, 146, 157, false, wnd.give) guiGridListAddColumn(pList, "# Player Name", 0.9) GUIEditor.button[1] = guiCreateButton(251, 152, 112, 27, "~# Close #~", false, wnd.give) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(161, 28, 202, 15, "Player Level :", false, wnd.give) GUIEditor.button[2] = guiCreateButton(163, 54, 88, 24, "Set Level", false, wnd.give) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(161, 83, 196, 30, "#Arabic", false, wnd.give) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(161, 118, 196, 30, "#English", false, wnd.give) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") guiSetVisible(wnd.give,false) SetLevelWnd = guiCreateWindow((screenW - 286) / 2, (screenH - 134) / 2, 286, 134, "# Set Level", false) guiWindowSetSizable(SetLevelWnd, false) guiSetAlpha(SetLevelWnd, 1.00) edit.gv = guiCreateEdit(11, 37, 265, 33, "", false, SetLevelWnd) guiEditSetMaxLength(edit.gv, 65535) SetLevel = guiCreateButton(23, 87, 94, 32, "Set Level", false, SetLevelWnd) guiSetProperty(SetLevel, "NormalTextColour", "FFAAAAAA") SLClose = guiCreateButton(166, 87, 94, 32, "Close", false, SetLevelWnd) guiSetProperty(SLClose, "NormalTextColour", "FFAAAAAA") guiSetVisible(SetLevelWnd,false) bindKey ("n","down", function () triggerServerEvent ("checkMido",localPlayer) end ) addEvent ("mIDO",true) addEventHandler ("mIDO",root, function () guiSetVisible(wnd.give,not guiGetVisible(wnd.give)) showCursor(guiGetVisible(wnd.give)) guiSetInputEnabled (guiGetVisible(wnd.give)) end ) addEventHandler("onClientGUIClick",root, function ( ) if ( source == SLClose ) then guiSetVisible(SetLevelWnd,false) showCursor(false) guiSetInputEnabled(false) elseif ( source == GUIEditor.button[1] ) guiSetVisible(wnd.give,false) showCursor(false) guiSetInputEnabled(false) elseif ( source == GUIEditor.button[2] ) guiSetVisible(SetLevelWnd,true) guiSetVisible(wnd.give,false) guiSetInputEnabled(false) end end ) function Up ( ) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (pList) guiGridListClear(pList) guiGridListSetItemText (pList,rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,Up) addEventHandler ("onClientPlayerJoin",getRootElement( ),Up) addEventHandler ("onClientPlayerChangeNick",getRootElement( ),Up) addEventHandler ("onClientPlayerQuit",getRootElement( ),Up)
-
Tapleto-Host| Linux/Windows VPS - Game Servers - TeamSpeak
#Soking replied to TAPL's topic in الاستضافات
شركهه رأئعه , و محل ثقه و امان , انصح اي احد بده يسوي سيرفر , MTA او غيره , افضل شركه , تابليتو و فيها حمايه من الدوس , واصغر خطه , = خادم اكثر من رائع وشغال تمام كمان