Jump to content

Mizudori

Members
  • Posts

    75
  • Joined

  • Last visited

Everything posted by Mizudori

  1. Oh yeak it's to late for me.. I am sitting on phone so I am not able to edit code. You need to chech hitelement on start of KillP function. With getElementType if element is ped jusy destroyElement(hitElement) else if it is player you just roll with your function. killP(hitElement) if(getElementType(hitElement)=="ped")then destroyElement(hitElement) -- or killPed(hifElement) should work too elseif(getElementType(hitElement)=="player")then -- yours code end end something like this
  2. function killP(hitElement) local playerTeam = getPlayerTeam ( hitElement ) local teamName = ( playerTeam and getTeamName ( playerTeam ) or "" ) if teamName == "LV MAFIA" then return end if not teamName =="LV MAFIA" then if(getElementType(hitElement)=="ped")then destroyElement (hitElement) elseif(getElementType(hitElement)=="player")then killPed(hitElement) end end end addEventHandler("onColShapeHit", safeZone, killP)
  3. Suggest you to go this path cd /usr/lib/ Double check if file exist with ls remove if exist then this wget [url=https://nightly.multitheftauto.com/files/libmysqlclient.so]https://nightly.multitheftauto.com/files/libmysqlclient.so[/url].16 cp libmysqlclient.so.16 /usr/lib/ shut down srv mta and restart mta
  4. https://wiki.multitheftauto.com/wiki/Ele ... sion_shape onColShapeHit() onClientColShapeHit()
  5. Typo, forgot if() addEventHandler("onPlayerWasted",root,function() local veh = getElementData(source, "mafiaVeh") if(veh)then if(isElement(veh))then destroyElement(veh) setElementData(source,"mafiaVeh",nil) end end end )
  6. addEventHandler("onPlayerWasted",root,function() local veh = getElementData(source, "mafiaVeh") if(veh)then isElement(veh)then destroyElement(veh) setElementData(source,"mafiaVeh",nil) end end end )
  7. So onPlayerWasted event should destroy the vehicle if player is in it or what?
  8. E: Unable to locate package libmysqlclient16 Just try this wget [url=https://nightly.multitheftauto.com/files/libmysqlclient.so]https://nightly.multitheftauto.com/files/libmysqlclient.so[/url].16 cp libmysqlclient.so.16 /usr/lib/ The last time I gave you 64bit version apperently mta needs 32bit version of this lib. Here is more about your problem http://bugs.multitheftauto.com/view.php?id=8387
  9. just copy and paste cd /usr/lib/ rm -f libmysqlclient.so.16 <-- removes this file apt-get install libmysqlclient16 <-- this will install you the right lib if possible. It may not work cuz mta needs lib no 16 and this is rather old lib so updater may not have it in database
  10. You may delete the cp'ied libmysql befeore typing this commands apt-get update apt-get upgrade apt-get install libmysqlclient16
  11. You need to give money to element/player which is source addEventHandler("driftNuevoRecord", root, function(score, name) outputChatBox("-" .. name .. score .. "-",source,255,255,255,true) givePlayerMoney(source , score ) if score > drift_mejor then drift_mejor = score drift_nombre = name triggerClientEvent(root, "driftActualizarRecord", root, drift_mejor, drift_nombre) end end)
  12. This is wrong syntax givePlayerMoney(player name , score ) Where is your player element? It's need to be your first variable If this is server side use client/source givePlayerMoney(source , score )
  13. The exact file is there.. Just past this 2 commands to your linux prompt and restart server. It's common mysql lib error for 64bit linux systems. wget [url=https://nightly.multitheftauto.com/files/x64/libmysqlclient.so]https://nightly.multitheftauto.com/files/x64/libmysqlclient.so[/url].16 cp libmysqlclient.so.16 /usr/lib/
  14. Remember that you need to use it in onResourceStart Removing objects is more complex than adding so good luck. removeWorldModel()
  15. I tested it but nothing happens. function hideLoginWindow() if (guiGetVisible(LoginPanel.window[1]) == true) then guiSetVisible(LoginPanel.window[1], false) showCursor(false) showChat(true) removeEventHandler("onClientResourceStart", resourceRoot, smoothMoveCamer) removeEventHandler("onClientPreRender",root,camRender) setTimer(function() setCameraTarget ( getLocalPlayer() ) end,100,1) end if (guiGetVisible(LoginPanel.window[2]) == true) then guiSetVisible(LoginPanel.window[2], false) showCursor(false) showChat(true) removeEventHandler("onClientResourceStart", resourceRoot, smoothMoveCamer) removeEventHandler("onClientPreRender",root,camRender) setTimer(function() setCameraTarget ( getLocalPlayer() ) end,100,1) end end addEvent("hideLoginWindow", true) addEventHandler("hideLoginWindow", getRootElement(), hideLoginWindow) That was my bad just use this sm.moov = 0 in hideLoginWindow(). You don't need any removeEventHandlers
  16. If you are talking about what I am thinking.. and you want insert world object via script. Use this function createObject() Or if you want to create pickup spot just use this createPickup() setPickupRespawnInterval()
  17. query = dbQuery(Database, "SELECT table_name FROM all_tables")
  18. You need to remove handler from event, after clicking on button or after log in process + set camera on source of the event of siging in.
  19. local cn = dbConnect ( string databaseType, string host [, string username = "", string password = "", string options = "" ] ) function give_r(pl ) local theSerial = getPlayerSerial(pl) local qh = dbQuery( cn, "SELECT * FROM users WHERE player_serial=?",theSerial ) local result, rows, last_insert_id = dbPoll ( qh, -1 ) if(result)then if(rows > 0)then --if the serial exists in mysql table , will outputchatbox something else dbExec(cn,"INSERT INTO users (player_serial) VALUES (?)",theSerial) --if the serial doesn't exists in mysql table will do something like GivePlayerMoney + adds the serial in the mysql table end end end addCommandHandler( "reward", give_r )
  20. Hmm you mean if statement for some cars? This is only with spoilers so I will create spoilers table and use them for all cars with expections. Anyway thanks for help
  21. I used monster track and others cars it shown exactly the same thing as on my screen.
  22. Yeah I really don't understand why this is happening I even turned off all other scripts and still the same problem.
  23. same result as on my screen. Showing 1162,1163 ID spoilers etc.
×
×
  • Create New...