Jump to content

Mike269

Members
  • Posts

    218
  • Joined

  • Last visited

Everything posted by Mike269

  1. Mike269

    Team spawn

    well I was wrong, play has to be turned on or I can't spawn, but the problem is my skin always change to CJ, what can I do?
  2. Mike269

    Team spawn

    It's working, thank you very much! But how can I make a spawn for each team when they join, like for civlians when they join for first time, I stopped gamemode play because it was keep changing my skin so I guess I have to make my own spawns...
  3. Mike269

    Team spawn

    Hello, well I've made a 3 teams Civilians, Army and Terrorists, (If you're not in any team you automaticly join Civilians) That's my code, but the problem is that when I reconnect/die I don't spawn at the position I wrote, help please! team = { } team["Civilian"] =createTeam ( "Civilian", 102, 0, 102 ) team["Army"] =createTeam ( "Army", 102, 51, 0 ) team["Terrorists"] =createTeam ( "Terrorists", 204, 0, 0 ) function lena(thePlayer) local playerTeam = getPlayerTeam ( player ) local ss = getTeamName ( playerTeam ) if ss=="Vampires" then setTimer(azaz, 1800, 1, player) outputDebugString("It's works") setTimer(setElementPosition, 1800, 1 ,1094.7105712891,2092.7939453125,15.350400924683 ) elseif ss=="Werewolves" then setTimer(setElementPosition, 1800, 1 ,7105712891,2092.7939453125,15.350400924683 ) outputDebugString("It's works") elseif ss=="Civilians" then setTimer(setElementPosition, 1800, 1 ,7105712891,2092.7939453125,15.350400924683 ) outputDebugString("It's works") end end addEventHandler("onPlayerWasted",getRootElement(),lena)
  4. Hello guys, I am making a server and the save system doesn't Works right because everytime I die, my skin changes and I lose weapons, please help me, what should I edit here? local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end )
  5. Hello guys, I am trying to script from 2012 but my english was very bad in 2012, now it's a little bit better and I thought you guys could give me some steps to start, oh and please can you tell me why save systems doesn't Works for me? Because of "play gamemode" it should save my skin weapons,money and position after restarting/quiting the server and save my skin & weapons when I die but it doesn't, also I got an awesome idea, is it possible to make a script like, example: You're in vampire team, and if you kill a civilian with knife/colt his skin got changed to vampire and he's moved into vampire team, please help me I can pay with paypal if someone could make that for me, thanks
  6. Hello guys I am looking for a good host that is payable with pay safe card but I can also buy a host with PayPal but I have just 2.70€ on my paypal help please!
  7. Mike269

    Drunk system

    thanks mate, ill try to script it
  8. Hello guys I'm using this drug system: https://community.multitheftauto.com/in ... ls&id=7520 Problem: When I start the script I can see drug panel when I press F7 and the gui panel to buy drugs show up when I enter the marker, that's normal but when I reconnect nothing works, markers is here but even if I enter nothing show up.. help please
  9. Mike269

    Drunk system

    lol, I want a drinking bar/disco or something to get drunk not animation lol
  10. Mike269

    Drunk system

    Hello MTA, does anyone know any script that you can get drunk by? Like biker bar etc... thanks!
  11. Hello MTA today I'm scripting arresting script and when I hit a player with nightstick he's transported to the prison wiht 4 corners, it's like a room but for that I need to get X Y Z position from where and to where you can't use weapons and text like "140 seconds left" is shown, is there a good video how to take positions or something? If anyone is ready to come in my server and show me how to do it ill be very happy! Part of the script: local prisonCells = { {3424.6467285156,93.191673278809,16.86874961853}, -- Spawn point in the prison } local releasePoint = {2127.6013183594,2364.1135253906,10.8203125} -- Release point --//PRISON EXTERIOR//-- local vert1 = {3485.0334472656,-3.6232004165649,9.3687496185303} -- First left corner local vert2 = {3368.0390625,183.78581237793,30.06875038147} -- Second right corner local w = vert2[1] - vert1[1] local h = vert2[2] - vert1[2] local d = vert2[3] - vert1[3]
  12. But learning will take years for me hahahahaha
  13. well this level system is compilled and that what's wrong , I want to edit it
  14. hello dear community, I would like to buy some cool zombie rpg scripts like level system and so on. message me!
  15. well you gave me the code how I can start a script but there's a problem that I cannot script and thanks for level system
  16. Hello guys I would like to know how can I make a zone that zombies can't enter, like they die when they try to enter, colored zone or somethin.. + I really need level system connected with zombies and cool zombies If anyone know some zombie scripts please share them with me, because I'm making Zombie RPG server, thanks!
  17. Special thanks to WhoAmI he helped me everytime and he didn't even know me, we need more people like that!
  18. Hello does anyone here have some knowledge about hosting? I would like to know how to make database works please if you can help me message me your skype, please!
  19. Yes they are like "attempt to call global "mysql_connect" (a nil value)
  20. Look if that will work I'm ready to buy another host I just want it to work
  21. just game server , tried everything idk what the hell is wrong
  22. did as you said , still same error
  23. btw, where could I get mta_mysql.dll file?
×
×
  • Create New...