Falling from the sky[SetPlayerPos]
#1

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.
Reply
#2

You'll need to set the interior aswell.
Reply
#3

SetPlayerInterior or something ?
Reply
#4

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

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

I'm using setplayerinterior.
Reply
#7

So you are using wrong interior world.
Reply
#8

No..
Reply
#9

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

No, the id is 6.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)