Help /enter problem
#1

i have this /enter to a bank

Код:
if (PlayerToPoint(2.0, playerid,1457.90002441,-1011.50000000,26.29999924))//BANKA
			{
			    SetPlayerInterior(playerid,3);
				SetPlayerPos(playerid,-467.60000610,-196.69999695,988.79998779);
				GameTextForPlayer(playerid, "~w~ Banka", 5000, 1);
				PlayerInfo[playerid][pInt] = 3;
				PlayerInfo[playerid][pLocal] = 103;
			}
but the problem is that i always fall through the gorund its not the only one i have a couple more that i fall also if anyone can help me?
Reply
#2

Maybe the interior you setting is wrong, have you checked if the interior you were trying to get in is interior ID 3?
Reply
#3

sometimes i get in with no problem but most of the time i keep falling through the gorund!
Reply
#4

Your interior is bugged.. just try with other interior..
___________________________
+1 rep if this is helpfull
___________________________
Reply
#5

Do this; Once you succeed getting in, stay where the door is and type the command /save, go to your documents folder where it saves the position, on sa-mp folder and rechange the SetPlayerPos. MAYBE will be there.
Reply
#6

Is there any way to freeze the player on that position untill the interier loads to stop falling from the ground?
Reply
#7

yes:

pawn Код:
stock FreezePlayer(playerid, time)
{
     TogglePlayerControllable(playerid, 0);
     SetTimerEx("UnfreezePlayer", time * 1000, false, "i", playerid);
     return 1;
}
forward UnfreezePlayer(playerid);
public UnfreezePlayer(playerid)
{
     return TogglePlayerControllable(playerid, 1);
}
Usage:

pawn Код:
FreezePlayer(playerid, 2);
the time is in seconds
Reply
#8

Yes, once he enters the building, you add this function; TogglePlayerControllable(playerid, 0); and SetTimerEx so after a few seconds, it will unfreeze that player; TogglePlayerControllable(playerid, 1);

EDIT: fordawinzz was faster.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)