29.05.2016, 23:44
Код:
} else { new targetid = PlayerData[playerid][pCallLine]; //SetPlayerChatBubble(playerid, text, COLOR_WHITE, 10.0, 6000); if (IsPlayerInAnyVehicle(playerid) && IsWindowedVehicle(GetPlayerVehicleID(playerid)) && !CoreVehicles[GetPlayerVehicleID(playerid)][vehWindowsDown]) SendVehicleMessage(GetPlayerVehicleID(playerid), COLOR_WHITE, "[Janelas Fechadas] %s diz: %s", ReturnName(playerid, 0), text); else { if (!IsPlayerOnPhone(playerid)) SendNearbyMessage2(playerid, 20.0, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3, COLOR_FADE4,COLOR_FADE5, "%s diz: %s", ReturnName(playerid, 0), text); else SendNearbyMessage2(playerid, 20.0, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3, COLOR_FADE4,COLOR_FADE5, "(telefone) %s diz: %s", ReturnName(playerid, 0), text); if (!IsPlayerInAnyVehicle(playerid) && !PlayerData[playerid][pStunned] && !PlayerData[playerid][pInjured] && !PlayerData[playerid][pLoopAnim] && PlayerData[playerid][pAnimChat] == 0) { ApplyAnimation(playerid, "GANGS", "prtial_gngtlkA", 4.1, 0, 1, 1, 1, strlen(text) * 100, 1); SetTimerEx("StopChatting", strlen(text) * 200, false, "d", playerid);
Код:
"(telefone) %s diz: [Sotaque] %s"
(telefone) Nome_Sobrenome diz: [Russo] Texto
Como que eu posso fazer essa verificaзгo e aplicar o [Sotaque] na frente do texto se o player estiver com um sotaque diferente?