18.06.2013, 14:49
There's nothing wrong with his returns that I know of.
Read the comments.
Код:
CMD:adminroof(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1847.7333,-1761.9608,13.5469))
{
SetPlayerPos(playerid, 1889.0286,-1782.9777,25.7911);//Naar boven
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_GREEN, "*You use the elevator to get on the roof*");
return 1; // This is to prevent the code from further executing.
}
SendClientMessage(playerid,0xFFFFFF00,"DEBUG: Not in range!"); //If the IsPlayerInRangeOfPoint check fails,
// ..the script will fall through to this message and finally return. We don't want to see this when they're in range.
return 1;
}

