[Pedido] Teleporte OnPlayerClickMap
#3

Jб tem isso aqui em meu gm a mt tempo .. bom uso
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
new S[128];
if((IsPlayerInAnyVehicle(playerid)) && (GetPlayerState(playerid) == 2))
{
SetVehiclePos(GetPlayerVehicleID(playerid), fX, fY, fZ);
format(S, sizeof(S), "Vocк foi teletransportado para as coordenadas %.1f, %.1f, %.1f - Com veнculo.", fX, fY, fZ);
SendClientMessage(playerid, -1, S);
}
else
{
SetPlayerPosFindZ(playerid, fX, fY, fZ);
format(S, sizeof(S), "Vocк foi teletransportado para as coordenadas %.1f, %.1f, %.1f - Apй.", fX, fY, fZ);
SendClientMessage(playerid, -1, S);
}
return 1;
}
Reply


Messages In This Thread
Teleporte OnPlayerClickMap - by WalterSantos - 19.08.2017, 10:02
Re: Teleporte OnPlayerClickMap - by JPedro - 19.08.2017, 10:33
Re: Teleporte OnPlayerClickMap - by GuiKommander - 19.08.2017, 11:09

Forum Jump:


Users browsing this thread: 1 Guest(s)