Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ................................
- -->DONT REMOVE CREDITS PLEASE<--
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- *************************************************
- *<< InGame Coordinates Saver by MrConso99 >>*
- *<< (c)2011 MrConso99's Scripts >>*
- *<< Thanks to: >>*
- *<< -DracoBlue for dini >>*
- *<< -SA-MP Team for a_samp >>*
- *<< -Me for the FS(its my first FS :D >>*
- *<< -ITB CompuPhase for PAWN Compiler >>*
- *************************************************
- ___ ___ _____ _____ _____ __ _ _____ _____ _____ _____ _ _____ _____ _____ _____ _ _____ _____
- / |/ | | _ \ / ___| / _ \ | \ | | / ___/ / _ \ / _ \ / _ \ /_/ / ___/ / ___/ / ___| | _ \ | | | _ \ |_ _|
- / /| /| | | |_| | | | | | | | | \| | | |___ | | | | | |_| | | |_| | | |___ | |___ | | | |_| | | | | |_| | | |
- / / |__/ | | | _ / | | | | | | | |\ | \___ \ | | | | \___ | \___ | \___ \ \___ \ | | | _ / | | | ___/ | |
- / / | | | | \ \ | |___ | |_| | | | \ | ___| | | |_| | ___| | ___| | ___| | ___| | | |___ | | \ \ | | | | | |
- /_/ |_| |_| \_\ \_____| \_____/ |_| \_| /_____/ \_____/ |_____/ |_____/ /_____/ /_____/ \_____| |_| \_\ |_| |_| |_|
- ASCII TEXT GENERATOR AT:
- http://www.javascriptkit.com/script/script2/asciitext.shtml
- */
- #define FILTERSCRIPT
- #define Yellow 0xFFFF00AA
- #include <a_samp>
- #include <Dini>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Coosaver by .:.->MrConso99<.:. Loaded.");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Coosaver by .:.->MrConso99<-.:.");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/savecoo", cmdtext, true, 10) == 0)
- {
- new file[256];
- new Float:x,Float:y,Float:z;
- new string[256];
- GetPlayerPos(playerid,x,y,z);
- format(string,sizeof(string)," %d , %d , %d \r \n",x,y,z);
- SendClientMessage(playerid,Yellow,"Coordinates saved(x,y,z):");
- SendClientMessage(playerid,Yellow,string);
- SendClientMessage(playerid,Yellow,"You can find it in the file 'Coordinates.txt' in the server's scriptfiles.");
- SendClientMessage(playerid,Yellow,"Created By MrConso99.");//you can remove this message.
- format(file, 256, "Coordinates.txt");
- if(!dini_Exists(file))
- {
- dini_Create(file);
- print("File 'Coordinates.txt' successfully created");
- dini_Set(file,"Coordinates [x,y,z] ",string);
- DINI_StripNewLine(string);
- }
- else
- {
- dini_Set(file,"Coordinates [x,y,z] ",string);
- DINI_StripNewLine(string);
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- //====END OF FILE===============================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement