- 0
Problema /gps
-
Similar Content
-
Problema turf
By Soryn.,
- 3 answers
- 227 views
-
- 3 replies
- 529 views
-
- 1 reply
- 177 views
-
Problema
By ImJustSlim,
- 3 answers
- 285 views
-
- 2 replies
- 157 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Iulian2
CMD:gps(playerid, params[]) {
if(HaveCP(playerid)) return SCM(playerid, COLOR_ERROR, "Error: You have an active checkpoint.");
if(Iter_Count(ServerGPSLocations) == 0) return SCM(playerid, COLOR_ERROR, "Error: There it's not any location in gps.");
new dialog[2048], string[80];
strcat(dialog, "Location\tDistance\n");
for(new i = 1; i <= Iter_Count(ServerGPSLocations); i++) {
format(string, sizeof(string), "{FFFFFF}%s\t{008080}%.2f\n", gpsInfo[gName], GetPlayerDistanceFromPoint(playerid, gpsInfo[gX], gpsInfo[gY], gpsInfo[gZ]));
strcat(dialog, string);
}
ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_TABLIST_HEADERS, "Locations", dialog, "Select", "Close");
return 1;
}
Ce trebuie sa fac sa imi apara locatiile?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.