12.11.2013, 14:18
I'd recommend to make an admin chat with quick strings. Suche as
Here's a code for this. Post this script below OnPlayerText
Код:
#Hello, what's up? !What's going on? @Heya
pawn Код:
if(text[0] == '#') // You can change the character example to '!' or '@'
{
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
strdel(text, 0, 1);
format(string, sizeof(string), "[ADMIN CHAT] %s [%d]: %s", pName, playerid, text);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerData[i][ALevel] > 0) // Player is connected and he's an admin
{
SendClientMessage(i, -1, string);
}
}
}