eu to fazendo gm do 0, ai sу as pessoas que estгo perto do player podera ver o que ele digitou olhem
PHP код:
public OnPlayerText(playerid, text[])
{
new sStr[128];
format(sStr, 128, "[ID:%d]: %s", playerid, text);
if(text[0] == ';')
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
for(new i, p = MAX_PLAYERS; i < p; i++)
{
if(IsPlayerInRangeOfPoint(i, 9.0, Pos[0], Pos[1], Pos[2])) { SendClientMessage(i, 0xE31919FF, sStr); }
}
return 0;
}
SetPlayerChatBubble(playerid, text, -1, 80.0, 10000);
SendPlayerMessageToAll(GetPlayerColor(playerid),sStr);
return 0;
}
PHP код:
format(String, sizeof(String), "* %s Pegou seu Kit VIP Socio.", PlayerNick(playerid));
SendPlayerMessageToAll(GetPlayerColor(playerid),sStr);