Jump to content

is there any?


Mr.ArO

Recommended Posts

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> 

Link to comment

=========================================================== 
= 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

Link to comment
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 ;)

Link to comment

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...