Help me get password
#1

how do I make a player to log into the games can present her password, which can be a special level 5 server owner
Sample
Test(0) has logged in the server (password. how do I make it
Reply
#2

You mean like if any one login into server so their password will show to server owner?
Reply
#3

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
You mean like if any one login into server so their password will show to server owner?
yes that's what I mean, what can you do right for me
Reply
#4

Yes its simple

Add this somewhere in your script

PHP код:
SendMessageToAdmins(colormessage[])
{
    for (new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if (
PlayerInfo[i][AdminLevel] >= 5SendClientMessage(icolormessage);//You can change admin system or variable with your admin system
        
}
    }

then use this code at your dialog login if player logged in successfully

PHP код:
new playername[64];
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
format(stringsizeof(string), "Player %s(%ID), has logged in the server with password: %s"playernameinputtext);
SendMessageToAdmins(COLOR_WHITEstring); 
Reply
#5

What is the purpose you want to know your player's password?
That is your player's privacy, you should not doing that.
Reply
#6

can you tell me your server name so that i wont accidentally get in there?
Reply
#7

https://www.sa-mp.com/service_agreement.txt

Now go fuck yourself.
Reply
#8

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
Yes its simple

Add this somewhere in your script

PHP код:
SendMessageToAdmins(colormessage[])
{
    for (new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if (
PlayerInfo[i][AdminLevel] >= 5SendClientMessage(icolormessage);//You can change admin system or variable with your admin system
        
}
    }

then use this code at your dialog login if player logged in successfully

PHP код:
new playername[64];
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
format(stringsizeof(string), "Player %s(%ID), has logged in the server with password: %s"playernameinputtext);
SendMessageToAdmins(COLOR_WHITEstring); 
the password is not active when I test his password to log into the games not lit.
Reply
#9

Don't beg here for help when your server loose some players mate..
Reply
#10

Help me please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)