Jump to content

Max+

Members
  • Posts

    1,363
  • Joined

  • Last visited

Everything posted by Max+

  1. i think you can use this , getElementData --- get the wanted level data cancelEvent ----- cancel it or--- setPlayerWantedLevel -- set it to 0
  2. انسخ ذا سيرفر . . 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 )
  3. استخدم الكود حقي اخر واحد وشوف
  4. but it's when he enter the col every time he get in it's get destroyed .
  5. why the timer is needed here ?
  6. شيل كلمة not خليه if vehicle then ...
  7. ? onClientColShapeHit it's for col shapes !
  8. Try Now i edited my post /debugscript 3 Change it in meta.xml to serverside
  9. 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 #
  10. viewtopic.php?f=160&t=66671 #
  11. 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 ?
  12. --- سيرفر 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)
  13. Max+

    outputting

    your problem is it flooding the chat 2 times ?
  14. ' 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 .
  15. Max+

    Problem texture

    i think so , but he could try use setTimer to load them
  16. use setTimer to load them before they warp into car ..
  17. 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 ?
  18. 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' )
  19. Click Here to the Example , and fix your script . GuiGridListGetSelectedItem
  20. did you try these ? setVehicleDamageProof OnClientVehicleDamage
  21. viewtopic.php?f=91&t=38414
  22. ؟ I want that if a player enter on vehicle, all doors whether automatically closes. You Said you want them to lock automatically .
×
×
  • Create New...