13.05.2014, 04:42
Quote:
and it is a Float, right ?
(EDIT :- or add it in OnPlayerCommandText >> "public OnPlayerCommandText(playerid, cmdtext[])") |
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/mbdis", cmdtext, true))
{
new string[64];
new Float: distance = GetPlayerDistanceFromPoint(playerid, MoneyBagPos[0], MoneyBagPos[1], MoneyBagPos[2]);
format(string, sizeof(string), "The MoneyBag is %.1f meters away", distance);
SendClientMessage(playerid, -1, string);
return 1;
}