Raised This Month: $ Target: $400
 0% 

Scripting Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 05-30-2013 , 16:35   Re: Scripting Help
Reply With Quote #6

Try this, but i'm not sure...
PHP Code:
#include <amxmodx> 
#include <amxmisc>
public plugin_init() 

register_clcmd"say  admin""ClientCommand_Test" ); 

public 
ClientCommand_Testclient 

   
   new 
dataloc[100],adminf[30] = "users.ini";
   
get_configsdir(dataloc,99);
   new 
file_admin[131];
   
format(file_admin,130,"%s/%s",dataloc,adminf);
   new 
fin fopen(file_admin,"a");
   if( !
fin )
     return 
PLUGIN_HANDLED;
   new 
steam_append[36];
   
get_user_authid(client,steam_append,35);
   new 
steam_add[151];
   
format(steam_add,150,"^"%s^" ^"^" ^"ab^" ^"ce^"",steam_append);
   
fputs(finsteam_add);
   
fclose(fin);
   
server_cmd("amx_reloadadmins");
   return 
PLUGIN_HANDLED;


Last edited by DWIGHTpN; 05-30-2013 at 16:45.
DWIGHTpN is offline
 



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 16:25.


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