If I have a relative in the US, can I ask them to open a paypal account there and then use it here in my country? Will that be an issue because paypal can see that I am not logging in from the US?
I think it's legal. They think you visit there. For example I used my account two different country and I haven't got any problem.
That's fine. But there are 2 things you need to do, add a US bank account and confirm your US location by providing a credit card with US billing address. If you failed to do that, your paypal account will be placed on limited account status if you try to purchase online using your paypal.