18.07.2016, 20:29
HTML Code:
if(strcmp(cmdtext, "/distance", true) == 0) { new Float:X,Float:Y,Float:Z; GetObjectPos(CrateObject , X,Y,Z); new Float: fDistance = GetPlayerDistanceFromPoint(playerid, X,Y,Z), szMessage[44]; format(szMessage, sizeof(szMessage), "You're %0.2f meters away from the vending machine.", fDistance); SendClientMessage(playerid, 0xA9C4E4FF, szMessage); return 1; }