Raised This Month: $ Target: $400
 0% 

Show name users.ini


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-28-2013 , 12:02   Show name users.ini
Reply With Quote #1

This shows the Steamid in Users.ini

but i want to show Name to can i some how do that?

Code:
public cmdAdminRemove(id)
{
 static iMenu;
 iMenu = menu_create("\r[%s]\y Admin Menu - v2.0\r by SnusMumrikeN^n\y- Remove Admin", "RemoveMenuHandler");
 
 static sBuffer[128], sTempItem[128];
 static sTemp[4][STR_LEN];
 
 static iFileP;
 iFileP = fopen(gAdminsFile, "rt");
 
 while(!feof(iFileP))
 {
  fgets(iFileP, sBuffer, sizeof sBuffer - 1);
  
  if((strlen(sBuffer) < 3) || sBuffer[0] == ';')
   continue;
  
  parse(sBuffer, sTemp[0], sizeof sTemp[] - 1, sTemp[1], sizeof sTemp[] - 1, sTemp[2], sizeof sTemp[] - 1, sTemp[3], sizeof sTemp[] - 1);
  
  for(new j = 0 ; j < sizeof sTemp ; j++)
  {
   remove_quotes(sTemp[j]);
  }
  
  formatex(sTempItem, sizeof sTempItem - 1, "\w%s\r|\w%s\r|\w%s\r|\w%s\r", sTemp[0], sTemp[1], sTemp[2], sTemp[3]);
  
  menu_additem(iMenu, sTempItem, "", 0, -1);
 }
 fclose(iFileP);
 
 menu_addblank(iMenu, 0);
 menu_display(id, iMenu, 0);
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-01-2013 , 00:47   Re: Show name users.ini
Reply With Quote #2

If your admins are defined by SteamID (like they should be) then there is no name in the file to get. I've written at least one plugin that will get an extra piece of information from users.ini by adding another parameter in the file (the admin's name). That is probably what you should do too.


See here: http://forums.alliedmods.net/showthread.php?t=144788
__________________

Last edited by fysiks; 03-01-2013 at 00:49.
fysiks is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 03-01-2013 , 08:15   Re: Show name users.ini
Reply With Quote #3

SOLVED
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 03-01-2013 at 08:42.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Reply



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 21:44.


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