View Full Version : Administration Clearance to all!

17/10/2015, 06:04 AM
I want that whenever some on types this command
/RCON LOGIN <password>
it gets the player name and sends it to all players and turn the colour of that administrator into pink

reply fast 8)

17/10/2015, 06:13 AM
public OnRconLoginAttempt(ip[], password[], success)
new rname[MAX_PLAYER_NAME];
for(new playerid;playerid<MAX_PLAYERS;playerid++) // for define playerid
if(success) { // check if rcon pass correct
GetPlayerName(playerid,rname,sizeof(rname)); // get player name
SetPlayerColor(playerid,0xFF66FFAA); // set player colour to pink
new string[128];
format(string,sizeof(string),"%s has logged in as RCON administrator",rname); // make the message
SendClientMessageToAll(-1,string); // send the message to all players
return 1;