-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
اسوي نفسي فاهم ؟ ؟ ياخي انا مشرف انظمة التشغيل في الديف بوينت [sKIDROW ], والحين عضو في ايبي تقدر تشوف مواضيعي , ومشاركاتي بحل المشاكل يابعد راسي , واخوي ماكس جرب طريقتي وشوف ,
-
well i never try using this script , but as you wish . .. ,
-
Try This , function onplayerChat ( message, messageType ) if ( messageType == 2 ) then cancelEvent ( ) local name = getPlayerName ( source ) red ,green ,blue = getTeamColor(getPlayerTeam(source)) outputChatBox( "#FFFFFF(CLAN)" .. red, green, blue.." "..name .. ":#FFFFFF" .. message, source, 255, 255, 255, true ) end end addEventHandler ( "onPlayerChat", root, onplayerChat ) Make sure you dont start gamemode play in server try test it with deathmatch gamemode or race ,
-
thePlayer is not defined and getPedSkin This function is deprecated. use getElementModel insted
-
These are the functions to make your script , getVehicleEngineState --- if the vehicle are on getPedOccupiedVehicle ----- if ped in the vehicle [url=https://wiki.multitheftauto.com/wiki/GetElementSpeed]https://wiki.multitheftauto.com/wiki/GetElementSpeed[/url]---- get the vehicle speed guiProgressBarGetProgress ---- get the bar valute form 0 guiProgressBarSetProgress --- set it for an example 100
-
وليه يحذف ويسوي بطيخ . . . , رجأء اللي مايعرف لايجيب العيد بجهاز الرجال . . , اخوي ماكس , انقر على قائمة ChromeChrome menu في شريط الأدوات بالمتصفح. حدد الإعدادات. انقر على عرض الإعدادات المتقدمة وابحث عن القسم "إعادة تعيين إعدادات المتصفح". انقر على إعادة تعيين إعدادات المتصفح. في مربع الحوار الذي يظهر، انقر على إعادة تعيين.
-
Try like this , progressBar = guiCreateProgressBar( 0.75, 0.3, 1, 1, true, nil ) guiProgressBarSetProgress(progressBar,tonumber(guiProgressBarGetProgress(progressBar))+1)
-
you Can Check this Function , and learn form it , guiProgressBarSetProgress
-
it's Really Simple . . . , local Object = createObject ( X ,Y ,Z ,0 ,0 ,0 ) --- your object local Marker = createMarker ( X ,Y ,Z ,"cylinder",5 , 170 ) --- your Marker function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then --- if player in the marker then local accName = getAccountName ( getPlayerAccount ( player ) ) --- get his account if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Government" ) ) then --- if he is on ACL Government then moveObject ( Object,140.19999694824 ,198.4000244141 ,15.10000038147 ) --- open else moveObject ( Object,136.19999694824 ,1942.4000244141 ,21.10000038147 ) --- close end else outputChatBox ( "* You must be Government to do this ", player, 200, 0, 0, true ) --- Msg end end addCommandHandler('open', openObject ) --- Command in f8 open
-
Worng , ---ClientSide addEvent ('sendMessage' , true ) addEventHandler ( 'sendMessage', root , function ( text, r, g, b ) local x, y, z = getPedBonePosition ( localPlayer, 4 ) local sx, sy = getScreenFromWorldPosition ( x, y, z , 0.5 ) local sM = { text = text, r = r, g = g, b = b, a = 0, visibleTick = false, fadingIn = true, fadingOut = false, startY = sy } table.insert( Messages, sM ) end ) ----ServerSide addEventHandler('onPlayerChat', root , --- you can change it to your event function ( text, r, g, b ) triggerClientEvent (source, 'sendMessage', source, text, r, g, b ) end )
-
of course every one will see the msg , becuase you used guiRoot - getRootElement ( for all players ) Change it to source ,
-
Well , You Cant check the player skin , if it's .. ( id ) then setPedWalkingStyle , ,
-
i didn't understand you . . you want to save the skin after you spawn ? if so then post you code .
-
Great Job , i like when someone's try fix his script by his own ,
-
Exactly i Think learning form wiki is better than decompiling it . . ., if that person compiled his script , because he know they will steal his rights , and you can make the same as his script , if you know a littel bit of LUA .
-
This May work , addEventHandler('onClientPlayerWeaponFire', root , -- event function ( weapon , hitElement , hitX, hitY, hitZ ) -- Parameters if ( weapon == 16 and getElementType( hitElement )== "vehicle" )then -- if the weapon was grenade and the element got hit was vehicle then createExplosion (hitX, hitY, hitZ, 2, true, 0, true ) --- make an explosion( rocket ) at the place the grenade was hit and it will make the vehicle blow instantly end end )
-
Maybe this , would help , getPedTarget
-
local safeZone = createColCuboid (95.974617004395, 1751.3895263672, 17.640625, 255, 380, 255) local safeArea = createRadarArea ( 95.974617004395, 1751.3895263672, 255, 380, 255, 0, 0, 120) addEventHandler ( "onColShapeHit", safeZone, function ( hitElement ) if getElementType( hitElement ) == "ped" then setRadarAreaFlashing(safeArea, true) setElementData (safeZone,"zombieProof", true) killPed(hitElement) end end )
-
Try This , if (getElementType(getPedTarget(localPlayer))== "vehicle" ) then local color = "255,0,0" else local color = "0,0,0" end if(getPedTargetStart(localPlayer )) then local hX,hY,hZ = getPedTargetEnd ( getLocalPlayer() ) local screenX1, screenY1 = getScreenFromWorldPosition ( hX,hY,hZ ) dxDrawLine(screenX1- 6, screenY1- 6, screenX1, screenY1, tocolor(color, 255)) end
-
well , You Colud Use , tabel , but i dont know how iam not Good in Tables , Now iam going to let you try , trust me go to addCommandHandler on wiki and the setTime Functions on wiki , understand them then you don't need any body help to make Simple Scripts like this , Go Try it ,
-
Try This , addCommandHandler('csw', function ( ) setWeather(math.random (0, 9 ) ) local Weather = getWeather () outputChatBox("The weather is currently: "..Weather, source) end ) addCommandHandler('time', function ( ) setTime ( 1, 0 ) local time = getRealTime () local hours = time.hour local minutes = time.minute outputChatBox( 'Local Time : '..hours..':'..minutes , source) end )
-
Try this , addCommandHandler('csw', function ( ) setWeather(9) local Weather = getWeather () outputChatBox('Weather has been set to ..Weather.. ' ) end )
-
Try This , local acls = { "ORGANIZADOR", "MODERADOR", "ADMINISTADOR" } local on = "nao" local coisa = nil function event (thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) for i, v in pairs ( acls ) do if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( v ) ) ) then if(on == "sim")then outputChatBox("#FFF000[sERVER#FFFFFF Evento created, use #FF0000/devent#FFFFFF to close the Event!",thePlayer,255,255,255,true) else local x,y,z = getElementPosition(thePlayer) on = "sim" coisa = createMarker(x,y,z-1,"cylinder",2,0,255,0) dimen = getElementDimension(thePlayer) inte = getElementInterior(thePlayer) outputChatBox("#FFF000[sERVER]#FFFFFF Administator #FF0000"..getPlayerName(thePlayer).."#FFFFFF created a event, write #FF0000/irevento#FFFFFF to participate!",root,255,255,255,true) if(inte)then setElementInterior(coisa, inte) end if(dimen)then setElementDimension(coisa, dimen) end end else outputChatBox("#FFF000[sERVER]#FFFFFF You aren't a admin to create a event!",thePlayer,255,255,255,true) end end end addCommandHandler("cevent", event)local acls = { "ORGANIZADOR", "MODERADOR", "ADMINISTADOR" } local on = "nao" local coisa = nil function event (thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) for i, v in pairs ( acls ) do if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( v ) ) ) then if(on == "sim")then outputChatBox("#FFF000[sERVER#FFFFFF Evento created, use #FF0000/devent#FFFFFF to close the Event!",thePlayer,255,255,255,true) else local x,y,z = getElementPosition(thePlayer) on = "sim" coisa = createMarker(x,y,z-1,"cylinder",2,0,255,0) dimen = getElementDimension(thePlayer) inte = getElementInterior(thePlayer) outputChatBox("#FFF000[sERVER]#FFFFFF Administator #FF0000"..getPlayerName(thePlayer).."#FFFFFF created a event, write #FF0000/irevento#FFFFFF to participate!",root,255,255,255,true) setElementInterior(coisa, inte) if (dimen)then setElementDimension(coisa, dimen) end end end end end if not (isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( v ) ) ) then outputChatBox("#FFF000[sERVER]#FFFFFF You aren't a admin to create a event!",thePlayer,255,255,255,true) end addCommandHandler("cevent", event)
-
ok well your , welcome ,
-
Try add this , at very bottem of the script , addEventHandler("onPlayerspawn",root,function() for k, v in ipairs({"ammo","weapon","clock","money","wanted"}) do showPlayerHudComponent(source,v,false) end end)
