SA-MP Forums Archive
[Help]I want to create a /save command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help]I want to create a /save command (/showthread.php?tid=97203)



[Help]I want to create a /save command - GiP_YossI - 13.09.2009

i want to create a my own save command for car-that will save my the Modelid[or vehicleid..there is any different?] , X,Y ,Z,Angle
Thats all
thanks


Re: [Help]I want to create a /save command - Adil - 13.09.2009

It is already made.

Regards, Adil.


Re: [Help]I want to create a /save command - Calgon - 13.09.2009

It's in SA:MP by default, however 0.3 doesn't respond with anything.


Re: [Help]I want to create a /save command - Correlli - 13.09.2009

Quote:
Originally Posted by Adil_Rahoo
It is already made.
He want's to create his own one.
Quote:
Originally Posted by GiP YossI
i want to create a my own save command for car-that will save my the Modelid[or vehicleid..there is any different?] , X,Y ,Z,Angle
Quote:
Originally Posted by GiP YossI
i want to create a my own save command for car-that will save my the Modelid[or vehicleid..there is any different?] , X,Y ,Z,Angle
Thats all
thanks
If you don't have an idea how to do it then ask in the script request topic.


Re: [Help]I want to create a /save command - brett7 - 13.09.2009

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/save", cmdtext, true, 6) == 0)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new string[256];
format(string, 256, "%f.%f.%f.", x, y, z);
SendClientMessageToAll(orange, string);
printf("Position saved at %f.%f.%f.", x, y, z);

return 1;
}
return 0;
}

theres a basic one, i actually coded this i didnt just rip it


Re: [Help]I want to create a /save command - GiP_YossI - 13.09.2009

lol, i know that already that command is built in the SA:MP,i want to create another one that save the things that i want
and thanks "brett7 " i will check it

Can you make it that it will save it to me in some file?


Re: [Help]I want to create a /save command - eXchainZ-FoReVeR - 13.09.2009

/save is already saved with SA-MP.

Why do you need it for


Re: [Help]I want to create a /save command - GiP_YossI - 13.09.2009

because i want to short my way,because i'm saving a lot of cars, and i don't need the color and the "AddStaticVehicle"
i need only the vehicleid,X,Y,Z,Angle
Thats why i want to create my own /save command


Re: [Help]I want to create a /save command - GiP_YossI - 14.09.2009

??
Quote:
Originally Posted by GiP YossI
because i want to short my way,because i'm saving a lot of cars, and i don't need the color and the "AddStaticVehicle"
i need only the vehicleid,X,Y,Z,Angle
Thats why i want to create my own /save command
Help?


Re: [Help]I want to create a /save command - eXchainZ-FoReVeR - 15.09.2009

Quote:
Originally Posted by GiP YossI
??
Quote:
Originally Posted by GiP YossI
because i want to short my way,because i'm saving a lot of cars, and i don't need the color and the "AddStaticVehicle"
i need only the vehicleid,X,Y,Z,Angle
Thats why i want to create my own /save command
Help?
Thats impossible maybe? or else... I do not know how to do that