rendered paste body#include <a_samp>#include<natsstlib.inc>// This is a comment// uncomment the line below if you want to write a filterscript#define FILTERSCRIPTnew bool:stream = false;new bool:cpset = false;new Float:x , Float:y ,Float:z ;new i = 0;#if defined FILTERSCRIPTpublic OnFilterScriptInit(){ print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1;}public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){if(newkeys == 256) { GetPlayerPos(playerid,x,y,z); SetPlayerRaceCheckpoint(playerid,0,x,y,z,x,y,z,10); cpset = true; SendClientMessage(playerid,FA_OR,"CP gesetzt");}if(newkeys == 128 && cpset == true) { new File:Coords = fopen("koords.txt",io_append); new line[256]; format(line,256,"\r\n{%f,%f,%f},// CP : %d",x,y,z,i); fwrite(Coords,line); fclose(Coords); cpset = false; SendClientMessage(playerid,FA_OR,"CP gespeichert"); SetPlayerMapIcon(playerid,i,x,y,z,22,FA_RO); DisablePlayerRaceCheckpoint(playerid); i++;}}public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp("/del",cmdtext, true, 4) == 0){ for(new j = 0;j < i ;j++) { RemovePlayerMapIcon(playerid,j); } i = 0; return 1;}}#endif