[FilterScript] Teleport Player
#5

Mas o ID do Player que foi clicado jб fica armazenado na variбvel clickedplayerid.

pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    new Float: P[3],Msg[120],nomep[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nomep, sizeof(nomep));
    GetPlayerPos(clickedplayerid, P[0], P[1], P[2]);
    SetPlayerPos(playerid, P[0], P[1], P[2]);
    format(Msg, sizeof(Msg), "O jogador %s foi ate voce!", nomep);
    SendClientMessage(clickedplayerid,0x1E90FF99, Msg);
    SendClientMessage(playerid,0x1E90FF99, "Voce foi ate o player selecionado!");
    return 1;
}
Compare os cуdigos e veja alguns erros que vocк cometeu ^^.
Reply


Messages In This Thread
Teleport Player - by ungroup - 09.02.2013, 17:44
AW: Teleport Player - by DouglasRodrigues - 09.02.2013, 17:47
Re: Teleport Player - by Dolby - 09.02.2013, 17:50
Re: Teleport Player - by ungroup - 09.02.2013, 18:01
Re: Teleport Player - by Dolby - 09.02.2013, 18:22
Re: Teleport Player - by SeV_ - 09.02.2013, 19:24
Re: Teleport Player - by DanDRT - 09.02.2013, 19:31
Re: Teleport Player - by MegaStyle157 - 09.02.2013, 19:37
Re: Teleport Player - by Etton - 09.02.2013, 19:47
Re: Teleport Player - by Don_Speed - 09.02.2013, 19:47

Forum Jump:


Users browsing this thread: 4 Guest(s)