[HELP]
#5

Sorry for the double post I have done...

_____________________

Quote:
Originally Posted by Roban[swe
]
And i think this is impossible... Its possible but only if you spawn 1 feet from a player... Else you can spawn under the ground and in buildings or in the air! But think about it this relly sux... If i drive a air plane 10000 feet in the air and you spawn near me... you just died...
Actually It isn't because many servers have that.

I tried to make a system but work with X, Y, Z, radius and spawn's its not easy...

Код:
IsPlayerNearPlayer(Float:radi, playerid, targetid)
{
  if(IsPlayerConnected(playerid) && IsPlayerConnected(targetid))
	{
		new Float:posx, Float:posy, Float:posz;
		new Float:oldposx, Float:oldposy, Float:oldposz;
		new Float:tempposx, Float:tempposy, Float:tempposz;
		GetPlayerPos(playerid, oldposx, oldposy, oldposz);
		GetPlayerPos(targetid, posx, posy, posz);
		tempposx = (oldposx -posx);
		tempposy = (oldposy -posy);
		tempposz = (oldposz -posz);
		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
		{
			return 1;
		}
	}
	return 0;
}
Something like that ? I dunno, help me plz.
How can I transform that in a spawn system ?

btw, This is not my script...
Reply


Messages In This Thread
[HELP] - by PlayMaker - 15.06.2009, 12:10
Re: [HELP] - by PlayMaker - 15.06.2009, 13:02
Re: [HELP] - by robanswe - 15.06.2009, 13:10
Re: [HELP] - by dice7 - 15.06.2009, 13:46
Re: [HELP] - by PlayMaker - 15.06.2009, 15:06
Re: [HELP] - by PlayMaker - 29.06.2009, 01:35

Forum Jump:


Users browsing this thread: 1 Guest(s)