[Ajuda] Anti-TP ,funciona assim ?
#4

Quote:
Originally Posted by n0minal
Посмотреть сообщение
Nгo vai dar certo esse anti-tp aн nгo, primeiro porque vocк precisa usar um settimerex e nгo settimer, segundo й que precisa ser na onplayerconnect e nгo na ongamemodeinit, e terceiro й que vocк precisa armazenar as coordenadas pra depois de um tempo checar, e do jeito que vocк fez vai dar muito bug...
Entгo tб certo assim ?

pawn Код:
new posxtp[MAX_PLAYERS];
new posytp[MAX_PLAYERS];
new posztp[MAX_PLAYERS];
pawn Код:
SetTimerEx("antitp",2000,true,"d",playerid);
pawn Код:
public antitp(playerid)
{
   
    GetPlayerPos(playerid,posxtp[playerid],posytp[playerid],posztp[playerid]);
if(!IsPlayerInRangeOfPoint(playerid, 20.0, posxtp[playerid],posytp[playerid],posztp[playerid]))
    SendClientMessage(playerid,-1,"tp detectado");
    return 1;
    }
Coloquei assim e ele fica mandando a mensagem vбrias vezes,mesmo estando parado.
Reply


Messages In This Thread
Anti-TP ,funciona assim ? - by Saidmrn - 15.10.2014, 01:04
Re: Anti-TP ,funciona assim ? - by connork - 15.10.2014, 01:07
Re: Anti-TP ,funciona assim ? - by n0minal - 15.10.2014, 01:41
Re: Anti-TP ,funciona assim ? - by Saidmrn - 15.10.2014, 01:57
Re: Anti-TP ,funciona assim ? - by Artista - 15.10.2014, 13:02
Re: Anti-TP ,funciona assim ? - by Saidmrn - 15.10.2014, 16:30
Re: Anti-TP ,funciona assim ? - by Artista - 15.10.2014, 17:03
Re: Anti-TP ,funciona assim ? - by Saidmrn - 15.10.2014, 17:32
Re: Anti-TP ,funciona assim ? - by Saidmrn - 15.10.2014, 18:01
Re: Anti-TP ,funciona assim ? - by Artista - 15.10.2014, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)