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

Quote:
Originally Posted by Artista
Посмотреть сообщение
Isso nгo vai funcionar desse jeito...
Experimente ligar o timer na OnPlayerSpawn e armazene a posiзгo do player nas variбveis apуs a verificaзгo.
Lembrando que vc deve criar uma stock que armazene acima de tudo a posiзгo atual do player e fazer a funзгo do teleporte.
Ex:
pawn Код:
stock SetPlayerPosEx(playerid, Float:x, Float:y, Float:z)
{
//...
e substituir seus SetPlayerPos por SetPlayerPosEx

PS: Acabei de fazer e funcionou. Se tiver dъvidas, basta perguntar =)
Obrigado pela atenзгo.Ontem eu fiz desta maneira :

Onplayerconnect:
pawn Код:
SetTimerEx("antitp",5000,true,"d",playerid);
saiuinterior[playerid] = 0;


pawn Код:
public antitp(playerid)
{
   if(GetPlayerInterior(playerid) != 0)
   {
   saiuinterior[playerid] = 1;
   }else{
    saiuinterior[playerid] = 0;
   }
    GetPlayerPos(playerid,posxantes,posyantes,poszantes);
    SetTimerEx("antitp2",3000,true,"d",playerid);
    return 1;
    }
    public antitp2(playerid)
{

   
if(!IsPlayerInRangeOfPoint(playerid, 80.0,posxantes,posyantes,poszantes ))
{
if(GetPlayerInterior(playerid) == 0 && saiuinterior[playerid] == 0)
    {
    new string[200];
    SendClientMessage(playerid,-1,"tp detectado");
    return 1;
    }
    }
    }
e aparentou funcionar bem
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)