How to get position?
#5

First off you used #define FBI but then you salled it s.w.at below,you have to #define f.b.i then do "gteam[playerid] = TEAM_F.B.I;"

Second :

Код:
// top of your gamemode
forward SettingPlayerTeam();
//OnPlayerConnect
SetTimerEx("SettingPlayerTeam",10,1,"d",playerid);
//Bottom of your script
public SettingPlayerTeam()
{
  for(new playerid; playerid < 200; playerid++)
    SetPlayerTeam(playerid, gTeam[playerid]);
  return 1;
}
This is a code i got from "Seif" and it works for me where bullets do not hurt teammates.

Third
Код:
public SetupPlayerForClassSelection(playerid)
{
 	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid,2247.6599,2401.3601,11.2500);
	SetPlayerFacingAngle(playerid, 90.0);
	SetPlayerCameraPos(playerid,2247.6599,2401.3601,11.2500);
	SetPlayerCameraLookAt(playerid,2247.6599,2401.3601,11.2500);
}
For this to work public SetupPlayerForClassSelection(playerid)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2247.6599,2401.3601,11.2500) ;
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerCameraPos(playerid,2247.6599,2401.3601,11 .2500);
SetPlayerCameraLookAt(playerid,2247.6599,2401.3601 ,11.2500);
}


public SetupPlayerForClassSelection(playerid)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2247.6599,2401.3601,11.2500) ;
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerCameraPos(playerid,2247.6599,2401.3601,11 .2500);
SetPlayerCameraLookAt(playerid,2247.6599,2401.3601 ,11.2500);
}

for this to work SetPlayerCameraPos has to be differnet so your looking at the spawn not away from it,so save spawn point,take a few steps and turn around thenso your looking at where you are going to spawn and typr save again to get camera pos



Reply


Messages In This Thread
How to get position? - by xXiamCr4zyXx - 05.06.2009, 15:38
Re: How to get position? - by Weirdosport - 05.06.2009, 15:41
Re: How to get position? - by Mr_Finnigan - 05.06.2009, 15:49
Re: How to get position? - by xXiamCr4zyXx - 05.06.2009, 16:07
Re: How to get position? - by Mr_Finnigan - 05.06.2009, 16:16

Forum Jump:


Users browsing this thread: 1 Guest(s)