06.07.2014, 22:32
public OnPlayerText(playerid,text[])
{
if(text[0] == '&')
{
new str[256];
if(AdminLevel(playerid) < 1)
{
format(str,sizeof(str),"{00FFFF}Police Chat: [Name: %s] [ID:%d]: %s [Level: %s]", GetName(playerid), playerid, text[1], AdminLevel(playerid));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && AdminLevel(playerid) > 0)
{
SendClientMessage(i, 0x00FFFFFF, str);
}
}
}
}
return 0;
}
The Error: I am writing this code I can not record anything general chat.
Please Help!
{
if(text[0] == '&')
{
new str[256];
if(AdminLevel(playerid) < 1)
{
format(str,sizeof(str),"{00FFFF}Police Chat: [Name: %s] [ID:%d]: %s [Level: %s]", GetName(playerid), playerid, text[1], AdminLevel(playerid));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && AdminLevel(playerid) > 0)
{
SendClientMessage(i, 0x00FFFFFF, str);
}
}
}
}
return 0;
}
The Error: I am writing this code I can not record anything general chat.
Please Help!