Check name.
#1

Quote:

Verify that player is already logged in with the same account name and kick.

Hello community, I have a problem, I'm doing a gamemode from scratch and I would like to know how I can check if the player is already online, for example, player 1 first entered the server, and his name was saved in the function:

PHP код:
format(PlayerData[playerid][pConta], 60nome); 
Okay, so he needs to pick a character he has on that account, and picking it out is the name of his character:

PHP код:
SetPlayerName(playeridAccount[playerid][pPersonagem1]); 
Thus, the account function is stored the name of his account, and player 2 entered the server with the same name, but there is a problem the name of player 1 was defined for the name of the character he created.

How can I do this verification?

What I got:

PHP код:
    new name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
    if(
name == PlayerData[playerid][pConta])
    {
       
SendClientMessage(playerid, -1"Essa conta jб estб online e vocк foi kickado.");
       return 
Kick(playerid);
    } 
Reply


Messages In This Thread
Check name. - by SukMathcuck - 11.12.2016, 15:59
Re: Check name. - by CantBeJohn - 11.12.2016, 17:32
Re: Check name. - by SukMathcuck - 11.12.2016, 17:40
Re: Check name. - by CantBeJohn - 12.12.2016, 04:36
Re: Check name. - by SukMathcuck - 12.12.2016, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)