Raised This Month: $ Target: $400
 0% 

GET ID


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jonatat
Senior Member
Join Date: Dec 2017
Old 07-08-2018 , 09:18   GET ID
Reply With Quote #1

I have a menu with current players in server. How can i take player STEAMID? Now i'm getting only my STEAMID not choosed player. My code:

PHP Code:
public showstats(id

new 
players[32], numszName[32], gt 
new statsmenu menu_create("CURRENT PLAYERS IN SERVER""showstats_exit"
get_players(playersnum); 
for(new 
i=0;i<num;i++) 

get_user_name(players[i], szNamecharsmax(szName)) 
gt players[i]
if(
get_user_flags(gt)) 

formatex(szNamecharsmax(szName), "%s"szName
menu_additem(statsmenuszName

menu_setprop(statsmenu,MPROP_EXITNAME,"Quit")
}
menu_display(idstatsmenu)
return 
PLUGIN_HANDLED;
}

public 
showstatsmenu(id

new 
szName[32]
new 
playerstatsmenu menu_create("Player STEAMID""showstats_exit"
new 
auth[32]; 
get_user_authid(idauthsizeof (auth));

formatex(szNamecharsmax(auth), "STEAM ID: %s"auth[id]) 
menu_addtext2(playerstatsmenuauth

menu_setprop(playerstatsmenu,MPROP_EXITNAME,"Quit")
menu_display(idplayerstatsmenu)
return 
PLUGIN_HANDLED;

I want:

CURRENT PLAYERS IN SERVER MENIU:

1) Player1
2) Player2
3) Player3
and etc.

I choosed: Player 1 by pressing 1 and get another meniu with:

Choosed Player 1 menu:

STEAM ID: STEAM_0:0:1234543

Thanks for helping!
jonatat 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 14:49.


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