find_player SteamID||Name
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:
Thanks for any help Damo. |
theres a stock in the AMXMISC include for this called cmd_target
|
|
ta for that BlueRaja
Ive taken a look at the code but where does the code distinguish between an entered players name and steamid I followed the code down to this bit Code:
so will cmd_target find a player based on their name OR steamid ?? The doc for cmd_target isnt the greatest work of literary art :/ Quote:
Ive only just started looking at small so im piecing things together Thanks for any reply :) |
ok this is getting to me now.
Im using cmd_target in my code and it does find players....but not all the time. I play using this handle.. -=F.L.1=- Damocles. When i try and execute a command on myself, typing the command and any of the following doesnt work: cmd damo cmd Damocles cmd ocles It just keeps telling me it cant find the player ??? is cmd_target the best code to use...because as far as i can tell, it doesnt work right...or at least aswell as find_player does with some arguements telling it to match substrings. |
Is the most recent snip of code you've posted the current? Anyway, read the entire documentation:
Quote:
|
| All times are GMT -4. The time now is 19:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.