/saveloc command needed
#1

i need /saveloc command which will show as the coordinates of the place

like /saveloc and the result will be "Position save "x,y,z"

i need it with saving system
Reply
#2

pawn Код:
#include <zcmd> //Sorry, I just don't feel like using anything else :<

CMD:saveloc(playerid, params[])
{
       new Float:X, Float:Y, Float:Z;
       GetPlayerPos(playerid, X, Y, Z);
       new string[128];
       format(string, sizeof(string), "Your current positions are: X = %d Y = %d Z = %d", X, Y, Z);
       SendClientMessage(playerid, 0xFF0000FF, string);
       return 1;
}
Reply
#3

it work but i need it to be saved like saving system
Reply
#4

then show us how u save the things with y_inidini mysq etc
Reply
#5

Do you want it to be saved in mysql or in a file or how do you need the data to be stored exactly?
Reply
#6

Quote:
Originally Posted by Team_PRO
Посмотреть сообщение
it work but i need it to be saved like saving system
You can use /save, it saves your positions inside
Код:
C:\Users\yourprofilenamehere\Documents\GTA San Andreas User Files\SAMP\savedpositions.txt
Reply
#7

i use y-ini
Reply
#8

Quote:
Originally Posted by Cena44
Посмотреть сообщение
You can use /save, it saves your positions inside
Код:
C:\Users\yourprofilenamehere\Documents\GTA San Andreas User Files\SAMP\savedpositions.txt
i do this but when i use SetPlayerPosition i get some warning and it don't teleport me to place i want

Example this where is the coords
Код:
AddStaticVehicle(515,2517.5686,-1282.4982,35.7865,178.7816,66,66); //
Reply
#9

Maybe you don't put the correct floats?
pawn Код:
AddStaticVehicle(515,2517.5686,-1282.4982,35.7865,178.7816,66,66); //
X = 2517.5686,
Y = -1282.4982,
Z = 35.7

Код:
AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2)
Reply
#10

[Tutorial] Saving System
[Filterscript] InGame Coordinates Saver
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)