Code:
switch(PlayerInfo[playerid][pAccent])
{
case 0, 1:
{
if(AdminDuty[playerid] == 1)
{
format(string, sizeof(string), "%s says: (( %s )) ", sendername, text);
}
else
{
format(string, sizeof(string), "%s says: %s", sendername, text);
}
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
}
new BigEar[MAX_PLAYERS];
|
By my knowledge, u cannot hear what he is saying, U can only see on his head what he has written [Or possibly i couldn't got u what are u saying]
|
stock IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY) {
return 1;
}
return 0;
}
switch(PlayerInfo[playerid][pAccent])
{
case 0, 1:
{
if(AdminDuty[playerid] == 1)
{
format(string, sizeof(string), "%s says: (( %s )) ", sendername, text);
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(AdminDuty[i] == 1)
{
if(IsPlayerInArea(i, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY))//add minx, miny, maxx and maxy
{
format(string, sizeof(string), "%s says: %s", sendername, text);
SendClientMessage(i, your_color, string);
}
}
}
}
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
}
|
This is the stock to know, if player is standing at bigear or not.
Код:
stock IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY) {
return 1;
}
return 0;
}
Код:
switch(PlayerInfo[playerid][pAccent])
{
case 0, 1:
{
if(AdminDuty[playerid] == 1)
{
format(string, sizeof(string), "%s says: (( %s )) ", sendername, text);
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(AdminDuty[i] == 1)
{
if(IsPlayerInArea(i, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY))//add minx, miny, maxx and maxy
{
format(string, sizeof(string), "%s says: %s", sendername, text);
SendClientMessage(i, your_color, string);
}
}
}
}
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
}
|
switch(PlayerInfo[playerid][pAccent])
{
case 0, 1:
{
if(AdminDuty[playerid] == 1)
{
format(string, sizeof(string), "%s says: (( %s )) ", sendername, text);
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(AdminDuty[i] == 1)
{
if(BigEar[i]==1)
{
format(string, sizeof(string), "%s says: %s", sendername, text);
SendClientMessage(i, your_color, string);
}
}
}
}
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
}
|
Код:
switch(PlayerInfo[playerid][pAccent])
{
case 0, 1:
{
if(AdminDuty[playerid] == 1)
{
format(string, sizeof(string), "%s says: (( %s )) ", sendername, text);
}
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(AdminDuty[i] == 1)
{
if(BigEar[i]==1)
{
format(string, sizeof(string), "%s says: %s", sendername, text);
SendClientMessage(i, your_color, string);
}
}
}
}
ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
}
|