get player name if the player trying to login to rcon
#3

Well if he's connected you will need to use GetPlayerName like this:
Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
Not really sure if this is the basic thing you were asking of... Do you want to print it on your system or tell you in game or...

And if he's not connected, use a callback to get the player's name from the IP from your database etc...
Reply


Messages In This Thread
get player name if the player trying to login to rcon - by PowerF - 08.08.2015, 16:44
Re: get player name if the player trying to login to rcon - by xVIP3Rx - 08.08.2015, 16:52
Re: get player name if the player trying to login to rcon - by JimmyCh - 08.08.2015, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)