AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Getting user's ping (https://forums.alliedmods.net/showthread.php?t=245163)

EpicKiller 07-29-2014 05:16

Getting user's ping
 
Hi! What's the right way of using get_user_ping? I can't get it to work with get_user_ping(id), I have looked it up in the AMXX Documentation, but the data there did not really help me.

So, how can I get it right?

Flick3rR 07-29-2014 05:20

Re: Getting user's ping
 
Look at High Ping Kicker, there are some examples of the uses of this native.

EpicKiller 07-29-2014 05:43

Re: Getting user's ping
 
Yeah, that crossed my mind... I just thought it would be shorter to ask here. But you've got a point, that's what I'll do. Thanks!

Nextra 07-29-2014 06:34

Re: Getting user's ping
 
You should try to use the function wiki, a simple search for "ping" will only find the correct native: http://www.amxmodx.org/funcwiki.php?...ping&go=search

EpicKiller 08-05-2014 03:01

Re: Getting user's ping
 
Quote:

Originally Posted by Nextra (Post 2175610)
You should try to use the function wiki, a simple search for "ping" will only find the correct native: http://www.amxmodx.org/funcwiki.php?...ping&go=search

I preffer the AMXX Documentation, it is more... detailed. Anyway, as you can see in my first post, I did find the function. My problem was that I did not know how to use it properly.

fysiks 08-05-2014 16:25

Re: Getting user's ping
 
As far as I know there isn't really any up-to-date "AMXX Documentation". The best source of information is the include files, other plugins, and searching on the forums.

EpicKiller 08-12-2014 04:54

Re: Getting user's ping
 
Quote:

Originally Posted by fysiks (Post 2179447)
As far as I know there isn't really any up-to-date "AMXX Documentation". The best source of information is the include files, other plugins, and searching on the forums.

Yes, you've got a point there. The AMXX Documentation is truly outdated. Many functions mentioned there are now changed, removed or replaced.

YamiKaitou 08-12-2014 04:59

Re: Getting user's ping
 
Quote:

Originally Posted by EpicKiller (Post 2182690)
Yes, you've got a point there. The AMXX Documentation is truly outdated. Many functions mentioned there are now changed, removed or replaced.

The documentation that you are using isn't even linked to from anywhere (not to mention it is from 1.60). I'd recommend not using it.

zmd94 08-12-2014 05:05

Re: Getting user's ping
 
Quote:

Originally Posted by fysiks (Post 2179447)
As far as I know there isn't really any up-to-date "AMXX Documentation". The best source of information is the include files, other plugins, and searching on the forums.

I agreed. :up:

I have learn a lot by looking at the other plugins. Then, I learn to make my own plugins with the help from others.

EpicKiller 08-12-2014 05:10

Re: Getting user's ping
 
Quote:

Originally Posted by zmd94 (Post 2182699)
I agreed. :up:

I have learn a lot by looking at the other plugins. Then, I learn to make my own plugins with the help from others.

Yeah, that indeed sounds like the most efficient learning method.


All times are GMT -4. The time now is 13:05.

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