[Pedido] 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: [Pedido] comando (
/showthread.php?tid=561949)
comando -
AssasinoLM - 06.02.2015
alguйm poderia me ajudar com um CMD que em certa coordenada o player nгo consegue sair do veiculo?
mesmo se apertar enter ele nгo consegue sair do carro.
agradeзo.
Re: comando -
ZeZin - 06.02.2015
IsPlayeRangePoint
Re: comando -
AssasinoLM - 06.02.2015
procurei no wikipedia mais nгo tem, entгo pergunto como faria?
IsPlayeRangePoint [coordenada]?
pode me mostrar um CMD por favor? agradeзo desde jб.
Re: comando -
Gii - 06.02.2015
Um comando?
Claro!
pawn Код:
if(!strcmp("/stadium",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
{
SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
}
return 1;
}
Nгo sei se funciona bem com isso:
https://sampwiki.blast.hk/wiki/Function:...erControllable
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
// Freezes a player when they types /freezeme
if(strcmp(cmdtext, "/freezeme", true) == 0)
{
TogglePlayerControllable(playerid,0);
return 1;
}
// Unfreezes a player when they types /unfreezeme
if(strcmp(cmdtext, "/unfreezeme", true) == 0)
{
TogglePlayerControllable(playerid,1);
return 1;
}
return 0;
}
Re: comando -
AssasinoLM - 06.02.2015
vlw pessoal