03.04.2015, 01:49
If on foot, walking from the northeast corner to the southwest corner of the map to how long calls
#include <a_samp>
#include <zcmd>
new Tracking[MAX_PLAYERS];
CMD:trackpos(playerid, params[])
{
new string[64];
if(Tracking[playerid])
{
Tracking[playerid] = Tracking[playerid] - gettime();
format(string, sizeof(string), "Seconds elapsed: %d", Tracking[playerid]);
SendClientMessage(playerid, -1, string);
Tracking[playerid] = 0;
}
else
{
Tracking[playerid] = gettime();
}
return 1;
}