public OnPlayerText(playerid, text[])
{
new Float:Pos[3],string[128],Nome[24];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format(string, 128, "%s diz: %s", Nome, text);
SetPlayerChatBubble(playerid, text, -1, 100.0, 10000);
for(new i; i != GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 10, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, -1, string);
}
return 0;
}
return 1;
}
public OnPlayerText(playerid, text[])
{
new Float:Pos[3],string[128],Nome[24];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format(string, 128, "%s diz: %s", Nome, text);
SetPlayerChatBubble(playerid, text, -1, 100.0, 10000);
for(new i; i != GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 10, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, -1, string);
}
}
return 0;
}
This forum requires that you wait 120 seconds between posts. Please try again in 42 seconds. This forum requires that you wait 120 seconds between posts. Please try again in 14 seconds. |