SA-MP Forums Archive
[Ajuda] Ajuda Comando - 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] Ajuda Comando (/showthread.php?tid=623755)



Ajuda Comando - iFaLLeN - 04.12.2016

Boa tarde quero saber como faz pra que o jogador so possa usar esse comando em um check


Код:
CMD:bancoLS(playerid)
{
    Msg(playerid, -1, "Banco San Andreas.");
    SelectTextDraw(playerid, 0xFF0000FF);
    for(new i = 0; i < sizeof(Banco); i++) TextDrawShowForPlayer(playerid, Banco[i]);
	return 1;
}



Re: Ajuda Comando - ipsLuan - 04.12.2016

IsPlayerToPoint.


Re: Ajuda Comando - iFaLLeN - 04.12.2016

Quote:
Originally Posted by ipsLuan
Посмотреть сообщение
IsPlayerToPoint.
Ok fiz isso

Код:
    CMD:banco(playerid)
    {
    if(IsPlayerToPoint( 1.1, playerid, 1682.7258,-2311.7554,13.5469 ))
    {
    SendClientMessage( playerid,-1, "[ ERRO ] Você não está em um Banco." );
    return 1;
    }
    Msg(playerid, -1, "Banco San Andreas.");
    SelectTextDraw(playerid, 0xFF0000FF);
    for(new i = 0; i < sizeof(Banco); i++) TextDrawShowForPlayer(playerid, Banco[i]);
	return 1;
}
Agora ta dando esse erro como que defino isso?
Код:
error 017: undefined symbol "IsPlayerToPoint"



Re: Ajuda Comando - yurin - 04.12.2016

IsPlayerInRangeOfPoint
https://sampwiki.blast.hk/wiki/PlayerToPoint


Re: Ajuda Comando - iFaLLeN - 04.12.2016

Quote:
Originally Posted by yurin
Посмотреть сообщение
Qual include tenho que usar pra pega esses codigos pq ta dando erro dizendo que tem que definir '-'


Re: Ajuda Comando - silenthill - 04.12.2016

PHP код:

stock PlayerToPoint
(Float:radiplayeridFloat:xFloat:yFloat:z)
{
new 
Float:oldposxFloat:oldposyFloat:oldposz;
new 
Float:tempposxFloat:tempposyFloat:tempposz;
GetPlayerPos(playeridoldposxoldposyoldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((
tempposx radi) && (tempposx > -radi)) && ((tempposy radi) && (tempposy > -radi)) && ((tempposz radi) && (tempposz > -radi)))
{
return 
1;
}
return 
0;