Hi guys,
a friend of mine is just working on a CS 1.5 server so he installed AMXX, WC3FT, Admin Mod to it...
well because of the crackfix to let us play CS 1.5 there are NO valid wonids..
all people got the same!
so i thought i shall make a little changes to admin.sma / .amx so that people dont be only admin when they have the "name" entered in users.ini..
well i thought when i let AMXX get informations from the client like the password. so i called it _adminid and changed this in the admin.sma
on the top to the other declarations:
Code:
register_cvar("amx_id_field","_aid")
this i changed in AccessUser!
Code:
remove_user_flags(id)
new userip[32],userauthid[32],password[32],passfield[32],adminid[32],idfield[32]
get_user_ip(id,userip,31,1)
get_user_authid(id,userauthid,31)
//if ( name[0] ) copy( username , 31, name)
//else get_user_name(id,username,31 )
get_cvar_string("amx_id_field",idfield,31)
get_user_info(id,idfield,adminid,31)
get_cvar_string("amx_password_field",passfield,31)
get_user_info(id,passfield,password,31)
new result = getAccess(id,adminid,userauthid,userip,password)
if (result & 1) client_cmd(id,"echo ^"* Invalid Password!^"")
if (result & 2) {
awww well i changed the function name to "accessUser( id )"
because the compiler said the 2nd var wouldt cause an error...
as you can see it asks for "setinfo _aid" in clients config..
it works! but the flags for each users are the same! all got WHOLE admin rights! -> "bfghijklmnopqrstuy"
this is all i changed.. and i dont know why its not working...
could anybody help me please?!