[ajuda] chat perto
#6

Ve ae:
pawn Код:
public OnPlayerText(playerid, text[])
{
new Msg[128],Name[24],Float:Coords[3];
GetPlayerPos(playerid,Coords[0],Coords[1],Coords[2]);
GetPlayerName(playerid,Name,sizeof(Name));
format(Msg,sizeof(Msg),"%s diz: %s",Name,text);
for(new x = 0; x != MAX_PLAYERS; x++) {
if(IsPlayerInRangeOfPoint(x,10.0,Coords[0],Coords[1],Coords[2])) {
SendClientMessage(x,-1,Msg);
return 0;
}
GetPlayerPos(playerid,Coords[0],Coords[1],Coords[2]);
GetPlayerName(playerid,Name,sizeof(Name));
format(Msg,sizeof(Msg),"%s diz: %s",Name,text);
for(new x = 0; x != MAX_PLAYERS; x++)
{
if(IsPlayerInRangeOfPoint(x,100.0,Coords[0],Coords[1],Coords[2]))
{
SendClientMessage(x,0x836FFFAA,zstring);
return 0;
}
GetPlayerPos(playerid,Coords[0],Coords[1],Coords[2]);
GetPlayerName(playerid,Name,sizeof(Name));
format(Msg,sizeof(Msg),"%s diz: %s",Name,text);
for(new x = 0; x != MAX_PLAYERS; x++)
{
if(IsPlayerInRangeOfPoint(x,100.0,Coords[0],Coords[1],Coords[2]))
{
SendClientMessage(x,0xAFAFAFAA,zstring);
return 0;
}
GetPlayerPos(playerid,Coords[0],Coords[1],Coords[2]);
GetPlayerName(playerid,Name,sizeof(Name));
format(Msg,sizeof(Msg),"%s diz: %s",Name,text);
for(new x = 0; x != MAX_PLAYERS; x++)
{
if(IsPlayerInRangeOfPoint(x,800.0,Coords[0],Coords[1],Coords[2]))
{
SendClientMessage(x,0x363636AA,zstring);
return 0;
}
return 1;
}
Se der erro,e so adicionar os :
pawn Код:
new Msg[128],Name[24],Float:Coords[3];
Em cada um ..
Se for diferente avisa D:
Reply


Messages In This Thread
[ajuda] chat perto - by Markos - 22.04.2012, 01:00
Re: [ajuda] chat perto - by Hellraiser1593 - 22.04.2012, 01:06
Re: [ajuda] chat perto - by Markos - 22.04.2012, 01:09
Re: [ajuda] chat perto - by Lуs - 22.04.2012, 01:14
Re: [ajuda] chat perto - by Markos - 22.04.2012, 01:43
Re: [ajuda] chat perto - by @Riichard - 22.04.2012, 01:48
Re: [ajuda] chat perto - by Markos - 22.04.2012, 01:52

Forum Jump:


Users browsing this thread: 5 Guest(s)