join your server /save pos1 /save pos2 /save pos3
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch (classid)
{
case 0:
{
SetPlayerPos(playerid, x, y, z);
SetPlayerFacingAngle(playerid, angle);
SetPlayerCameraPos(playerid, xcamera, ycamera, zcamera);
SetPlayerCameraLookAt(playerid, x, y, z);
}
case 1:
{
SetPlayerPos(playerid, x2, y2, z2);
SetPlayerFacingAngle(playerid, angle2);
SetPlayerCameraPos(playerid, xcamera2, ycamera2, zcamera2);
SetPlayerCameraLookAt(playerid, x2, y2, z2);
}
case 2:
{
SetPlayerPos(playerid, x3, y3, z3);
SetPlayerFacingAngle(playerid, angle3);
SetPlayerCameraPos(playerid, xcamera3, ycamera3, zcamera3);
SetPlayerCameraLookAt(playerid, x3, y3, z3);
}
}
return 1;
}
go to "Documents/GTA San Anderas User Fules/SA-MP/savedpositions.txt", and open it
replace X with the second number after "AddPlayerClass", Y with the thrid, Z with the fourth and angle with the fifth..
camera with the coordinates for the camera positions.. (/save them ingame, too)