[Deprecated] AdminCommands Plugin

Started by ysc3839, Mar 21, 2015, 10:11 AM

Previous topic - Next topic

ysc3839

Set password in server.cfg.
Example:adminpass test
Type /admin login password in game to login!

Commands list:
/admin clientmessage <PlayerID> <Msg>
/admin gamemessage <PlayerID> <Type> <Msg>
/admin maxplayers <Max>
/admin settimerate <TimeRate>
/admin sethr <Hour>
/admin setmin <Minute>
/admin setweather <Weather>
/admin setgravity <Gravity>
/admin setgamespeed <Gamespeed>
/admin setwaterlevel <WaterLevel>
/admin setmaxheight <MaxHeight>
/admin setkillcmddelay <KillCmdDelay>
/admin setvehiclesforcedrespawnheight <VehiclesForcedRespawnHeight>
/admin setadmin <PlayerID> <IsAdmin>
/admin setplrworld <PlayerID> <WorldID>
/admin setplrname <PlayerID> <Name>
/admin setplrteam <PlayerID> <TeamID>
/admin setplrskin <PlayerID> <SkinID>
/admin setplrcolor <PlayerID> <Color>
/admin forceplrspawn <PlayerID>
/admin setplrmoney <PlayerID> <Money>
/admin setplrscore <PlayerID> <Score>
/admin sethp <PlayerID> <Health>
/admin setarmour <PlayerID> <Armour>
/admin setalpha <PlayerID> <Alpha> <FadeTime>
/admin kick <PlayerID>
/admin ban <PlayerID>
/admin banip <IP>
/admin unban <IP>
/admin ip <PlayerID>
/admin fps <PlayerID>
/admin uid <PlayerID>
/admin exitserver (It may cause server carsh.)
/admin serverinfo

More features will be added in future! :)

Updated: Server info!
See the picture


Downloads: https://bitbucket.org/ysc3839/0.4-admincommands/downloads

Reply this topic if you find any bug! :)

rObInX

Great work.

Don't think anybody still stick to rcon though.....

Sk

nice i saw that git many days ago good work some one will surely use it (squirrel_master etc etc etc etc)
and one question why did you call this function when you were not even doing something with it.
void OnShutdownServer()
{

}

ysc3839

Quote from: Sk on Mar 21, 2015, 02:28 PMnice i saw that git many days ago good work some one will surely use it (squirrel_master etc etc etc etc)
and one question why did you call this function when you were not even doing something with it.
void OnShutdownServer()
{

}
I will add server info function, which use some textdraw to show it. So it's necessary to delete textdraw when server shutting down.

MacTavish


Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

MatheuS

if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

ysc3839

Updated. Add "goto" and "bring"
/admin goto <PlayerID>
/admin bring <PlayerID>

Download: https://bitbucket.org/ysc3839/0.4-admincommands/downloads

MacTavish

Nice but i need in .so extension can anyone compile it for linux :/

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Thijn

The server can easily crash using this. So either make it check arguments much much better or don't use it at all.

ysc3839

Quote from: Thijn on Apr 04, 2015, 02:02 PMThe server can easily crash using this. So either make it check arguments much much better or don't use it at all.
Could you tell me what's wrong with it?

ysc3839

Quote from: Beztone on Apr 04, 2015, 08:45 AMNice but i need in .so extension can anyone compile it for linux :/
Sorry, I don't know Linux development, so ask others for help.

Stormeus

Quote from: ysc3839 on Apr 05, 2015, 12:27 AM
Quote from: Thijn on Apr 04, 2015, 02:02 PMThe server can easily crash using this. So either make it check arguments much much better or don't use it at all.
Could you tell me what's wrong with it?

One thing that sticks out to me is that there are no null pointer checks, so entering a bunch of blank spaces for a command (or not specifying a command and just typing /) could crash the server.

ysc3839

Quote from: stormeus on Apr 05, 2015, 03:15 AM
Quote from: ysc3839 on Apr 05, 2015, 12:27 AM
Quote from: Thijn on Apr 04, 2015, 02:02 PMThe server can easily crash using this. So either make it check arguments much much better or don't use it at all.
Could you tell me what's wrong with it?

One thing that sticks out to me is that there are no null pointer checks, so entering a bunch of blank spaces for a command (or not specifying a command and just typing /) could crash the server.
I tested. But it haven't crash... ???

ysc3839

And somebody could developing this plugin together?

ysc3839