03.07.2018, 04:15
como muda quando o player fala ? tipo o normal so server samp й o (nome do player): (e oq ele falou) , mas como posso mudar isso?
public OnPlayerText(playerid, text[])
{
new playerName[MAX_PLAYER_NAME],
Float:posX,
Float:posY,
Float:posZ,
message[128]
;
GetPlayerName(playerid, playerName, sizeof(playerName));
GetPlayerPos(playerid, posX, posY, posZ);
format(message, sizeof(message), "%s [%d] diz: %s", playerName, playerid, text);
for(new i; i <= GetPlayerPoolSize(); i++)
{
if(IsPlayerInRangeOfPoint(i, 200.0, posX, posY, posZ))
{
SendClientMessage(i, -1, message);
}
}
return 0;
}