Jump to content

is there any?


Mr.ArO

Recommended Posts

Posted

never seen.

using admin powers to gain advantages = most lame thing admin can do on their servers

https://wiki.multitheftauto.com/wiki/Has ... rmissionTo or https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup and just cancelEvent() onPlayerDamage event

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

server.lua

addCommandHandler("godmode", 
function (thePlayer) 
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Sr.Admin")) then 
triggerClientEvent(thePlayer,"god_mode",thePlayer) 
end 
end) 

client.lua

addEvent("god_mode",true) 
addEventHandler("god_mode",getRootElement(), 
function () 
addEventHandler ( "onClientPlayerDamage", getRootElement(), function() cancelEvent() end) 
end) 

meta.xml

<meta> 
    <info author='Castillo' version='1.0' name=God mode' description= type='script' /> 
    <script src='client.lua' type='client' /> 
    <script src='server.lua' type='server' /> 
</meta> 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted (edited)

Solidsnake14 thanx very much for help but where are the server.lua, client.lua and meta.xml (i'm noob in this work :( )

Edited by Guest
Posted

i gave you the code! just create a new folder and 3 files.

1. server.lua

2. client.lua

3. meta.xml

and paste the code acording to file.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

=========================================================== 
= Multi Theft Auto: San Andreas v1.0.4 
=========================================================== 
= Server name      : GtaLive MTA Server 
= Server IP address:  
= Server port      : 20031 
=  
= Log file         : ../mta/server/mods/deathmatch/logs/server.log 
= Maximum players  : 32 
= MTU packet size  : 1264 
= HTTP port        : 20031 
=========================================================== 
[2010-12-26 10:48:57] ERROR: Couldn't parse meta file for resource 'godmod' 
[2010-12-26 10:48:57] Loading of resource 'godmod' failed 
[2010-12-26 10:49:09] Resources: 267 loaded, 0 failed 
[2010-12-26 10:49:09] Querying game-monitor.com master server... success! 
[2010-12-26 10:49:10] Starting resources........... 
[2010-12-26 10:49:13] Server started and is ready to accept connections! 

when i am starting appears this what to do?? :o

Posted

just download that one Solid gave you -.-

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

you don't even read the code, right? login as admin and type /godmode

damn kids

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

open server.lua and remplace "Sr.Admin" with "Admin" and then should work.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You are doing something wrong, learn how to install/edit scripts. it worked fine at my server without problems.

P.S: i will stop posting on this topic because you won't even learn how to edit a script.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
It's not "Sr.Admin" or "Admin", it's "Administrator".

If you don't have it set up in ACL to the point where you're an admin, see this

That's all I'm gonna say on this.

I have a group named "Sr.Admin" which has full control over my test server, some times i invite people and i need to give them admin powers but they don't have enough to f*** something ;)

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Stop spamming Neukfout.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...