Jump to content

quality

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by quality

  1. So I was inactive for a bit (on and off SAES, player since 2010ish). But today, I was going through my spam folder cleaning it up and somehow a notification for this post was there. WTF! The emails I used for my gta/mtasa needs were from waay back some even inactive etc. Anyway, wanted to login here after years just to say thank you to everyone that contributed. It means a lot to players that grew up playing MTA. The fact that you guys are keeping it updated in 2021 shows just how passionate all of you are in whatever you are doing. keep it up ! just imagine in 50 years mtasa servers still running. this is legendary! - quality
  2. function giveWeapon() local theDude = isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) givePedWeapon ( theDude, 36, 5000, true) end addEventHandler("onPlayerSpawn",getRootElement(),giveWeapon) I have this as my client.lua in meta is like this: What am I doing wrong? I just need on spawn as admin to get a weapon. Thanks
  3. quality

    \\solved

    \\ function stopDamage () if getPlayerTeam(source) == getTeamFromName("Admin") then cancelEvent() end end addEventHandler("onClientPlayerDamage", getRootElement(), stopDamage) had to specifiy type="slient" in meta.xml
  4. What I tried to do is connect using wi fi from my iPhone with hotspot. I got same problem, the mta server auto-detected the external IP of my hotspot network, not the local. What could this be? windows or mta problem? sure it's not a router problem as I tried two different networks. also when I installed mta, i had a issue, it said could not install microsoft visual studio 2003 or whatever year, but the installation will continue, could this be a cause?
  5. It's invalid because the "external IP" is the IPv4 address used to access your router from the outside world. Why would you forward a port in your router to your router? Your operating system has nothing to do with your IP addresses. Did you install your router at the same time as you reinstalled your operating system? game-state has nothing to do with this either, like all devices outside your LAN they can only see your routers IP (the one you call "external"). That's the IP used to communicate with your network from the outside world. If you changed your server there is a chance that you deleted the key files which caused your server to generate new keys, that means it will look like a different server. game-state sees a different server as well. See above answer and don't worry about game state, offline servers are removed after a month and if a new server appears on the same IP and port you should be able to claim it, otherwise it's a problem related to game state. They deleted my server, so it is not a game-state related problem. I don;'t know what to do next. I'm trying to make a counter strike source server and see if I have the same problem. Any other adivce?
  6. While it should have been my PUBLIC ip, below you can see when I join its my 192.etc.etc which is my local ip. Basically my problem is, the local and external IPs are changed with places, the external IP is in place of local IP and the local IP is in place of external IP, Please help me, anyone. Thank you.
  7. It worked just fine before, I really don't get it. Why does it says this: ? Before the *auto detect ip was my local IP now its my external. Why?
  8. I know how to port forward. Everything worked fine before. When I start my server, it auto-detects my external IP not LOCAL. If it was local I would not have posted this topic. Anyone can help me out? And I cannot port forward my external IP in my router config.
  9. Your local IP is provided by the DNS server in your router and your router has a firewall to block external services from tracking your local IP's, at least until IPv6 i released. This is because there isn't enough IPv4 addresses available to all devices connected to the internet, forcing some devices to share one. Thanks man, and how do you fix that?
  10. and? I know how to use the cmd to find that, I did not ask for that. I know that. Tell me how to make to open my server and when it auto detects the ip to my ipv4 not to my external ip such as myipaddress.com. i would be happy if you told me that, not how to see my local ip, smart ass
  11. Hi guys. I have a problem. I installed my windows yesterday. Before that, my mta server was running perfect locally and also was open for public. all my ports were open. Today when I started the server, it detected my automatic ip as my external ip. For instance, myipadress.com, the ip displayed there would be the same as in my cmd*console window. When I join in-game, in Local, the ip is set to my local ip which of course starts with 192. I cannot port forward because when I go into my modem settings and try to use the external IP because that is the one the mta server displays on my desktop, it says invalid ip, of course, it has to be a 192 ip, the local ip that you're trying to port forward. Now my issue is, why does it auto detect the external ip and not the local ip? It worked just fine before and yes I tried to restart my modem. Thank you
  12. Does not work. unfortunately. But Enargy's script works perfectly and it is exactly what I want. I have no clue why you ended your script with ;, Engary's is smaller and more compact. Maybe you can explain what you tried to do lol. But enargy thank you man! appreciate works as I want.
  13. I get in console: bad argument at seTimer line 26 which is setTimer ( function ( p ) and in-game when I die as admin, I stay like this As regular player I also do not spawn. *EDIT:
  14. I have the following in the play gamemode I created. It's the last part of the script. addEventHandler( "onPlayerWasted", getRootElement( ), function() setTimer (spawnPlayer, 1500, 1, source, 202.47, 99.30, 4.4 ) setElementModel ("onPlayerSpawn", source, 135) end ) Everything works perfect but setElementModel. When I die it happens this: What am I doing wrong? thank you. Also second little problem is this: I'm trying to make the adminteam script so when an admin dies he should spawn to his specified spawn not the random player's spawn.(the first example). So what I've done in the adminteam resoruce is (also the last part of the script): function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then setTimer ("onPlayerWasted", spawnPlayer, 1500, 1, source, -1187, 179, 14) setElementModel ("onPlayerSpawn", source, 217) end end Thanks again.
  15. I appreacite that man. Fast and right. I have a question. What is it that I did not do right? It seems like I put the same eventHandler as you did, now everything works perfectly, when I did it, it never did, and the GOD is on did not even pop up in chat, only if i used the /god. What is it exactly you changed?" Thanks!
  16. Hi guys. I have the following. The script works perfectly. but. function toggleGodMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) outputChatBox("GOD if off",thePlayer,0,255,0) else setElementData(thePlayer,"invincible",true) outputChatBox("GOD is on",thePlayer,0,255,0) end end end addCommandHandler("god",toggleGodMode) the server side. How do I make so I do not need to type each time /god ? How do I make it on start.? I tried addEventHandler( "onPlayerLogin", getRootElement(), toggleGodMode ) instead of the addCommandHandler, what am I doing wrong? the client side. addEventHandler ( "onClientPlayerDamage",root, function () if getElementData(source,"invincible") then cancelEvent() end end) addEventHandler("onClientPlayerStealthKill",localPlayer, function (targetPlayer) if getElementData(targetPlayer,"invincible") then cancelEvent() end end)
  17. Thanks man! appreciate you answered so fast! Works fine and its more compact, appreciate.
  18. Hi guys. I have made a simple admin team and want to make a perm skin for admin. I've tried in different ways, i don't know how exactly how to make it. as I am still learning programming. below is the script and the last part is the one im struggling, you will notice. whenever i spawn i do not get the skin 217. function createAdminTeamOnStart (Admin) AdminTeam = createTeam ( "Admin", 192, 192, 192 )-- ccreate and name end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler function nametagColorChange() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then setPlayerNametagColor(source, 192, 192, 192) end end addEventHandler("onPlayerLogin", getRootElement(), nametagColorChange) function spawnPlayer() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then local x = -1656 local y = -425 local z = 15 spawnPlayer(source, x, y, z) setElementModel(player, 217) end end addEventHandler("onPlayerLogin", getRootElement(), spawnPlayer)
  19. Hi guys. I have a simple Admin team on spawn script created and I wanted to know how do I add a perm color to the team. To be more specific, what is the script in order for me to log into my server every day and get the same color for my in-game name? Below is the simple admin on spawn team, how do I add perm color to each admin that spawns in that team? I hope you understand, function createAdminTeamOnStart (Admin) AdminTeam = createTeam ( "Admin", 131, 139, 131 )-- create a new team and name it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler
×
×
  • Create New...