04.03.2019, 14:25
I think i made everything right, but there is something NOT right.
I made so when i rcon log it will show:
[Rcon Admin] name[ID:0]: text
and when you are default
name[ID:0]: text
But it doesnt work.. It shows (name[ID:0] text) even if im Rcon logged.
Photo: Click Here
Code:
Thanks.
I made so when i rcon log it will show:
[Rcon Admin] name[ID:0]: text
and when you are default
name[ID:0]: text
But it doesnt work.. It shows (name[ID:0] text) even if im Rcon logged.
Photo: Click Here
Code:
Код:
public OnPlayerText(playerid, text[]) { if(PlayerInfo[playerid][pAdmin] >= 0) { new string[250]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "{05FF00}%s{FFFFFF}[ID: %d]: %s", pName, playerid, text); SendClientMessageToAll(0xFEFEFEFF, string); return 0; } if(IsPlayerAdmin(playerid)) { new string[250]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "{00FF0A}[{FFFFFF}RCON Admin{00FF0A}]{FF0A00}%s{FFFFFF}[ID: %d]: %s", pName, playerid, text); SendClientMessageToAll(0xFEFEFEFF, string); return 0; } return 1; }