31.05.2016, 17:11
Hi, it looks like if someone said something at EX: VW 1
an player at another VW ( Can't see each other ) can see this chat
an player at another VW ( Can't see each other ) can see this chat
Код:
toupper(text[0]); format(stringa,sizeof(stringa),"%s says: %s", MaskedName(playerid), text); if(PlayerTemp[playerid][chatAnim] == true) { new AnimTime = strlen(text) * 50; ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 0, 1, 1, 0, AnimTime, 1); } } } PlayerLoop(i) { if(!IsPlayerConnected(i)) continue; if(!IsPlayerInRangeOfPoint(i, 60.0, px,py,pz)) continue; if(GetPlayerVirtualWorld(i) != GetPlayerVirtualWorld(playerid) || GetPlayerInterior(i) != GetPlayerInterior(playerid)) continue; new Float:dis; dis = GetDistanceBetweenPlayers(playerid,i); if(dis>40) SendClientMessage(i,COLOR_PLAYER_DARKGREY,stringa); if(dis<=30 && dis >10) SendClientMessage(i,COLOR_PLAYER_GREY,stringa); if(dis<=10) SendClientMessage(i,COLOR_PLAYER_WHITE,stringa); }