Some script quirk I can't figure out
#3

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;
}
Reply


Messages In This Thread
Some script quirk I can't figure out - by Caupo - 11.08.2015, 22:53
Re: Some script quirk I can't figure out - by HBG - 11.08.2015, 23:43
Re: Some script quirk I can't figure out - by Caupo - 12.08.2015, 00:04

Forum Jump:


Users browsing this thread: 1 Guest(s)