k, here's some kind of a beta version of the program: http://mta-stats.com/downloads/mtala.rar
if you have some problems tell me. It has some list of scripting functions inside.
some simple scripts look like that:
addEventHandler ( "onPlayerJoin", "onPlayerJoin" )
function onPlayerJoin ( id )
sendMessage ( id, "welcom to my server, "..getPlayerName ( id ) )
end
addEventHandler ( "onPlayerChat, "onCommand" )
function onCommand ( id, text )
local tokens = string.split ( text )
if ( tokens[1] == "!info" ) then
sendChat ( "Admin Panel by lil_Toady" )
end
end
ah ye, a bit messy with connecting atm, via command string it is:
MTA Admin.exe <ip> <port> <name> <password>
like this:
MTA Admin.exe 127.0.0.1 4003 Admin 12345
it's defaulted to that ^
My TODO list:
finally add banPlayer(), kickPlayer(), banIP() (yeh im lazy )
sql support
file writing/reading
getVehicleColor()
gettok()
accepting function request if somebody is even gonna use this
might do a version for race if someone needs it
and if somebody knows c++ and wants to do a gui version, im fine with sharing the sources