#include #include #include #include #define MAX_LOCATIONS 50//cate locatii vrei #define DIALOG_GPS 90 enum GPSDATA { ID, Name[50], Float:Posx, Float:Posy, Float:Posz, } new GPSInfo[MAX_LOCATIONS][GPSDATA]; public OnFilterScriptInit() { LoadGPS(); print("\n--------------------------------------"); print(" GPS Dynamic System by Gireada"); print("--------------------------------------\n"); //SetTimer("SaveGPS", 2000, 1); return 1; } public OnFilterScriptExit() { return 1; } main() { print("\n----------------------------------"); print(" GPS Dynamic System by Gireada"); print("----------------------------------\n"); } CMD:addlocations(playerid, params[]) { new name[50],file[256]; if(!(IsPlayerAdmin(playerid))) return SendClientMessage(playerid, 0xFFFFFFFF, "You need to be RCON Admim to use this command."); if(unformat(params, "s[50]", name)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /addlocations "); new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x,y,z); for(new i=0;i