[HELP]
#1

Could you help me doing a spawn system like: you spawn near other players and each others...
Reply
#2

Any1 ?
Reply
#3

Quote:
Originally Posted by Hygs
Any1 ?
Dont dubbel post-_- 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...
Reply
#4

Check admin system filterscripts for the commands /goto and /get
Reply
#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
#6

Can any1 help me ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)