Leaderboard
Popular Content
Showing content with the highest reputation on 28/05/18 in all areas
-
4 points
-
لا حول ولا قوه الي بلله :- صعبه للدرجه دي ؟؟؟؟ bindKey("mouse2", "down", function() -- your code end ) bindKey("mouse2", "up", function() -- your code end )3 points
-
2 points
-
Hello everyone. About 3 years ago I have worked on some project and got experiments on skin morphing. The video below shows some results in that: MTA gives all opportunities for creating a morphing for a face, body or something else. I hope in the future someone makes a full-customizable character.1 point
-
بسم الله الرحمن الرحيم اليوم جايبلكم موضوع عن افتتاح سيرفري رعب للزومبي تنورونا وتشرفونا بأي وقت الأدارة : Me Oliver GE3FR _______________________________________________ بعض السكربتات بالسيرفر : F1 F2 : F3 : F4 : F5 : مهمة حماية البيت : Weapons Shop : نظام الوقود : Vehicle Shop : والباقي اكتشفوه بنفسكم الايبي : mtasa://185.232.64.191:27715 ويلا مع السلامة1 point
-
A função tá dentro do loop function chatadminbyjonas ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do outputChatBox ( "#FF0000[ADM] #FFFFFF".. getPlayerName ( thePlayer ) .." : #FF0000".. message, player, 255, 255, 255, true ) end outputServerLog("ADMCHAT: " .. getPlayerName(thePlayer) .. " : " .. message) -- ENVIA LOG'S PARA O CONSOLE E NOS ARQUIVOS DE TEXTO ! else outputChatBox ( "#FF0000[ERRO] - #FFFFFFVocê não é um administrador !", thePlayer, 255, 255, 255, true ) end end addCommandHandler("adminchat", chatadminbyjonas)1 point
-
Você não vai conseguir usar um elemento aonde deve ser string. outputServerLog("ADMCHAT: " .. getPlayerName(thePlayer) .. " : " .. message)1 point
-
حبيبي وليش نتعب حالنا ونتكلم عن الفنكشنات احن اجل ؟ خلاص ساعدهم انت تركنا لك انت كل شي خليهم م يحاولو ولا يتعلمو كذا يتعودو علي الاكواد الجاهزة1 point
-
تقدر إنك تسوي مود لوحة , وهذي اللوحة فيها 2 إيدت بوكس وزرين , زر اغلاق , و زر اعطاء تاج الفكرة هي انك تكتب بالايدت الاول إسم حساب هذا الشخص , والايدت الثاني تكتب التاج الي تبي تحطه له وتضغط اعطاء تاج الفكرة كما تلاحظ , تعتمد ع الاكاونت داتا , رح تستعمل هذي الاكواد فقط . setAccountData getAccountData getAccount guiGetText triggerServerEvent "onPlayerChat" واذا تبي بسويه لك , بشكل مدفوع.1 point
-
بكود الانتقال , حط هذا السطر فيه fadeCamera ( source, false, 1.0, 255, 0, 0 ) player = source; setTimer(EndTheFadeCamera,1600,1) وبعدين حط هذا الفنكشن بمكان ثاني بلمود بنفس الملف function EndToFadeCamera(player) if (isElement(player)) then fadeCamera(player, true, 0.5) end end - Server Side1 point
-
1 point
-
وش قصدك باللوحه السوداء ؟ اذا قصدك الشاشه تصير سودا و بعدين ترجع تاني استخدم fadeCamera1 point
-
1 point
-
1 point
-
انا ما كتبتها لهيك انا كتبتها بسبب ان في ناس تساعد غلط مثال : @ivor وش دخل onPlayerClick بالموضوع1 point
-
You can't use engineImportTXD as this function takes a model ID as an argument and paintjobs are not models. You have to use a shader to replace paintjob textures.1 point
-
Use isLineOfSightClear; first set of coordinates would be the vehicle and the second would be z+100 as in your code. You may also have to disable vehicle check.1 point
-
1 point
-
addEventHandler("onPlayerClick", root, function( click ) if click == "mouse1" then setGameSpeed( tonumber( 10 ) ) else setGameSpeed( tonumber( 1.4 ) ) end end ) ????????????????1 point
-
استخدم ذول -------------ServerSide---------------- OnPlayerClick ------------Shared Function----------- setGameSpeed1 point
-
AddEventHandler é uma função que será chamada quando o evento anexado a ela for ativado. Existem vários eventos diferentes que são ativados em diferentes circunstâncias, é impossível citar todos. Mas darei alguns exemplos pra facilitar. Usando o evento onPlayerWasted anexado ao addEventHandler, fará com que a função anexada a ele seja executada quando um jogador morre. function faleceu (totalAmmo, killer, weapon, bodypart, stealth) -- variáveis pré-definidas, se não for usar nenhuma delas, não precisa declará-las. -- No evento "onPlayerWasted" temos pré-definidas estas variáveis: -- source = jogador que morreu (elemento) -- totalAmmo = munição que o jogador que morreu tinha (número inteiro) -- killer = jogador ou veículo que matou ele (elemento) -- weapon = ID da arma do killer (número inteiro) -- bodypart = parte do corpo que foi atacada (número inteiro) -- stealth = se morreu direto por um golpe fatal ou se morreu por dano normal. (true ou false) local nome = getPlayerName (source) -- nome = nick do jogador que morreu. outputChatBox (nome.."#FFFFFF morreu.", root, 255, 255, 255, true) -- Envia no chat para todos, o nome do jogador que morreu. (root = todo mundo.) end addEventHandler ("onPlayerWasted", getRootElement(), faleceu) -- Executa a função "faleceu", quando qualquer jogador morrer. Usando este outro evento onVehicleEnter, fará com que a função anexada a ele seja executada quando um jogador entrar em um veículo. function entrouVeiculo (thePlayer, seat, jacked) -- source = o veículo que o jogador entrou. (elemento) -- thePlayer = o jogador que entrou no veículo. (elemento) -- seat = o ID do assento em que o jogador sentou no veículo (número inteiro) -- jacked = se o jogador entrou no veículo roubando de outro player ou não. (true ou false) local nomeVeiculo = getVehicleName (source) -- nomeVeiculo = nome do veiculo que o jogador entrou. if jacked and seat == 0 then -- Se foi roubado e o assento for do motorista, então: outputChatBox ("Você roubou um "..nomeVeiculo, thePlayer, 255, 255, 0, false) else -- Se entrou no veículo sem roubar, então: outputChatBox ("Você entrou em um #00FF00"..nomeVeiculo, thePlayer, 255, 255, 255, true) end end addEventHandler ("onVehicleEnter", getRootElement(), entrouVeiculo) -- Chama essa função quando qualquer jogador entrar em um veículo. Esses eventos acima só funcionam server-side, assim como está dito na Wiki. Já esta outra função aqui, só funciona client-side. É um evento que executa a função anexada a cada frame que passou. function textoNaTela () -- Não existem parâmetros para o onClientRender. dxDrawText ("TEXTO RENDERIZADO.", 5, 5) -- Mostra este texto durante 1 frame na sua tela. end addEventHandler ("onClientRender", getRootElement(), textoNaTela) -- Executa isso em cada frame. Fazendo com que o texto permaneça na tela. Para remover um evento ativador, use removeEventHandler. Assim como o removeCommandHandler faz com que um comando pare de ativar determinada função. Usando o removeEventHandler, fará o onClientRender parar de ativar a cada frame. Assim como diz o exemplo da Wiki.1 point
-
للمعلومة مرة اخري ^ اي احد ينتقد السيرفر بتركه يتكلم بكيفه وما برد عليه1 point
-
1 point
-
Remova a linha: if ( isPlayerOnGroup ( player ) ) then Essa função verifica se o jogador é um Staff.1 point
-
والله انا ما انكر انك مبرمج فنان ما شاء الله عليك و تقدر تسويه و تسوي احسن منه لكن انا قلت الي شفته ما اقصد اقلل منك و كل المودات الي بالسيرفر شيء خورافي و فنان و ادري انك انت الي مسويه meta انا شفته اسمه في ملف مدري عاد انت ولا مش انت مع العلم اني انا كنت كاتب اسمك و عدلته و كل الاحترام1 point
-
local player = getLocalPlayer () GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } function Panel() name = guiCreateWindow(856, 143, 264, 388, "Walking Style", false) guiWindowSetSizable(name, false) local label = guiCreateLabel(6, 1, 254, 15, "", false, GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(28, 44, 209, 308, false, GUIEditor.window[1]) local Default = guiCreateButton(10, 14, 189, 30, "Default", false, GUIEditor.gridlist[1]) local Drunk = guiCreateButton(10, 54, 189, 30, "Drunk Man", false, GUIEditor.gridlist[1]) local Sneak = guiCreateButton(10, 94, 189, 30, "Sneaking", false, GUIEditor.gridlist[1]) local Blind = guiCreateButton(10, 134, 189, 30, "Blind Man", false, GUIEditor.gridlist[1]) local Gangstar = guiCreateButton(10, 174, 189, 30, "Gangstar", false, GUIEditor.gridlist[1]) local Sexy = guiCreateButton(10, 214, 189, 30, "Sexy", false, GUIEditor.gridlist[1]) local fat = guiCreateButton(10, 254, 189, 30, "Fat man", false, GUIEditor.gridlist[1]) local Close = guiCreateButton(104, 357, 58, 17, "Done", false, GUIEditor.window[1]) showCursor ( true ) end addCommandHandler("ws", panel) function Reset() setPedWalkingStyle ( player, 0 ) end function Drunk() setPedWalkingStyle ( player, 126 ) end function Sneak() setPedWalkingStyle ( player, 69 ) end function Blind() setPedWalkingStyle ( player, 127 ) end function Gangstar() setPedWalkingStyle ( player, 121 ) end function Sexy() setPedWalkingStyle ( player, 132 ) end function Fat() setPedWalkingStyle ( player, 124 ) end function Close() guiSetVisible ( name, false ) showCursor ( false ) end addEventHandler ( "onClientGUIClick", Default, Reset, false ) addEventHandler ( "onClientGUIClick", Drunk, Drunk, false ) addEventHandler ( "onClientGUIClick", Sneak, Sneak, false ) addEventHandler ( "onClientGUIClick", Blind, Blind, false ) addEventHandler ( "onClientGUIClick", Gangstar, Gangstar, false ) addEventHandler ( "onClientGUIClick", Sexy, Sexy, false ) addEventHandler ( "onClientGUIClick", Fat, Fat, false ) addEventHandler ( "onClientGUIClick", close, close, false ) What is you're problem? What happen when you write /ws it open the Panel or not? you need to say what is happening with you so we can help. Try this: walkStyles = { {"Default", 0 }, {"Default Fat", 55 }, {"Default Muscular", 56 }, {"Sneak", 69 }, {"Man", 118 }, {"Fat Man", 124 }, {"Jogger Man", 125 }, {"Old Man", 120 }, {"Old Fat Man", 123 }, {"SWAT Moves", 128 }, {"Gangster 1", 121 }, {"Gangster 2", 122 }, {"Pro Sexy Woman", 133 }, {"Fat Woman", 135 }, {"Jogger Woman", 136 }, {"Old Woman", 134 }, {"Old Fat Woman", 137 }, {"Drinking", 126 }, {"Shuffle", 119 }, {"Blind Man", 127 } , {"Woman", 129 }, {"Busy Woman", 131 }, {"Sexy Woman", 132 }, } GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(352, 131, 513, 415, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(10, 24, 296, 381, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "ID", 0.4) GUIEditor.label[1] = guiCreateLabel(0.61, 0.07, 0.36, 0.11, "Select a walking style from the gridlist and click have style or cancel.", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) GUIEditor.label[2] = guiCreateLabel(313, 98, 184, 142, "Many walk styles don't allow you to run fast so use those walking styles at your loss. Some walking style have special abilities too, so try them out.", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "clear-normal") guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true) GUIEditor.button[1] = guiCreateButton(312, 368, 95, 37, "Have Style", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(412, 369, 91, 36, "Cancel", false, GUIEditor.window[1]) for ind,n in ipairs(walkStyles) do row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, n[1], false, false) guiGridListSetItemText(GUIEditor.gridlist[1], row, 2, tostring(n[2]), false, false) end addEventHandler("onClientGUIClick", GUIEditor.button[1], select) addEventHandler("onClientGUIClick", GUIEditor.button[2], close) end ) local marker1 = createMarker( 773.5, -1, 999.7, 'Cylinder', 1.5, 255, 0, 0, 170 ) local marker2 = createMarker( 665, -1864, 4.5, 'Cylinder', 1.5, 255, 0, 0, 170 ) setElementInterior(marker1, 5) local marker3 = createMarker( 774, -71, 999.5, 'Cylinder', 1.5, 255, 0, 0, 170 ) setElementInterior(marker3, 7) function markerhit(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end end function close() guiSetVisible(GUIEditor.window[1],false) showCursor(false) end function select() local row, col = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if (row and col and row ~= -1 and col ~= -1) then local models = tonumber(guiGridListGetItemText(GUIEditor.gridlist[1], row, 2)) if model ~= "" then triggerServerEvent("walking", localPlayer, models) setPedWalkingStyle(localPlayer, models) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end end addEventHandler("onClientMarkerHit", marker1, markerhit) addEventHandler("onClientMarkerHit", marker2, markerhit) addEventHandler("onClientMarkerHit", marker3, markerhit) addCommandHandler( "walkstyle", function () if ( guiGetVisible( GUIEditor.window[1] ) ) then guiSetVisible( GUIEditor.window[1], false ) showCursor( false ) else guiSetVisible( GUIEditor.window[1], true ) showCursor( true ) end end )1 point
-
طفشت وانا اضغط على كل صورة عشان اشوف سيرفر جميل الله يوفقك1 point
-
ما شاء الله ..... سيرفر رائع ومودات اروعع ء أستمرو ع ابدأعكم ء .1 point
-
لاهنت ي الحبيب , سيرفر بطل بالله الجرافيك اللي انت مستخدمه وش هو ؟ كلمني خاص لو تقدر !1 point
-
1 point
-
0 points