Jump to content

Cadell

Members
  • Posts

    64
  • Joined

  • Last visited

Everything posted by Cadell

  1. server is insatled and working problem is i cant able to conect my server to other server my sql can you make me script for connection only i want to use mysql present on this host : 108.170.10.163
  2. I tried that it give me error wait ill post mysql connection script I am using with error
  3. hi guys i need some help in mysql connetion on ubunto i downloaded linux module from wiki also added in mtaserver.config my problem is i want to attach my server with other server where mysql db is working. so any 1 can help me plz
  4. Bro this is also leak wss houserob script I dont think any 1 give you help in leak scripts
  5. I think you need to try this Table = {} Table[1]={true} Table[2]={false} for i, v in pairs(Table) do setVehicleEngineState ( theVehicle, math.random(v) ) end If it wont work tell me as i didnt tested it
  6. LOL this is leak wss script lol
  7. Cadell

    Help Me

    lol he posting leaked script for fixing
  8. I think there no need to use math for getting health just use getElementHealth (localPlayer) then it start work fine if tell me ill make u that
  9. addEventHandler('onClientGUIClick', button1, function() local tp = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) local selp = getPlayerFromName(tp) if (source == button1) then if ( guiGridListGetSelectedItem ( gridlist ) ~= -1 ) then if selp then guiSetVisible(panelEHealth, true) guiBringToFront(panelEHealth) guiSetText(panelEdit, "") addEventHandler('onClientGUIClick', panelEButton, function() if source == panelEButton then hp = guiGetText (panelEdit) hpp = tonumber(hp) guiSetVisible(panelEHealth, false) triggerServerEvent("sethp", getRootElement(), tp, selp, thePlayer, hpp) end end) else outputChatBox('Select a player to set his health.', 255, 0, 0) end end end end) try this i think it will work good now
  10. you can use "setTimer" and set loop at 0 after setting time after that specific time it get triggger Example : setTimer ( function() outputChatBox ( "text!" ) end, 5000, 0 ) this text come after each 5 sec just change it acc to your time. 2nd you can use this i think function getPlayerFromlName(thePlayerName) local thePlayer = getPlayerFromName(thePlayerName) if thePlayer then return thePlayer end for _,thePlayer in ipairs(getElementsByType("player")) do if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), thePlayerName:lower(), 1, true) then return thePlayer end end return false end function showGUI(sourcePlayer, commandName, thePlayerName) if ( hasObjectPermissionTo (sourcePlayer, "command.ban", true ) ) then if (thePlayerName) then targetPlayer = getPlayerFromParticalName(tostring(thePlayerName)) triggerClientEvent(targetPlayer, "eventName", rootElement) else outputChatBox("Error", sourcePlayer, 255,255,255,true) end end end hope it will work i didnt tested
×
×
  • Create New...