AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   No.1 player in top15 (https://forums.alliedmods.net/showthread.php?t=143777)

OvidiuS 11-24-2010 16:50

No.1 player in top15
 
how to detect nickname of player who is number 1 in top15?

BackStats 11-24-2010 16:52

Re: No.1 player in top15
 
use nVault editor

Exolent[jNr] 11-24-2010 16:54

Re: No.1 player in top15
 
Quote:

Originally Posted by BackStats (Post 1355975)
use nVault editor

Unnecessary.

http://www.amxmodx.org/funcwiki.php?go=func&id=919

Use 0 for index.

OvidiuS 11-24-2010 16:55

Re: No.1 player in top15
 
can you tell me what is specific part od code do get player name from rank vault
p.s thx exolent

OvidiuS 11-24-2010 17:33

Re: No.1 player in top15
 
can't make it work, i dont know how to use it, to get name of player who is first in top 15 :S
PHP Code:

public Info(id)
{
 static 
stats[8], body[8], name[32]
 new 
number_one get_stats(0statsbodyname);
client_print(idprint_chat"B.....



Exolent[jNr] 11-24-2010 17:45

Re: No.1 player in top15
 
How can you not know?
The funcwiki shows how to use the function.
All you have to do is call the function and you have the name in the variable.

fysiks 11-24-2010 18:21

Re: No.1 player in top15
 
Quote:

Originally Posted by OvidiuS (Post 1356007)
can't make it work, i dont know how to use it, to get name of player who is first in top 15 :S
PHP Code:

public Info(id)
{
 static 
stats[8], body[8], name[32]
 new 
number_one get_stats(0statsbodyname);
client_print(idprint_chat"B.....



Revisit Exolent's link as you are not following what it says completely. Also, you'll need to learn how to use client_print().

OvidiuS 11-24-2010 18:43

Re: No.1 player in top15
 
i know how to use client_print xD (i put..... cause under it, it's another code............. :)
i dont know how to get name from vault, but nevermind
i can't learn if i don't try :)
thank you :P

fysiks 11-24-2010 19:49

Re: No.1 player in top15
 
Quote:

Originally Posted by OvidiuS (Post 1356043)
i know how to use client_print xD (i put..... cause under it, it's another code............. :)
i dont know how to get name from vault, but nevermind
i can't learn if i don't try :)
thank you :P

Afaik, you don't need to do anything with "vault" as Exolent said. Use the get_stat() command correctly is all that we are saying.


All times are GMT -4. The time now is 11:21.

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