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