Is there a filterscript that saves a position to a file but as AddStaticVehicleEx, I had one before but it doesn't work now, it was /savemode then /type AddStaticVehicleEx then /savepos and it saved it to a text file.
Well, nobody will make it like this.. :\
pawn Код:
YourCommandStyle // DCMD,CMD,if(!strcmp()), etc -- Suggested name: /SaveEx
{
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,0x80000000,"Must be RCON admin to use this command");
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,0x80000000,"Must be inside a vehicle");
new File:file,strtmp[128],Float:x,Float:y,Float:z,Float:a,vehid;
file=fopen("SavedLocations.txt",io_append);
vehid=GetPlayerVehicleID(playerid);
GetVehiclePos(vehid,x,y,z);
GetVehicleZAngle(vehid,a);
format(strtmp,128,"AddStaticVehicleEx(%d, %f, %f, %f, %f, -1, -1, -1);\n",GetVehicleModelID(vehid),x,y,z,a);
fwrite(file,strtmp);
fclose(file);
return SendClientMessage(playerid,0x00800000,"Vehicle successfully saved.");
}