Raised This Month: $ Target: $400
 0% 

find_player SteamID||Name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Damocles
Member
Join Date: Jan 2005
Old 01-26-2005 , 11:10   find_player SteamID||Name
Reply With Quote #1

Hey guys n gals

Just writing my first plugin that executes a function on a client and finds the client either by part of their name or their steam id.

Is there a better way to figure out whether an admin has entered a steamid or a players name than the way i've written it ....

(sure there is because if you see my NOTE, theres a flaw)

Code:
    read_argv(1,target,31)     // If the first characters of the target = 'STEAM:'     // NOTE this will have issues if someone plays with 'Steam' as part of their name...     if (equal("STEAM:", target, 6) {                  // Admin entered a steamid for the target                  uid = find_player("chl", target)                  ......         }         else {                  // Else admin entered part of the targets name                  uid = find_player("bhl", target)                  ......         }

Thanks for any help

Damo.
Damocles 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 19:29.


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