09.03.2018, 02:45
Quote:
PHP код:
|
One thing I learned from your code is, that this text[1] using with %s will print whole string after that spot so thanks for this
PHP код:
SendMessageToAdmins(color, const msg[]) foreach(new i : Player) if(pInfo[i][Admin] >= 1) SendClientMessage(i, color, msg);
public OnPlayerText(playerid, text[])
{
if(text[0] == '@' && pInfo[i][Admin] >= 1)
{
string[124];
GetPlayerName(string, string, MAX_PLAYER_NAME);
format(string, sizeof(string), "(ADMIN CHAT) {FFFFFF}%s: %s", string, text[1]);
SendMessageToAdmins(0x47476BFF, string);
return 0;
}
return 1;
}