[Ajuda] OnPlayerClickPlayer usado como teleport?
#1

Ae galera, eu estou tentando fazer que quando o player clicka no outro player, no OnPlayerClickPlayer, ele seja teleportado.

Mais eu nem sei por onde comeзar o cуdigo, oque usar.

Se puder posta ae pra mim

Cуdigo que eu fiz:
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    new Float:x, Float:y, Float:z;
    SetPlayerPos(clickedplayerid, x+2, y, z);
    GetPlayerInterior(clickedplayerid); && SetPlayerInterior(clickedplayerid);
    return 1;
}
Reply
#2

pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    static Float:x, Float:y, Float:z;
    GetPlayerPos(clickedplayerid, x , y , z);
    SetPlayerPos(playerid, x + 2 , y , z);
    SetPlayerInterior(playerid, GetPlayerInterior(clickedplayerid));
    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(playerid));
    return 1;
}
Reply
#3

pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
      new Float:x, Float:y, Float:z;
      GetPlayerPos(clickedplayerid, x, y, z);
      SetPlayerPos(playerid, x+2, y, z), SetPlayerInterior(playerid, GetPlayerInterior(clickedplayerid)), SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(clickedplayerid));
      return 1;
}
Reply
#4

Faltou so o GetPlayerPos(x,y,z)..



@Edit

Nen tinha visto que havia postado jб '-'

@Off

500 posts -**-*
Reply
#5

Vlwww cara.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)