14.02.2010, 04:55
You would do that in public OnPlayerRequestClass just like below. You can get all the coordinates with /save then go to your SA main folder and open savedpositions.txt.
Here is an example one below for you too look at and use if you want to. If you need any more help or anything just PM me or something.
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, x,y,z); // this is where the character will be standing
SetPlayerFacingAngle(playerid, angle); // this is the angle the character will face
SetPlayerCameraPos(playerid, x,y,z); // this is the position of the characters view
SetPlayerCameraLookAt(playerid, x,y,z); // this is the direction in which the players camera is looking, you want to point it back at the characters position.
return 1;
}
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2155.3032,-97.4670,2.7147);
SetPlayerFacingAngle(playerid,64.9580);
SetPlayerCameraPos(playerid, 2151.5503,-95.4320,2.7001);
SetPlayerCameraLookAt(playerid,2057.6353,-100.8397,1.8606);
return 1;
}

