Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnGameModeInit()
- {
- if(!fexist("Pozicijos.txt"))
- {
- new File:Koordinates = fopen("Pozicijos.txt", io_write);
- fclose(Koordinates);
- }
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/saugoti", true))
- {
- if(!cmdtext[7]))
- {
- return SendClientMessage(playerid, -1, "/saugoti <tekstas>");
- }
- SendClientMessage(playerid, -1, "Koordinates sekmingai iðsaugotos: scriptfiles/Pozicijos.txt");
- new
- saveStr[128],
- Float:X,
- Float:Y,
- Float:Z,
- Float:A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- format(saveStr, 128, "%.3f, %.3f, %.3f, %.3f // %s", X, Y, Z, A, cmdtext[7]);
- new File:Koordinates = fopen("Pozicijos.txt", io_write);
- public OnGameModeInit()
- {
- if(!fexist("Pozicijos.txt"))
- {
- new File:Koordinates = fopen("Pozicijos.txt", io_write);
- fclose(Koordinates);
- }
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/saugoti", true))
- {
- if(!cmdtext[7]))
- {
- return SendClientMessage(playerid, -1, "/saugoti <tekstas>");
- }
- SendClientMessage(playerid, -1, "Koordinates sekmingai iðsaugotos: scriptfiles/Pozicijos.txt");
- new
- saveStr[128],
- Float:X,
- Float:Y,
- Float:Z,
- Float:A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- format(saveStr, 128, "%.3f, %.3f, %.3f, %.3f // %s", X, Y, Z, A, cmdtext[7]);
- new File:Koordinates = fopen("Pozicijos.txt", io_write);
- public OnGameModeInit()
- {
- if(!fexist("Pozicijos.txt"))
- {
- new File:Koordinates = fopen("Pozicijos.txt", io_write);
- fclose(Koordinates);
- }
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/saugoti", true))
- {
- if(!cmdtext[7]))
- {
- return SendClientMessage(playerid, -1, "/saugoti <tekstas>");
- }
- SendClientMessage(playerid, -1, "Koordinates sekmingai iðsaugotos: scriptfiles/Pozicijos.txt");
- new
- saveStr[128],
- Float:X,
- Float:Y,
- Float:Z,
- Float:A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- format(saveStr, 128, "%.3f, %.3f, %.3f, %.3f // %s", X, Y, Z, A, cmdtext[7]);
- new File:Koordinates = fopen("Pozicijos.txt", io_write);
- fwrite(Koordinates, saveStr);
- fwrite(Koordinates, "\r\n");
- fclose(Koordinates);
- return 1;
- }
- return 0;
- }
- fwrite(Koordinates, "\r\n");
- fclose(Koordinates);
- return 1;
- }
- return 0;
- }
- fwrite(Koordinates, "\r\n");
- fclose(Koordinates);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment