Will This Work?
#1

im making a turf wars server and im now making some areas that are neutral or no killing zones, and i couldn't find a callback for isplayeringangzone
so i found this:
Код:
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
	new Float:X, Float:Y, Float:Z;
	GetPlayerPos(playerid, X, Y, Z);
	if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1;
	return 0;
}
now im wondering, if i just match up the min_x, max_x, min_y,max_y with the same co ords as the gang zone that it will work.

Then i can do,
Код:
OnPlayerDeath
if(IsPlayerInArea(killerid,..,..,..,..,...))
{
kick(killerid);
return 1;
}
thx in advance
Reply


Messages In This Thread
Will This Work? - by StrickenKid - 08.03.2009, 06:58
Re: Will This Work? - by Burridge - 08.03.2009, 07:46
Re: Will This Work? - by 56avenue - 08.03.2009, 07:55
Re: Will This Work? - by StrickenKid - 08.03.2009, 16:58
Re: Will This Work? - by Burridge - 08.03.2009, 18:21

Forum Jump:


Users browsing this thread: 1 Guest(s)