SA-MP Forums Archive
Falling from the sky[SetPlayerPos] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Falling from the sky[SetPlayerPos] (/showthread.php?tid=547101)



Falling from the sky[SetPlayerPos] - Glossy42O - 20.11.2014

Hello people.


I am having annoying problem when i stand on the checkpoint i suppose to teleport to ammonation but instead

I'm falling in the sky and yes i have tried to set the pos little higher and the second problem

That it gives me a dialog of weapons but it's not suppose to give me only when i go inside the ammonation and stand on the checkpoint that suppose to give me the dialog

Anyways. Here is my code

Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 5, 2400.4871,-1981.3549,13.5469))
    {
	  SetPlayerPos(playerid, 316.6255,-168.4557,999.9716);
	  SetPlayerCheckpoint(playerid, 311.8095,-165.7344,999.6010,181.4448);
    }
    if(IsPlayerInCheckpoint(playerid))
    {
	  ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose your weapon", "Deagle\nShotgun\nSniper\nM4\nMP5\nCombat\nGrenade\nTec9", "Purchase", "Exit");
	}
	return 1;
}
And please when you fix it please explain how'd you did it.

Thanks.


Re: Falling from the sky[SetPlayerPos] - Tamer - 20.11.2014

You'll need to set the interior aswell.


Re: Falling from the sky[SetPlayerPos] - Glossy42O - 20.11.2014

SetPlayerInterior or something ?


Re: Falling from the sky[SetPlayerPos] - Glossy42O - 20.11.2014

Aye, Not falling anymore but i see only grey ground...


Re: Falling from the sky[SetPlayerPos] - GGRoleplay - 20.11.2014

Make sure the co-ordinates are right (and if it's that bad, try and put the SetPlayerPos somewhere random on the map)


Re: Falling from the sky[SetPlayerPos] - Glossy42O - 20.11.2014

I'm using setplayerinterior.


Re: Falling from the sky[SetPlayerPos] - Rdx - 20.11.2014

So you are using wrong interior world.


Re: Falling from the sky[SetPlayerPos] - Glossy42O - 20.11.2014

No..


Re: Falling from the sky[SetPlayerPos] - Rdx - 20.11.2014

Yes, if you see gray ground interior world for this postion is wrong.


Re: Falling from the sky[SetPlayerPos] - Glossy42O - 20.11.2014

No, the id is 6.