here's allitle snippet for you:
pawn Код:
if(strcmp(cmdtext, "/savepos", true) == 0)
{
new Float:pos[4], string[100], filemode:openmethod = io_append, File:file;
if(IsPlayerInAnyVehicle(playerid))
{
new vehid = GetPlayerVehicleID(playerid);
GetVehiclePos(vehid,pos[0],pos[1],pos[2]);
GetVehicleZAngle(vehid,pos[3]);
format(string,126,"\nAddStaticVehicle(%d,%f,%f,%f,%f,-1,-1); // %s",GetVehicleModel(vehid),pos[0],pos[1],pos[2],pos[3],cmdtext[8]);
} else {
GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
GetPlayerFacingAngle(playerid,pos[3]);
format(string,126,"\nAddPlayerClass(%d,%f,%f,%f,%f,0,0,0,0,0,0); // %s",GetPlayerSkin(playerid),pos[0],pos[1],pos[2],pos[3],cmdtext[8]);
}
if(!fexist("coords.txt")) openmethod = io_write;
if((file = fopen("coords.txt",openmethod)))
{
fwrite(file,string);
fclose(file);
SendClientMessage(playerid,0xF6CA00AA,"»Position Succesfully Saved!");
} else SendClientMessage(playerid,0xF6CA00AA,"»Error! Position Couldn't be Saved!");
return 1;
}
Put that under OnPlayerCommandText, and also make a file in your scriptfiles folder called coords.txt
Then when you're ingame get in a car, although you will need a car spawner or somthing to do the job, and type /savepos then it will save to scriptfiles/coords.txt and you can easily put it in server
[ I just want to note that Seif did this little snippet, not me, i just edited it allitle.. ]