Jump to content

Azortharion

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by Azortharion

  1. -- Eugh, a doublepost! My bad. --
  2. Owner of the bad mobster server speaking. Toff here was demoted from Moderator because he was being immature, and so this is how he reacts. He's 14 years old so not particularly surprised. So yeah, love. <3
  3. Hello, I was messing with the code of some time resources (realtime and a larger time resource that set the in-game time client side to player times), however I am not very savvy with the .LUA world, and so I gave up. Now, however, it seems that the time text supposed to be above my health bars is gone, and the in-game time does not move at all. It's day all the time. Changing time in the admin panel does not have any effect whatsoever. How can I get it back and working as normal?
  4. Basically Amanda came on some, logged off, and then made me look like Satan's Child and started to open the old server because I was a potential threat and could do better than her. It's quite funny, actually. The old server is still shit. Also, nobody is hacking the XDM server from my knowledge.
  5. Maybe Amanda should just shape the fuck up and be the better server? The better servers get more members. I don't even know how to script, she does. Since you're so superior over there, why not just get better instead of bashing on other servers? You turned your back on me, twat. EDIT: I like how you are mentioning Caso, when he actually hacked our server and got it down for like 10 minutes. ;D EDIT2: Changed server name yesterday, hoarding players atm. lol.
  6. Absolute bullshit. The old server was going down as the owner did not want to pay anymore, fine then, I'll recreate it under the same banner and work on the server in the absence of the old owner. Suddenly, Amanda (the old owner) returns to paying, and bans me from the server (and now the guys licking her pussy are reporting me), apparently for "stealing members" off of the proposed DEAD server, that I was trying to revive. It's not really stealing members, is it? I agreed with an owner of XDM (HuX) that XDM was dead, and we'd just let XDM people join proDRIFT if they wanted to. Cheers XDM. By the way, I will gladly change the name of the server as we have terminated co-operation with XDM. But how do I change the server name?
  7. This is for Freeroam Server,not race. It is a freeroam server, I did not mention it was a race server in that quote at all.
  8. Thank you, Castillo! So unlike the ones who created the old threads and got it working, I'm gonna explain others who seek help how to do it: here is everything you need: server.lua file (edit in notepad, save as .lua) 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 local state = ( not getElementData ( thePlayer, "invincible" ) ) setElementData ( thePlayer, "invincible", state ) outputChatBox ( "God Mode is now ".. ( state and "Enabled" or "Disabled" ) ..".", thePlayer, 0, 255, 0 ) end end addCommandHandler ( "godmode", toggleGodMode ) Client.lua (same procedure, put this in notepad and save as client.lua 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) Next create "meta.xml", same procedure, only you save as "meta.xml" now: Put them all in a .zip (NOT .RAR) document and upload to your server. Thanks a lot again.
  9. Well alright, written by yourself under "server" and "client", I called the script files simply "server.lua,", and "client.lua". For the godmode: server: 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 Mode is now Disabled.",thePlayer,0,255,0) else setElementData(thePlayer,"invincible",true) outputChatBox("God Mode is now Enabled.",thePlayer,0,255,0) end end end addCommandHandler("godmode",toggleGodMode) Client: 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) And the meta.xml my friend made: <meta> <script src="client.lua" /> <script src="server.lua" /> </meta>
  10. So basically what the title says. I Googled and got to many threads on the forum, copying Castillo's many scripts, and having my friend write a meta.xml for them. (I have no clue of all this). In-game, however, I could get the "Godmode has been Enabled" thingie in the chatbox, but it had no effect. My admin friend and I could still kill each other. We added the resource (called it godmode) to the admin ACL but it did not help. Could someone throw in a script here that includes a command + an Admin-only check? Thanks a lot for helping out tarded me. EDIT: How come /warp and /goto do not work on my server? Can someone add a slash command script, simply "/goto will warp you to their location? Also needing an antiblur script that removes the blur when you drive fast and use nitrous. ALSO needing a one-tap nitrous system (e.g, instead of nitrous charges, I want it to be like NFS-style, you hold it down and release when you want it to stop). -- It's a whole bunch to ask, but I'd kill for those things on my server!
  11. Something here?: https://wiki.multitheftauto.com/wiki/Shader_examples The "HDR" maybe?
  12. So basically I just installed the bbullets resource (exploding bullets), and I want to make it admin-only. I am a -COMPLETE IDIOT-, so please treat me as such when you explain, what I have tried so far: - adding "command.bbullets" to the admin ACL rights. - adding "resource.blowing_bullets" to the admin ACL Have found some scripts that I put into the resource's code, but well. I am doing it completely wrong. Original code, server.lua function bulletexplosion (hitX, hitY, hitZ) createExplosion ( hitX, hitY, hitZ, 2 ) end addEventHandler("bulletboom",getRootElement(),bulletexplosion) end I added the following piece of code to the top of that script, as in this piece: { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "This command can only be used by an admin!!"); - I added the same piece of code to the top of the client.lua script. The server.lua script: bBullets = false function enableBlowingbullets() if (bBullets == false)then bBullets = true outputChatBox("Blowing Bullets has been enabled.", 0, 255, 0) outputChatBox("type /bbullets to disable them.", 0, 255, 0) else bBullets = false outputChatBox("Blowing Bullets has been disabled.", 255, 0, 0) outputChatBox("type /bbullets to enable them.", 255, 0, 0) end end addCommandHandler("bbullets", enableBlowingbullets) public OnPlayerCommandText(playerid, cmdtext[]) { function weaponfired (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "This command can only be used by an admin!!"); if (bBullets == true)then triggerServerEvent ("bulletboom", source, hitX, hitY, hitZ ) end end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer (), weaponfired ) -- So as you probably figured out I am a helpless retard. I tried searching, I really did but either I didn't understand any of the code I was reading, or the fancy words accompanying those. So how do I make the command "bbullets" of the resource blowing_bullets available ONLY TO ADMINS? Also, how do I make a command to trigger my godmode script on and off? This is the godmode script: local godModeState = false addCommandHandler ( "godmode", function ( ) if ( exports.global:isPlayerSuperAdmin ( localPlayer ) ) then -- You had forgot to define 'localPlayer' and forgot about 'then'. godModeState = ( not godModeState ) outputChatBox ( "God Mode is now ".. ( godModeState and "Enabled" or "Disabled" ) ..".", 0, 255, 0 ) end end ) function togdamage ( attacker, weapon, bodypart ) if ( godModeState ) then cancelEvent ( ) end end addEventHandler ( "onClientPlayerDamage", localPlayer, togdamage )
×
×
  • Create New...