10.01.2013, 08:34
Please Help me its important:
pawn Код:
// Normal Calling
if(BeingCalled[playerid] == 2 || Calling[playerid] == 2 || Call911[playerid])
{
if(strlen(PlayerInfo[playerid][pAccent])) format(string, sizeof(string), "[Cellphone] %s: [%s Accent] %s", RPN(playerid), PlayerInfo[playerid][pAccent], text);
else format(string, sizeof(string), "[Cellphone] %s: %s", RPN(playerid), text);
if(!Call911[playerid])
{
if(BeingCalled[playerid] == 2) SendClientMessage(Caller[playerid], COLOR_YELLOW, string);
else if(Calling[playerid] == 2) SendClientMessage(Called[playerid], COLOR_YELLOW, string);
}
}
else if(Live[playerid])
{
if(IsNewsVehicle(GetPlayerVehicleID(playerid)))
{
format(string, sizeof(string), "** [Live News]: %s: %s", RPN(playerid), text);
SendClientMessageToAll(COLOR_LIGHTGREEN, string);
format(ircMsg, sizeof(ircMsg), "3[Live News] %s(%d): %s", RPN(playerid), playerid, text);
IRC_GroupSay(groupID, IRC_CHANNEL, ircMsg);
}
}
else
{
if(strlen(PlayerInfo[playerid][pAccent])) format(string, sizeof(string), "%s says: [%s Accent] %s", RPN(playerid), PlayerInfo[playerid][pAccent], text);
else format(string, sizeof(string), "%s says: %s", RPN(playerid), text);
}
SendNearbyMessage(playerid, 10, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
Log("logs/chat.log", string);