13.09.2012, 15:53
Hey,
I was just asking if anyone would give me a hand creating a stock basicly finding the location of a house and checking if a player is near it on a command such as lock
For example
Sorry if the above made you facepalm but that's reason I am asking for help.
Cheers.
I was just asking if anyone would give me a hand creating a stock basicly finding the location of a house and checking if a player is near it on a command such as lock
For example
pawn Код:
stock IsPlayerInRangeOfHouse(playerid, Float:Range)
{
for(new x = 0; x < MAX_HOUSES; x++)
return IsPlayerInRangeOfPoint(playerid, Range, House[x][hExtPosX], House[x][hExtPosY], House[x][hExtPosZ]));
}
Cheers.