PlayerToPoint works just for me.
#1

Look. I'm creating entrances and exits with PlayerToPoint.
Here is my code:
Top of script:
Код:
forward Doors(playerid);
After OnGameModeInit
Код:
SetTimer("Doors",1000,true);
And anywhere in GM:
Код:
public Doors(playerid)
{
 	if(PlayerToPoint(1,playerid,-2026.5660,-102.0659,35.1641)) // DMV
 	{
 	SetPlayerInterior(playerid,3);
 	SetPlayerPos(playerid,1494.4567,1305.2220,1093.2891);
 	SetPlayerFacingAngle(playerid,359.6967);
	return 1;
	}
	else if(PlayerToPoint(1,playerid,1494.4486,1303.5806,1093.2891))
 	{
 	SetPlayerInterior(playerid,0);
 	SetPlayerPos(playerid,-2026.5931,-100.3700,35.1641);
 	SetPlayerFacingAngle(playerid,360);
	return 1;
	}
	return 1;
}
Everythings works, but just for me. I can enter in DMV, but other peoples can't. Where is the problem?
Thanks for help.
Reply


Messages In This Thread
PlayerToPoint works just for me. - by Martin_M - 24.10.2009, 10:10
Re: PlayerToPoint works just for me. - by MadeMan - 24.10.2009, 10:20
Re: PlayerToPoint works just for me. - by MenaceX^ - 24.10.2009, 10:35
Re: PlayerToPoint works just for me. - by Martin_M - 24.10.2009, 11:36

Forum Jump:


Users browsing this thread: 1 Guest(s)