-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
i think you can use this , getElementData --- get the wanted level data cancelEvent ----- cancel it or--- setPlayerWantedLevel -- set it to 0
-
انسخ ذا سيرفر . . addEvent('onlogin', true) addEventHandler('onlogin',root, function (user, pass) local account = getAccount ( user, pass ) if ( account ~= true ) then if (logIn ( source, account, pass ) == true) then outputChatBox ( "You Logged in Sucessfuly!", source, 255, 255, 0 , true ) triggerClientEvent (source, "Hidewindow", source) else outputChatBox ( "Login Error!", source, 255, 0, 0 ) end else outputChatBox ( "Wrong username or password!", source, 255, 0, 0 ) end end ) addEvent('onReg',true) addEventHandler('onReg',root, function (user,pass) local account = getAccount(user,pass) if ( account ) then outputChatBox("* This Account is Already Used",source,255,0,0) triggerClientEvent (source, "Hidewindow", source) else addAccount(user,pass) outputChatBox ( "Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", source, 255, 255, 0 , true ) triggerClientEvent (source, "Hidewindow", source) end end )
-
استخدم الكود حقي اخر واحد وشوف
-
but it's when he enter the col every time he get in it's get destroyed .
-
why the timer is needed here ?
-
? onClientColShapeHit it's for col shapes !
-
Try Now i edited my post /debugscript 3 Change it in meta.xml to serverside
-
fileExists
-
Try this --- ServerSide local tempCol = createColCuboid ( 2360.6469726563,-1803.5179443359,1442.5999755859, 500, 120, 10.0 ) addEventHandler("onColShapeHit",resourceRoot, function ( player ) if ( isElementWithinColShape ( player, tempCol ) ) then if ( doesPedHaveJetPack ( player ) ) and ( isPedInVehicle ( player )) then removePedJetPack ( player ) removePedFromVehicle ( player ) outputChatBox ( ' You Cant Use JetPack Or Vehicle in Here ',player, 255, 0, 0 ) end end end ) Edited #
-
what do you mean by toggel them off ? you want to destory vehilces & JetPacks in the col Shape if you enter and create them back if you exit ?
-
--- سيرفر addEvent( "onClientSend", true ) addEventHandler( "onClientSend", root, function(player) spawnPlayer(player,365 + math.random(1,5),2537 - math.random(1,5), 17,90) outputChatBox("test") end) --- كلينت function checkTransfer() if isTransferBoxActive() then local timer = setTimer(checkTransfer,2000,0) else triggerServerEvent("onClientSend",localPlayer) killTimer(timer) end end addEventHandler("onClientResourceStart",resourceRoot,checkTransfer)
-
your problem is it flooding the chat 2 times ?
-
' well no one will make it free for you .. , you could start learning Lua Language or get Paid scripter to do it for some price .
-
i think so , but he could try use setTimer to load them
-
use setTimer to load them before they warp into car ..
-
Try this , ---ClientSide local sx, sy = guiGetScreenSize ( ) function onRankUpGreet() dxDrawRectangle(sx*(707/1024), sy*(425/768), sx*(115/1024), sy*(27/768), tocolor(44, 44, 44, 221), true) dxDrawText("Rank up +", sx*(716/1024), sy*(429/768), sx*(808/1024), sy*(448/768), tocolor(0, 255, 0, 221), 0.70, "bankgothic", "left", "top", false, false, true, false, false) end addEvent( "onRankUp", true ) addEventHandler( "onRankUp", function ( ) local sound = playSound("sounds/level.mp3") setSoundVolume(sound, 0.5) setSoundMaxDistance( sound, 5000 ) addEventHandler("onClientRender", root, onRankUpGreet) setTimer( function () removeEventHandler ( "onClientRender", root, onRankUpGreet ) end, 6000, 1) end ) ---ServerSide addEventHandler("onElementDataChange",root, function (ElementData) if ( ElementData == "Army.rank" ) then local newValue = getElementData(source,ElementData) outputChatBox("Congratulations your rank now is #FFFFFF'"..tostring(newValue).."'",source, 255, 0, 0, true) triggerClientEvent(source, "onRankUp", source) end end ) /debugscrip 3 to see if there is any erros , Can you show me how do you set the element data for the killer ?
-
Well , i tryed to make it work with the vehicles event from server / client but it didn't i think it's some kind of bug , but it worked with command type Max to open it , type max again to close it , you can add check if the doors open then close else / open --ClientSide addCommandHandler ( 'Max', function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if vehicle then for i=0,5 do setVehicleDoorOpenRatio ( vehicle, i, 1 - getVehicleDoorOpenRatio ( vehicle, i ), 2500 ) end end end ) or you cant try using addEvent('Something'), true ) addEventHandler('Something', root, function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if vehicle then for i=0,5 do setVehicleDoorOpenRatio ( vehicle, i, 1 - getVehicleDoorOpenRatio ( vehicle, i ), 2500 ) end end end ) and setTimer to trigger it triggerClientEvent ( 'Something', source, 'Somthing' )
-
Click Here to the Example , and fix your script . GuiGridListGetSelectedItem
-
did you try these ? setVehicleDamageProof OnClientVehicleDamage
-
؟ I want that if a player enter on vehicle, all doors whether automatically closes. You Said you want them to lock automatically .