12.07.2009, 10:56
Hi, can someone say me sa-mp script link what will make cordinates as seen.Thanks, i searched but i did not found anything.
public OnPlayerUpdate(playerid)
{
new
Float:px,
Float:py,
Float:pz,
string[128];
GetPlayerPos(playerid, px, py, pz);
format(string, sizeof(string), "%f, %f, %f", px, py, pz);
SendClientMessage(playerid, 0xAFAFAFAA, string);
return 1;
}
Originally Posted by ledzep
Try typing the "/save [optional: comment]" command and looking in your GTA San Andreas folder for 'savedpositions.txt'.
Or try this: pawn Код:
![]() |
if(strcmp(cmd, "/pos", true) == 0)
{
new Float: X;
new Float: Y;
new Float: Z;
new Float: Angle;
new Int;
new World;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
Int = GetPlayerInterior(playerid);
World = GetPlayerVirtualWorld(playerid);
format(string, sizeof(string), "X: %.4f, Y: %.4f, Z: %.4f, Angle: %.4f", X, Y, Z, Angle);
SendClientMessage(playerid, 0xFFFFFFAA, string);
format(string, sizeof(string), "Interior: %d, Virtual World: %d",Int, World);
SendClientMessage(playerid, 0xFFFFFFAA, string);
return 1;
}
Originally Posted by olari99
Thanks, but still, i saw someones post what showed cordinates without command, i moved and cordinates changed.It was left and down i think.
|