get Steam Id, match names
Hello,
I wasn't sure what kind of Title to give to the topic, I hope it wasn't misleading. I have recently began scripting in amxx, and I might as well say, that functions page rocks, and the Studio is very useful as well. I am looking to do a couple of things, different scripts for different things. First of all, I am trying to find a method to get someone's steam id using amxx. I didn't find something on the functions page, although I may have missed something. The 2nd thing, well.. I have a command that has as a parameter a username. Thing is, it's case sensitive and has some restrictions. E.g: if I have a nick CyberMaN and enter: command CyberMan (No effect) command CYberMaN (No effect) command CyberMaN (matches, effect) Also, I want something like this: command Cyber (searches for match, matches CyberMaN as its the only nick with that string, effect) I hope I was detailed enough. Thanks for the time taken to read this post, and in advance to your replies. Regards, James. |
Re: get Steam Id, match names
For the steam id that is easy as I show you an example of how I do it below. But for your 2nd request I couldn't say intil I tried it on my private server.
This example pretty much finds out your steam id and than display's it in the chat window in green text, it also plays a sound clip "blip" so you can hear that something popped up on the chat window. PHP Code:
|
Re: get Steam Id, match names
Thanks, that solves my first question, much appreciated.
Anyone with answers on the 2nd? Regards, James. |
Re: get Steam Id, match names
Oh, also, I'm implementing a command that does:
server_cmd("amx_command %s %s %s %s %s", var, var2, var3, var4, var5); The 2nd and the 4th %s need to have quotes ("") in order for their values to be parsed properly, how can I do that? I tried surrounding them with ' but no luck. Any ideas? Regards, James. |
Re: get Steam Id, match names
quotes are done like ^" and new lines are ^n
|
| All times are GMT -4. The time now is 18:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.