27.11.2014, 21:45
Bom Alguem Por Favor Pode Mim Ajuda A Criar Chat Tipo "!" usando isso
public OnPlayerText(playerid, text[]) { new tmp[128]; if(text[0] == '!') { new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i, 9.0, Pos[0], Pos[1], Pos[2])) { SendClientMessage(i, 0xE31919FF, tmp); } } } return 1; } SetPlayerChatBubble(playerid, text, COLOR_WHITE, 80.0, 10000); format(string,sizeof(string),"[Chat Torcida Uniformizada Terror Bicolor] %s (%i): {FFFFFF}%s",playerid,text); SendPlayerMessageToAll(playerid,string); return 0; }
public OnPlayerText(playerid, text[])
{
new tmp[128];
if(text[0] == '!')
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 9.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, 0xE31919FF, tmp);
}
}
}
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 80.0, 10000);
format(string,sizeof(string),"[Chat Torcida Uniformizada Terror Bicolor] %s (%i): {FFFFFF}%s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
public OnPlayerText(playerid, text[])
{
new tmp[128];
if(text[0] == '!')
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 9.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, 0xE31919FF, tmp);
}
}
}
return 1;
}
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 80.0, 10000);
format(string,sizeof(string),"[Chat Torcida Uniformizada Terror Bicolor] %s (%i): {FFFFFF}%s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
public OnPlayerText(playerid, text[])
{
new tmp[128];
if(text[0] == '!')
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 9.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, 0xE31919FF, tmp);
}
}
}
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 80.0, 10000);
format(string,sizeof(string),"[Chat Torcida Uniformizada Terror Bicolor] %s (%i): {FFFFFF}%s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
public OnPlayerText(playerid, text[])
{
// Cуdigo
public OnPlayerText(playerid, text[])
{
new tmp[128];
if(text[0] == '!')
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 9.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, 0xE31919FF, tmp);
}
}
}
return 1;
}
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 80.0, 10000);
format(string,sizeof(string),"[Chat Torcida Uniformizada Terror Bicolor] %s (%i): {FFFFFF}%s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}