10.06.2011, 01:53
pawn Код:
if(strlen(text) >= 128)
{
SendClientMessage(playerid, WHITE, "Your message must be shorter than 128 characters.");
}
else
{
if(Player[playerid][PrisonID] != 1)
{
if(Spectator[playerid][SpecSpectatingPlayer] == -1)
{
format(string, sizeof(string), "[%s Accent] %s says: %s", Player[playerid][Accent], GetName(playerid), text);
NearByMessage(playerid, RED, string);
ICChatLog(string);
}
else
{
format(string, sizeof(string), "[%s Accent] %s says: %s", Player[playerid][Accent], GetName(playerid), text);
NearByMessage(playerid, WHITE, string);
ICChatLog(string);
}
}
else
{
SendClientMessage(playerid, WHITE, "You can't talk ICly whilst you're spectating.");
}
}
else
{
SendClientMessage(playerid, WHITE, "You may not speak ICly whilst you're in OOC prison.");
}
}
}
}
return 0;
}