//These are the parts of the script you may need to look at //These are the commands i used to collect the Coords and change them ingame... for references sake //so you know its not my commands fault... you can use the comands in your own scripts if you wish if (strcmp(cmd, "/savecp", true)==0) { tmp = strtok(cmdtext,idx); if (!strlen(tmp)) { SendClientMessage(playerid,COLOR_RED,"Needs a name"); return 1; } new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); format(string,sizeof(string),"Positions:%f,%f,%f",x,y,z); SendClientMessage(playerid,COLOR_GREY,string); if (!dini_Exists(udb_encode("PROP_POS"))) { dini_Create(udb_encode("PROP_POS")); } dini_Set(udb_encode("PROP_POS"),string,tmp); SendClientMessage(playerid,COLOR_GREEN,"CP Saved"); return 1; } if (strcmp(cmd, "/changecp", true)==0) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); tmp = strtok(cmdtext,idx); new val = strval(tmp); CheckPoints[val][0] = x; CheckPoints[val][1] = y; CheckPoints[val][2] = z; SendClientMessage(playerid,COLOR_GREEN,"Checkpoint created"); return 1; } //-------------------------------------------------------------------------------------- // now for the timer that handles to cp stuff and the PropDistance Function that i made //-------------------------------------------------------------------------------------- public UpdateCP() { new a=0; for(new i=0; i