12.08.2015, 00:04
These custom functions make overall gamemode script management very easy and nicely to understand for others. I also work in web-development, so it's more comfortable to write script this way (with words) than spamming [[}}}]\}[}[] all the way to get shit done when using arrays/arraylike variable types.
Код:
IsPlayerNearBuildingEntrance(playerid, idx, Float:_range = 1.0)
{
if(IsPlayerInRangeOfPoint(playerid, _range, bS[idx][buEX], bS[idx][buEY], bS[idx][buEZ]))
{
return true;
}
return false;
}
IsPlayerNearBuildingExit(playerid, idx, Float:_range = 1.0)
{
if(IsPlayerInRangeOfPoint(playerid, _range, bS[idx][buQX], bS[idx][buQY], bS[idx][buQZ]))
{
return true;
}
return false;
}

