30.08.2012, 20:10
You need to be in range of point.
Check the distance
pawn Код:
dcmd_GK1(playerid, params[])
{
#pragma unused params
printf("Debug: Distance from point equals %.2f",GetPlayerDistanceFromPoint(playerid, 1241.40002441, 767.09997559, 91.09999847));
if(IsPlayerInRangeOfPoint(playerid, 15.0, 1241.40002441, 767.09997559, 91.09999847))
{
SetTimerEx("CloseGate", 5000, false, "i", playerid);
MoveObject(Gate1, 1241.40002441, 767.09997559, 87.09999847, 3.0, 0.0, 0.0, 0.0);
return SendClientMessage(playerid, COLOR_PINK, "Welcome to Kh4led's mansion");
}
}

