-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
did you use , guiGetScreenSize() ?
-
Oh , Sorry there is you Can Something like this , toggleControl (vehicle, "accelerate", true )
-
gate1 = createObject ( 980, -579.5, -189.7, 80, 0, 0, 90 ) open = false addCommandHandler('main', function ( max ) if getPlayerTeam ( max ) and getPlayerTeam ( max ) == getTeamFromName ( "Army" ) then if ( open == false ) then moveObject (gate1, 3000, -579.5, -179.7, 80 ) open = true elseif ( open == true ) then moveObject (gate1, 3000, -579.5, -189.7, 80 ) open = false end end end )
-
Edited , addEvent( "setPedControl", true ) addEventHandler( "setPedControl", root, function ( ped ) setPedControlState ( ped, "accelerate", true ) end ) addCommandHandler ( "vehb", function ( ) local x, y , z = getElementPosition ( source ) vehicle = createVehicle ( 411, x, y , z ) ped = createPed ( 230, x, y , z ) warpPedIntoVehicle ( ped, vehicle, 0 ) triggerClientEvent ( root, "setPedControl", ped ) end )
-
you mean like this , ? Vehicles = { [540]=true} -- Cars , function enterVehicle(player) local Team = getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) if (Vehicles[getElementModel(source)]) and (Team ~= "myTeam") then outputChatBox('welcome Back ',player, 0, 255, 0 ) else removePedFromVehicle(player) outputChatBox("You Cant Use this Car it's Private !", player, 255, 0, 0) end end addEventHandler("onVehicleEnter", root, enterVehicle)
-
كودي غلط ؟ ----------------------------------- Required Arguments theElement: The element in which you'd like to set the interior of. interior: The interior you want to set the element to. Valid values are 0 to 255. -------------------------------------------------- وبعدين ابي اعرف وش دخل السيارة بنقله لشوب الاسلحه ؟ if isPedInVehicle
-
جرب الكود ذا , theMarker = createMarker ( 1368.99402,-1279.65918,13.54688, "cylinder", 1.5, 255, 255, 0, 250 ) addEventHandler( "onMarkerHit", theMarker, function ( elm ) if ( getElementType ( elm ) == 'player' ) then setElementInterior ( elm, 6 ) end end )
-
Next Time , Make sure your in the Scripting Section , addEventHandler('onPlayerChat', root, function ( msg, msgType ) if ( msgType == 2 ) then triggerClientEvent(source, 'Play', source ) end end ) ---ServerSide addEvent('Play', true ) addEventHandler('Play', root, function ( ) local sound = playSound("chat.mp3" ) setSoundVolume(sound, 1.0) end )
-
onClientColShapeHit triggerServerEvent setPlayerWantedLevel playSound
-
Problem From cancelEvent() | مشكلة بالنسبة للكناسل افنت
Max+ replied to ™!>VàLéNTiNô<!™'s topic in البرمجة
addEventHandler('onClientPlayerDamage',root, function (attacker) if ( attacker and attacker ~= source and getElementType(attacker) == 'player' and getElementData (source,'Group') == groupName and getElementData (attacker,'Group') == groupName ) then cancelEvent ( ) end end ) Canceling this event has no effect. Cancel the client-side event onClientPlayerDamage instead. -
لانك حايس ام الاكواد الكلينت مع السيرفر , ذا كود الكلينت , ياليت المرة الجاية تنظم كودك , اكثر من مره اصحح لك ولا تتعلم كيف تنظمه , GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(415,104,383,478,"وظيفة المزارع",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Memo[1] = guiCreateMemo(12,32,361,356,"اضغط على اخذ الجرار لتاخذ الجرار\nو اضغط اغلاق لرفضك\n\nبعد اخذ الجرار ابدا بالسير به\nداخل المكان المحدد (داخل الاشجار)\n\nلتحصل على الفلوس\n\n\n====================================\nقوانين المكان \n\nاي تخريب يرجى التصوير و ارسالها\nللادمن\n\nالعقوبة باند ساعتين\n\n\nملاحظة\n\nلاتتم العقوبة الابوجود دليل (صورة)\n\nو سيتم مراجعت الادمن الذي يعطي العقوبة",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Button[1] = guiCreateButton(200,414,170,54,"اغلاق",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(13,414,170,54,"اخذ الجرار",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(105,388,175,18,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],0,255,0,255) local marker1 = createMarker ( -1647.95825,-2251.10742,31.51732,'cylinder',2, 0,0, 0, 0) addEventHandler ( "onClientMarkerHit", marker1, function ( elm ) if ( elm == localPlayer ) and getPlayerTeam ( elm ) == getTeamFromName ( "Harvest" ) then guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) else outputChatBox("هذه للحصادين فقط !!",elm, 255, 0, 0) end end ) addEventHandler("onClientGUIClick",root, function ( ) if ( source == GUIEditor_Button[1] ) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent ('car10', localPlayer ) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end ) ---- وين كود السيرفر ؟ اللي تسوي فيه السيارة حقت الحاصد ؟ اتركها عليك , لاتنسى الكود ClientSide,
-
اي والله سو , انا عندي مشاكل بالتيبل ودي اختصر القيم مود حقي ,
-
Kenix is there any update for the varibles ? or just these ?
-
Great Job for First Script , i suggest to add Images , insted of Buttons , like Heart , to make it alot better ,
-
Nice Job mta team , Going to test it right now ,
-
اوك يعطيك العافية , unpack اسهل لي ,
-
addEventHandler("onPlayerJoin",root, function( ) redirectPlayer(source,'ip',port) end )
-
see here the function time: how long the animation will run for in milliseconds. you can use setTimer , after some time use CancelEvent , or removeEventHandler,
-
you can use setTimer(removeEventHandler('onPlayerChat' ) , and return it after if you want it , but i think it will cause lag, why you need animation for this , just use image over player head if he talks , better
-
معقوله كذا ماراح يضبط ؟ طيب كيف اعرف اللي يضبط مع التيبل واللي يضبط مع unpack