17.07.2015, 21:36
i got the whisper cmd but when i use it its appear on my head i want it in the main chat and just who near me can read it help !!!
COMMAND:w(playerid,params[])
{
new string[250];
if(sscanf(params,"s",string)) return SendClientMessage(playerid,COLOR_RED,"USAGE:/w [message]");
SetPlayerChatBubble(playerid,string,COLOR_YELLOW,3 5,10000);
new Float,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
new pName4[24];
GetPlayerName(playerid,pName4,sizeof(pName4));
new string2[250];
format(string2,sizeof(string2),"%s(%d):%s",pName4, playerid,string);
for(new i=0;i<=MAX_PLAYERS;i++)
{
if(IsPlayerInRangeOfPoint(i,15.0,x,y,z)) return SendClientMessage(playerid,COLOR_YELLOW,string2);
}
return 1;
COMMAND:w(playerid,params[])
{
new string[250];
if(sscanf(params,"s",string)) return SendClientMessage(playerid,COLOR_RED,"USAGE:/w [message]");
SetPlayerChatBubble(playerid,string,COLOR_YELLOW,3 5,10000);
new Float,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
new pName4[24];
GetPlayerName(playerid,pName4,sizeof(pName4));
new string2[250];
format(string2,sizeof(string2),"%s(%d):%s",pName4, playerid,string);
for(new i=0;i<=MAX_PLAYERS;i++)
{
if(IsPlayerInRangeOfPoint(i,15.0,x,y,z)) return SendClientMessage(playerid,COLOR_YELLOW,string2);
}
return 1;