- 0
Rcon login
-
Similar Content
-
De ce cand actualizez ceva la serverul meu de samp,pe sa-mp(server) nu se modifica sau rcon password ?
By leoo671,
- 1 answer
- 188 views
-
- 0 answers
- 150 views
-
- 4 replies
- 217 views
-
- 3 replies
- 253 views
-
- 1 reply
- 133 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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]
Link to comment
Share on other sites
19 answers to this question
Recommended Posts