Thank you supre ;3
Hey guys, can anyone edit this to use SteamID time counting not by name
Code:
#include <amxmodx> |
Re: STEAMID played time
i mean szName stay but the time counting to be on steamid, not the name
|
Re: STEAMID played time
Change
new g_szName[MAX_PLAYERS+1][32] to new g_szAuthID[MAX_PLAYERS+1][32] In client_authorized, change get_user_name(id, g_szName[id], charsmax(g_szName[])) to get_user_authid(id, g_szAuthID[id], charsmax(g_szAuthID[])) In client_disconnect(), change nvault_set(g_iVault, g_szName[id], szTime) to nvault_set(g_iVault, g_szAuthID[id], szTime) |
Re: STEAMID played time
Quote:
Save time by Name = 2 Save time by steamid = 1 Save time by IP = 0 Code:
|
Re: STEAMID played time
@Supremache:
1. You should set the appropriate value in g_szAuth[id] at client_authorized() instead of doing it twice--once at load and once at save. The goal is to call as few natives as possible in a plugin for efficiency. 2. There is no need to use anything but steam id as a unique identifier for a player. |
Re: STEAMID played time
1. I was want to use one value for everything "Name, steamid, ip" but well i did it
Spoiler
2. I want to give him every opptions togther in plugin "'Name, steamid, Ip", I do that because there's other people at sometime searching for this thing and making a new topic but as we saying in egypt i dont know how to say that but it's like, This is the end of the topic |
Re: Thank you supre ;3
I don't agree with your argument. There's no reason why anyone should use anything but the steam id to store player-specific data. Only people who do not have steam would want this, which AMX-X does not support.
|
Re: Thank you supre ;3
I gave him more options and he have the choice :D
Code:
|
Re: Thank you supre ;3
I understand that. My point is there is no point in using name or IP... steam ID should be the ONLY unique player identifier that is used.
|
Re: Thank you supre ;3
Quote:
|
All times are GMT -4. The time now is 23:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.