Raised This Month: $ Target: $400
 0% 

Some lil bug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ich bin #verpeilt?!
Junior Member
Join Date: Aug 2004
Location: Germany
Old 08-30-2004 , 16:31   Some lil bug
Reply With Quote #1

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?!
ich bin #verpeilt?! is offline
Send a message via ICQ to ich bin #verpeilt?!
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode