public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
new Float:Pos[3], Name[24], string[128];
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
format(string, sizeof(string), "%s Diz: %s", Name, text[1])
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 50.0, Pos[0], Pos[1], Pos[2]))
{
Msg(i, -1, string);
}
}
}
return 1;
}
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
new Float:Pos[3], Name[24], string[128];
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
format(string, sizeof(string), "%s Diz: %s", Name, text[1])
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 50.0, Pos[0], Pos[1], Pos[2]))
{
Msg(i, -1, string);
}
}
}
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
Msg(i, -1, string);
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
new Float:Pos[3], Name[24], string[128];
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
format(string, sizeof(string), "%s Diz: %s", Name, text[1]); // Faltava o ;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 50.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, -1, string);
}
}
}
return 1;
}
|
pawn Code:
|
|
Originally Posted by RayanSanty
Quero que quando o player digite apareca somente para todos proximo a ele Aqui esta como chat global, me ajudem
|