[Ajuda] Chat Proximo - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Chat Proximo (
/showthread.php?tid=486273)
Chat Proximo -
i7Core - 07.01.2014
Esse Codigo Funciona Perfeitamente, so Que Eu Quero que Tire o Chat Global? e so deiche Esse (Proximo)
Eu Escrevo e sai 2 Falas , o Do Normal e o Do Proximo, Como Resolvo Isso?
pawn Code:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
new Float:Pos[3], Name[24], string[128];
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
format(string, sizeof(string), "%s Diz: %s", Name, text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 50.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, -1, string);
}
}
}
return 1;
}
Re: Chat Proximo -
smiiir - 07.01.2014
return 0;
or return false;
Respuesta: Chat Proximo -
ViniKuliveguisky - 07.01.2014
falta de return 0;
pawn Code:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
new Float:Pos[3], Name[24], string[128];
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
format(string, sizeof(string), "%s Diz: %s", Name, text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 50.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, -1, string);
}
}
return 0;
}
return 0;
}
Re: Chat Proximo -
i7Core - 07.01.2014
Quote:
Originally Posted by iSmirnoff
return 0; or return false;
|
Poxa, Vlw, uma Coisa Tao Simples, +Rep