Raised This Month: $ Target: $400
 0% 

Use something if SteamID matching?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LynX
Veteran Member
Join Date: Oct 2004
Old 04-05-2005 , 07:30   Use something if SteamID matching?
Reply With Quote #1

I would like to make that you can use one function only if your SteamID matches with those in plugin.
So, can you show me an example of that ( an array with stored SteamID's and restriction if not using same SteamID ) ? Thanks.
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 04-05-2005 , 11:32  
Reply With Quote #2

here's the easiest example:

Code:
new steamid[32] get_user_authid(id,steamid,31) if(equal(steamid,"STEAM_0:1:23456")){     client_print(id,print_chat,"You have been recognized by the plugin with SteamID: %s",steamid) } else {     client_print(id,print_chat,"Your SteamID: %s is unknown by the plugin!",steamid) }

hope that helps
FeuerSturm is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 04-05-2005 , 11:48  
Reply With Quote #3

Hmm FireStorm - How does the plugin know what SteamID should match to? Reading from a file?
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 04-05-2005 , 11:53  
Reply With Quote #4

in my example i simply wrote the steamid into the code,
but you can make the plugin read steamids from file
and make it compare them like this:


Code:
new steamid[32] get_user_authid(id,steamid,31) new steamidlist[64] get_configsdir(steamidlist,64) format(steamidlist,63,"%s/steamidlist.cfg",steamidlist) if(file_exists(steamidlist)){     new steamidline[128],a,line = 0     while(read_file(steamidlist,line++,steamidline,128,a)){         if(equal(steamid,steamidline)){             client_print(id,print_chat,"You have been recognized by the plugin with SteamID: %s",steamid)         }         else {                 client_print(id,print_chat,"Your SteamID: %s is unknown by the plugin!",steamid)         }     } } else if(!file_exists(steamidlist)){     log_amx("SteamID List not found!") }
FeuerSturm is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 04-05-2005 , 11:55  
Reply With Quote #5

Ooh okay
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
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 09:52.


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