new player2; if(!strlen(params)) player2 = playerid; else player2 = strval(params);
if(PlayerInfo[player2][Level] >= PlayerInfo[playerid][Level]) return SendClientMessage(playerid,red,"{F81414}ERROR: {FFFFFF}You cannot use this command on this admin");
new tmp[256], tmp2[256], Index2; tmp = strtok(params,Index2), tmp2 = strtok(params,Index2);
if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"{F81414}ERROR: {FFFFFF}You cannot use this command on this admin");
format(string, sizeof(string), "You have set \"%s's\" name to \"%s\" ", pName(player1), tmp2); SendClientMessage(playerid,blue,string);
if(player1 != playerid) { format(string,sizeof(string),"Administrator \"%s\" has set your name to \"%s\" ", pName(playerid), tmp2); SendClientMessage(player1,blue,string); }
SetPlayerName(player1, tmp2);
return OnPlayerConnect(player1);
} else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
} else return SendClientMessage(playerid,red,"{F81414}ERROR:{FFFFFF} You are not a high enough level to use this command");
Question
Ice.Kold.Killa
Va rog daca puteti sa ma ajutati cum sa schimb o comanda de la Admin la RCON.
Va dau si un exemplu ca sa adaug comanda la RCON:
.Va rog daca puteti ma ajutati!
2 answers to this question
Recommended Posts