Saving inside vehicle -
eikzdej - 23.01.2017
Hi! Is it possible to save inside the vehicle? If so, how? Thanks!
Re: Saving inside vehicle -
GangstaSunny. - 23.01.2017
just use the /save command.
you will find the saved coordinates in your gta sa user files/samp/savedpositions.txt
Re: Saving inside vehicle -
AmigaBlizzard - 23.01.2017
You can use a command like this to see your coordinates in-game:
PHP код:
// Displays the current coordinates
COMMAND:loc(playerid, params[])
{
// Setup local variables
new Float:x, Float:y, Float:z, Float:a, interior, virtualworld, msg[128];
// Get the interior and virtual world of the player
interior = GetPlayerInterior(playerid);
virtualworld = GetPlayerVirtualWorld(playerid);
// If the player is inside a vehicle
if (IsPlayerInAnyVehicle(playerid) == 1)
{
// Get the location of the vehicle
GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
format(msg, sizeof(msg), "{00FF00}Your vehicle is at coordinates: {FFFF00}x = %0.3f, y = %0.3f, z = %0.3f, a = %0.3f", x, y, z, a);
}
else // The player is not in a vehicle
{
// Get the location of the player
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
format(msg, sizeof(msg), "{00FF00}You are at coordinates: {FFFF00}x = %0.3f, y = %0.3f, z = %0.3f, a = %0.3f", x, y, z, a);
}
// Inform the player
SendClientMessage(playerid, -1, msg);
format(msg, sizeof(msg), "{00FF00}Interior: {FFFF00}%i{00FF00}, virtual world: {FFFF00}%i", interior, virtualworld);
SendClientMessage(playerid, -1, msg);
// Let the server know that this was a valid command
return 1;
}
Re: Saving inside vehicle -
eikzdej - 24.01.2017
Hi guys, thank you for your replies, but What i mean, if I logout and i'm inside the vehicle, and when I log in back, I'm also inside the vehicle.
Re: Saving inside vehicle -
eikzdej - 24.01.2017
Bump?
Re: Saving inside vehicle -
kloning1 - 25.01.2017
according to my logic
First you have to have a variable that stores the current player in a vehicle
then when the player is logged in, he is the variable load, and input into car
for the function with itself you can use
PutPlayerInVehicle
explain PutPlayerInVehicle
wiki.sa-mp.com down in my country
Re: Saving inside vehicle -
Rdx - 25.01.2017
Quote:
Originally Posted by kloning1
wiki.sa-mp.com down in my country
|
Just change https to http and it will be working.