This topic was marked solved by its starter, on April 24th, 2020, 04:52 AM
what command to be a admin on server

UncleRus

  • Full Member
  • Posts: 150
I LoperkinDead.My brothers scripters TimyrSem,VladSem

Razor.

  • Jr. Member
  • Posts: 95
Re: what command to be a admin on server
« Reply #1,  »
Here have one simple command to toogle your admin level, by me.

Code: [Select]
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "admin" )
{
if ( player.IP != "127.0.0.1" /*<--- your ip here*/ ) MessagePlayer( "You don't have acess for this command.", player );
else if ( !text ) MessagePlayer( "[Sintax] Use: /admin <on/off>", player );
else if ( text == "on" )
{
if ( player.IsAdmin == true ) MessagePlayer( "You already have admin level.", player );
else
{
player.IsAdmin = true;
MessagePlayer( "Admin level enabled.", player );
}
}
else if ( text == "off" )
{
if ( player.IsAdmin == false ) MessagePlayer( "You already are without level.", player );
else
{
player.IsAdmin = false;
MessagePlayer( "Admin level disabled.", player );
}
}
else MessagePlayer( "Invalid option, use <on/off>", player );
}
}
[code]

UncleRus

  • Full Member
  • Posts: 150
I LoperkinDead.My brothers scripters TimyrSem,VladSem

Razor.

  • Jr. Member
  • Posts: 95

UncleRus

  • Full Member
  • Posts: 150
Re: what command to be a admin on server
« Reply #4,  »
я точно не помню комманду ну она начиналась как то так level[0]set=2 или как то ёще я просто не помню
I LoperkinDead.My brothers scripters TimyrSem,VladSem

umar4911

  • Hero Member
  • Creating own server!
  • Posts: 527
Re: what command to be a admin on server
« Reply #5,  »
There are many ways to be an admin. I guess you're using class so you need to change the value of the respective element to be an admin like Stats[player.ID].Level = 6
I am gamer, programmer and hacker. Try to find me!
xD