Eclipse
January 05, 2009, 10:26:46 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Chat Help Rules Arcade Search Calendar Gallery Login Register  
 
 
 
Recent Topics +-
Party system : is it possible? by The Roujo
Today at 10:24:45 PM

Which version of eclipse do you like most for sadscripting? by The Roujo
Today at 10:24:19 PM

THE Cult by The Roujo
Today at 10:21:24 PM

Actual Map for the continents by FS:CG Admin[Shadowwulf]
Today at 10:20:45 PM

Disparity Recruiting by The Roujo
Today at 10:20:14 PM

World of Hyrule - Official Topic by Kreator
Today at 10:14:43 PM

Lostica [Project Revamp] by Kreator
Today at 10:12:58 PM

Free movies? by DrNova
Today at 10:10:40 PM

~ Paradise uncharted ~ Supported by Dezire Software Forums by slym
Today at 10:07:06 PM

I need a little help by waffletamer
Today at 10:03:40 PM

Members Online +-
13 Guests, 19 Users
UnknownChick76,
shakadaran,
HawkStorm95,
Smile!,
dg1423,
hammer,
Sablefalcon,
FS:CG Admin[Shadowwulf],
Karl,
The Roujo,
kira423,
Ambard,
slym,
Xandus,
Gwendalin,
Kreator,
DrNova,
‪‫‬‭‮‪‫Kusy,
Devogen
Pages: [1]
  Print  
Author Topic: Upgraded Admin Off Script  (Read 1051 times)
0 Members and 1 Guest are viewing this topic.
Heytherejake
Eclipse Evolution Dev
Active Member
***
Offline Offline

Posts: 426

Currently working on C++ 3D


View Profile WWW Email
« on: August 01, 2006, 10:39:00 AM »

Code: [Select]
If LCase(trim(textsay)) = "/adminoff" then
If getvar("access.ini", "status" , GetPlayerName(index)) = 0 Then
           call putvar("accounts\" & getplayerlogin(index) & ".ini", "CHAR" & getplayercharnum(index), "Admin", getplayeraccess(index))
           call putvar("access.ini", "status" , GetPlayerName(index), 1)
  Call setplayeraccess(index, 0)
           Call sendplayerdata(index)
           Call GlobalMsg(GetPlayerName(index) & " has gone off duty and no longer using admin powers!", 10)
        Else
Call PlayerMsg(index, "You already are access 0!", 4)
exit sub
          end if
end if

   If LCase(trim(textsay)) = "/adminon" then    
if getvar("access.ini", "status" , GetPlayerName(index)) = 1 then
call putvar("access.ini", "status" , GetPlayerName(index), 0)
           call setplayeraccess (index, getvar("accounts\" & getplayerlogin(index) & ".ini", "CHAR" & getplayercharnum(index), "Admin"))
           call sendplayerdata(index)
           Call GlobalMsg(GetPlayerName(index) & " Is now on Duty as a admin!", 10)
else
Call PlayerMsg(index, "You already are on duty as an admin!", 4)
           exit sub
           end if
end if


Add under /warpto
sjdrova
Active Member
***
Offline Offline

Posts: 110


View Profile Email
« Reply #1 on: August 01, 2006, 10:43:50 AM »

Cool.
I'm going to add this after I get off work.
You test it and everything?
Heytherejake
Eclipse Evolution Dev
Active Member
***
Offline Offline

Posts: 426

Currently working on C++ 3D


View Profile WWW Email
« Reply #2 on: August 01, 2006, 10:51:49 AM »

No, I am unable to test my scripts.....
My compy wont run servs for some reason, I need to try my dads...
Rithy58
Eclipse Helper
Active Member
***
Offline Offline

Posts: 176


Rithy58


View Profile Email
« Reply #3 on: November 04, 2008, 04:16:01 AM »

ummm... So Mod can becomd ADmin?
Pages: [1]
  Print  
 
 

Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.289 seconds with 33 queries.