24.12.2014, 15:41
Quote:
|
Can't help you with the first one.
Something like this? A whisper command. Код:
COMMAND:whisper(playerid, params[])
{
if(playerData[playerid][playerLoggedIn])
{
new string[250];
if (sscanf(params, "s[250]", string))
{
SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}Usage: \"/(w)hisper <message>\"");
}
else
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
new string2[250];
format(string2, sizeof(string2), "{FE9A2E}[WHISPER] {FFFFFF}%s(%i): %s", playerData[playerid][playerNamee], playerid, string);
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 15.0, x, y, z))
{
SendClientMessage(i, COLOR_WHITE, string2);
}
}
}
}
return 1;
}
|
EDIT: after a log search i have found this thing, is https://sampwiki.blast.hk/wiki/LimitGlobalChatRadius


