05.04.2014, 17:20
pawn Код:
forward OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ);
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
if(IsPlayerInAnyVehicle(playerid))
{
new carromapa = GetPlayerVehicleID(playerid);
SetVehiclePos(carromapa, fX, fY, fZ);
SetPlayerPos(playerid, fX, fY, fZ);
SendClientMessage(playerid, branco, "Testando o teleporte pelo mapa com carro!");
PutPlayerInVehicle(playerid, carromapa, 0);
}
else
{
SetPlayerPos(playerid, fX, fY, fZ);
SendClientMessage(playerid, branco, "Testando o teleporte pelo mapa!");
}
return 1;
}