Jump to content

Mr.Hankey

Members
  • Posts

    625
  • Joined

  • Last visited

Everything posted by Mr.Hankey

  1. You use Vista am I right? If you do this might help: http://development.mtasa.com/index.php? ... on_connect
  2. getPedBonePosition does a good job too
  3. use "p" to open up the panel and then look at the upper right corner directly under the label that says "Admin Panel by lil_Toady" there is a button that says something like "0/0 unread messages"
  4. yep, have a look here: http://development.mtasa.com/index.php? ... jectToBone but as this function was removed from the object functions template im not sure if it will make it into the DP3 release
  5. scarface Vista still supports DX9 otherwise I wouldn't be able to play San Andreas as it is based on dx9.0c and my graphics card does not even support dx10...
  6. im not talking about the log but the server console or are you using a windows server?
  7. totalitarian systems will always fail and so does samp's developement "team"...
  8. it's a part of the admin resource if you're logged in as an admin and someone submits a message by using /report you will hear a sound and if you then open the admin panel you will see that there is a new message.
  9. There is no official "Leader" of the MTA Team and afaik there never was one.
  10. what are your server's specs? and do you get any errors in your server console?
  11. The error occurs because 'getLocalPlayer()' doesn't exist server side. You need to make it as a client side script. But you can also use the following code in your server side script: function playerDamage ( attacker, weapon, bodypart, loss ) if ( weapon == 4 ) then setElementHealth ( source, getElementHealth(source) - 20 ) end end addEventHandler ( "onPlayerDamage", getRootElement (), playerDamage )
  12. http://development.mtasa.com/index.php? ... teDuration so yes it's fixed in dp3
  13. A cookie like system that places an xml file that looks inconspicuously in a random resource on the client. The good thing about xml functions is that you can create and save the file as for example "thumbs.dll". This and the fact that the file is placed in random resources would make it really hard for a person to find it. (Except he read this post )
  14. ah so you would do the mini race and the pickup feature in less than 3 hours? good luck on that... To stay on topic: I personally would do all this stuff for 100€ but i won't enter a "contest" as i might waste my time for nothing in the end when someone else wins Also i think you can do half of the features by putting some existing resources together and altering them a bit so they work together but that would make a public release more difficult...
  15. i doubt you've even read half of the post... i want to see the guy finishing this in 3 hours
  16. Mr.Hankey

    Buttons...

    And because once the map editor is released it would be way easier to customize spawnpoints And btw when you use spawnpoints in a map it's even more easier to randomize spawnpoints. Simply use the exported function spawnPlayerAtSpawnPoint of the spawnmanager resource
  17. i suggest using the setSkyGradient function. The bottom color dramatically affects the screen like in this video:
  18. Wow i just downloaded inkscape an hour ago and tried to remake the colt and well this is the result [attachment=0]colt.png[/attachment] Just tell me which weapons to do next if you think this was helpful.
  19. lol shigawire I had the same idea half a year ago but i never finished it It's basically just a not finished spawn gui (but spawning works), a list of skins and i also started the buy menu but it's well... not really good/finished i think^^ Here's the code. I hope you can find anything helpful in there Server: addEvent ("selectTeam", true) addEvent ("spawn", true) addEvent ("loadmapdata", true) addEvent ("weapon", true) function spawnplayer (player, x, y, z, team) if team == "t" then local rand = math.random (1, #getElementChildren (getElementByID ("terror")))-1 local point = getElementChild (getElementByID ("terror"), rand) local x, y, z, skin = tonumber(getElementData (point, "posX")), tonumber(getElementData (point, "posY")), tonumber(getElementData (point, "posZ")), tonumber (getElementData (point, "skin")) spawnPlayer (player, x, y, z, 0, skin) giveWeapon (player, 22, 50, true) giveWeapon (player, 4) fadeCamera (player, true) elseif team == "ct" then local rand = math.random (1, #getElementChildren (getElementByID ("cterror")))-1 local point = getElementChild (getElementByID ("cterror"), rand) local x, y, z, skin = tonumber(getElementData (point, "posX")), tonumber(getElementData (point, "posY")), tonumber(getElementData (point, "posZ")), tonumber (getElementData (point, "skin")) spawnPlayer (player, x, y, z, 0, skin) giveWeapon (player, 23, 50, true) giveWeapon (player, 4) fadeCamera (player, true) end end function setteam (player, team) if team == "t" then setPlayerTeam (player, terror) elseif team == "ct" then setPlayerTeam (player, cterror) end end function loadmap () spawnst = getElementsByType ("tspawn") spawnsct = getElementsByType ("ctspawn") triggerClientEvent ("loadmap", getRootElement()) end function startup () outputChatBox ("test") terror = createTeam ( "Terrorists", 255, 0, 0 ) cterror = createTeam ( "Counter-Terrorists", 0, 0, 255 ) end function givew (id, ammo) giveWeapon (source, id, 100) end addEventHandler ("weapon", getRootElement(), givew) addEventHandler ("loadmapdata", getRootElement(), loadmap) addEventHandler ("spawn", getRootElement(), spawnplayer) addEventHandler ("selectTeam", getRootElement(), setteam) addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), startup) Client: --terror skins: 179 47 30 250 116 --ct skins: 285 165 281 147 277 y = 0.1 yp = 0.1 ys = 0.1 ysmg = 0.1 yr = 0.1 posX=727.44934082031, posY=-2301.5224609375, posZ=107.96048736572 posX=727.09851074219, posY=-2320.9113769531, posZ=107.65113067627 posX=704.1123046875, posY=-2320.8400878906, posZ=107.65058135986 posX=705.43524169922, posY=-2302.0942382813, posZ=107.93019866943 ct_skins = { "1", "2", "3", "4", "5", } t_skins = { "1", "2", "3", "4", "5", } addEvent ("loadmap", true) function t_spawn () triggerServerEvent ("selectTeam", getRootElement(), getLocalPlayer(), "t") guiSetVisible (spawn_w, false) guiSetVisible (t_w, true) end function ct_spawn () triggerServerEvent ("selectTeam", getRootElement(), getLocalPlayer(), "ct") guiSetVisible (spawn_w, false) guiSetVisible (ct_w, true) end function spawnt () guiSetVisible (t_w, false) triggerServerEvent ("spawn", getRootElement(), getLocalPlayer(), x, y, z, "t") showCursor (false) end function spawnct () triggerServerEvent ("spawn", getRootElement(), getLocalPlayer(), x, y, z, "ct") guiSetVisible (ct_w, false) showCursor (false) end function spec_join () guiSetVisible (spawn_w, false) end function hover () if source == t_w or source == ct_w then cancelEvent() else outputChatBox (guiGetText (source)) end end function startup () --stuff bindKey ("b", "down", buyMenu) bindKey ("m", "down", spawnMenu) showCursor (true) --spawnGUI spawn_w = guiCreateWindow (0.2, 0.2, 0.6, 0.6, "Select your Team!", true) t_w = guiCreateWindow (0.25, 0.2, 0.5, 0.7, "Select your Skin!", true) ct_w = guiCreateWindow (0.25, 0.2, 0.5, 0.7, "Select your Skin!", true) guiWindowSetMovable ( spawn_w, false ) guiWindowSetSizable ( spawn_w, false ) guiWindowSetMovable ( t_w, false ) guiWindowSetSizable ( t_w, false ) guiWindowSetMovable ( ct_w, false ) guiWindowSetSizable ( ct_w, false ) local t_b = guiCreateButton (0, 0.1, 0.3, 0.1, "Terrorists", true, spawn_w) local ct_b = guiCreateButton (0, 0.3, 0.3, 0.1, "Counter-Terrorists", true, spawn_w) local spec_b = guiCreateButton (0, 0.8, 0.3, 0.1, "Spectator", true, spawn_w) local y = 0.1 for k,v in ipairs (t_skins) do local b = guiCreateButton (0, y, 0.4, 0.1, v, true, t_w) y = y + 0.15 addEventHandler ("onClientGUIClick", b, spawnt) addEventHandler ("onClientMouseEnter", b, hover) end local y = 0.1 for k,v in ipairs (ct_skins) do local b = guiCreateButton (0, y, 0.4, 0.1, v, true, ct_w) y = y + 0.15 addEventHandler ("onClientGUIClick", b, spawnct) addEventHandler ("onClientMouseEnter", b, hover) end guiSetVisible (spawn_w, true) guiSetVisible (t_w, false) guiSetVisible (ct_w, false) addEventHandler ( "onClientGUIClick", t_b, t_spawn) addEventHandler ( "onClientGUIClick", ct_b, ct_spawn) addEventHandler ( "onClientGUIClick", spec_b, spec_join) end function spawnMenu () guiSetVisible (spawn_w, true) showCursor (true) end function buyMenu () end function gri_click () guiCreateStaticImage ( 0.4, 0.1, 0.6, 0.9, v..".png", true, t_w) end addEvent ("loadmap", true) function buy () if source == dealge_b then triggerServerEvent ("weapon", getLocalPlayer(), 24) elseif source == shot_b then triggerServerEvent ("weapon", getLocalPlayer(), 25) elseif source == spaz_b then triggerServerEvent ("weapon", getLocalPlayer(), 27) elseif source == mac_b then triggerServerEvent ("weapon", getLocalPlayer(), 28) elseif source == tec_b then triggerServerEvent ("weapon", getLocalPlayer(), 32) elseif source == mp_b then triggerServerEvent ("weapon", getLocalPlayer(), 29) elseif source == ak_b then triggerServerEvent ("weapon", getLocalPlayer(), 30) elseif source == m4_b then triggerServerEvent ("weapon", getLocalPlayer(), 31) elseif source == awp_b then triggerServerEvent ("weapon", getLocalPlayer(), 34) end end function loadmap () --buyMenuGUI buy_w = guiCreateWindow (0.2, 0.1, 0.6, 0.8, "Buy Menu", true) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, buy_w ) --guiSetVisible (buy_w, false) --local wl = getElementChildren (getElementByID("wl")) --outputDebugString (tostring (wl)) --[[for k, v in ipairs (wl) do local type = getElementData (v, "type") if type == Pistols then if buy_w_p ~= true then buy_w_p = guiCreateWindow (0.2, 0.1, 0.6, 0.8, "Pistols", true) end local name = getElementData (v, "name") local cost, ammo, model = getElementData (v, "cost"), getElementData (v, "ammo"), getElementData (v, "model") local b = guiCreateButton (yp, 0.1, 0.3, 0.1, name, buy_w_p, true) setElementData (b, "cost", cost) setElementData (b, "ammo", ammo) setElementData (b, "model", model) yp = yp + 0.15 end end]] buy_w_p = guiCreateTab ("Pistols", tabPanel) deagle_b = guiCreateButton (0.05, 0.1, 0.3, 0.075, "Desert Eagle", true, buy_w_p) addEventHandler ( "onClientGUIClick", deagle_b, buy ) buy_w_s = guiCreateTab ("Shotguns", tabPanel) shot_b = guiCreateButton (0.05, 0.1, 0.3, 0.075, "Mosberg 500", true, buy_w_s) spaz_b = guiCreateButton (0.05, 0.2, 0.3, 0.075, "S.P.A.Z-12", true, buy_w_s) buy_w_m = guiCreateTab ("SMG's", tabPanel) mac_b = guiCreateButton (0.05, 0.1, 0.3, 0.075, "Mac-10", true, buy_w_m) tec_b = guiCreateButton (0.05, 0.2, 0.3, 0.075, "Tec-9", true, buy_w_m) mp_b = guiCreateButton (0.05, 0.2, 0.3, 0.075, "MP-5", true, buy_w_m) buy_w_r = guiCreateTab ("Rifles", tabPanel) ak_b = guiCreateButton (0.05, 0.1, 0.3, 0.075, "AK-47", true, buy_w_r) m4_b = guiCreateButton (0.05, 0.1, 0.3, 0.075, "M4", true, buy_w_r) awp_b = guiCreateButton (0.05, 0.1, 0.3, 0.075, "AWP", true, buy_w_r) buy_w_e = guiCreateTab ("Equipment", tabPanel) end function pos () x, y, z = getElementPosition (getLocalPlayer()) outputDebugString ( "posX="..x.." posY="..y.." posZ="..z, 1 ) end addCommandHandler ("savepos", pos) addEventHandler ("loadmap", getRootElement(), loadmap) addEventHandler ("onClientResourceStart", getResourceRootElement(getThisResource()), startup) Please note that the whole "loadmap" event thingy is way to complicated as the mapmanager already has the right events for that ("onGamemodeMapStart") And the whole gamemode is acutally really inefficient as at that time for example I didn't knew that the spawnmanager exists and therefore i used own map elemnts that would have been needless and got the spawnpoint coordinates by using getElementData and so on^^
  20. In dp3 you can minimize the game when you're not connected to a server.
  21. My server is still running assault and interstate but until i uploaded my new gamemode today it wasn't really popular so i guess no one noticed... votemanager should be turned on so just use /votemap interstate69/assault if you want to play the modes http://www.game-monitor.com/mta_GameSer ... erver.html Uhm maybe i should mention that the server seems to crash regulary if the assault mode is beeing played (Memory error) and the server is sometimes a bit laggy because it's just a cheap virtual server
  22. It definatly can be treated as cheating... Imagine the same thing in shooters like Counter-Strike; Replacing the water texture gives you an advantage over other players. And scarface just because mta runs fine with enb series it doesnt say it's allowed to use it in mta^^ than sobeit wouldn't be forbidden too
  23. i recommend using setVehicleDamageProof it's much more effective and easier than setting the health to 100 every few miliseconds
  24. of course it's not a picture of the current state (it shows the the editor as an external application ), well i would even bet it was completly rescripted from scratch in the meantime but at least it's something... and if it already looked like this 2 years ago including an entity tree and all those menu bar items at the top i wonder how much more useful it will be these days
  25. Are you sure about that? http://development.mtasa.com/index.php? ... oldid=6651
×
×
  • Create New...