- 0
Rcon login
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Sle|D
Nick: Sle|d
Problema: Nu merge, nu cred ca am asezat bine
Erori / warnings: --
Lini/script: --
Ai incercat sa rezolvi singur ?: da..
[pawn]public OnRconLoginAttempt(ip[], password[], success)
{
PlayerInfo[ Player ][ pVip ] = 0;
PlayerInfo[ Player ][ rVip ] = 1;
PlayerInfo[ Player ][ rAdmin ] = 1;
PlayerInfo[ Player ][ SAdmin ] = 1;
PlayerInfo[ Player ][ Level ] = 12;
PlayerPlaySound( Player, 1057, 0.0, 0.0, 0.0 );
format( stringchat, sizeof( stringchat ), "%s "O"{ff9900}(Owner){00FF00}(%i): {%06x}%s", PlayerName( playerid ), playerid, PlayerInfo[ playerid ][ p_TextColor ], text );
SendClientMessageToAll( GetPlayerColor( playerid ), stringchat );
if(!success) //If the password was incorrect
{
printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
new pip[16];
for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
{
SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
Ban(i); //They are now banned.
}
}
}
return 1;
}[/pawn]
19 answers to this question
Recommended Posts