[Ajuda] OOcSanFierro nгo funciona - 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] OOcSanFierro nгo funciona (
/showthread.php?tid=575712)
OOcSanFierro nгo funciona -
vitorluiz96 - 29.05.2015
oi pessoal estou aqui humildemente pedindo ajuda por favor!!! o problema й assim os anuncios tudo que usa OOcLosSantos ou OOcLasVenturas funciona perfeitamente os anuncios globais tambйm mas tudo no chat que usa o OOcSanfierro nгo aparece simplismente ele nгo aparece nada me ajudem pf
As publics
Код:
forward OOCLosSantos(COLOR,const string[]);
public OOCLosSantos(COLOR,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInLosSantos(i))
{
SendClientMessage(i, COLOR, string);
}
}
}
}
forward OOCLasVenturas(COLOR,const string[]);
public OOCLasVenturas(COLOR,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInLasVenturas(i))
{
SendClientMessage(i, COLOR, string);
}
}
}
}
forward OOCSanFierro(COLOR,const string[]);
public OOCSanFierro(COLOR,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInLasVenturas(i) || IsPlayerInLosSantos(i))
{
return true;
}
else
{
SendClientMessage(i, COLOR, string);
}
}
}
return true;
}
AS Stocks
Код:
stock IsPlayerInLosSantos(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 44.60 && y >= -2892.90 && x <= 2997.00 && y <= -768.00) return 1;
else return 0;
}
stock IsPlayerInLasVenturas(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 869.40 && y >= 596.30 && x <= 2997.00 && y <= 2993.80) return 1;
else return 0;
}
Re: OOcSanFierro nгo funciona -
PT - 29.05.2015
PHP код:
forward OOCSanFierro(COLOR, const string[]);
public OOCSanFierro(COLOR, const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i))
continue;
if(IsPlayerInLasVenturas(i) || IsPlayerInLosSantos(i))
continue;
else
SendClientMessage(i, COLOR, string);
}
return true;
}