[HELP] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] (
/showthread.php?tid=81967)
[HELP] -
PlayMaker - 15.06.2009
Could you help me doing a spawn system like: you spawn near other players and each others...
Re: [HELP] -
PlayMaker - 15.06.2009
Any1 ?
Re: [HELP] -
robanswe - 15.06.2009
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...
Re: [HELP] -
dice7 - 15.06.2009
Check admin system filterscripts for the commands /goto and /get
Re: [HELP] -
PlayMaker - 15.06.2009
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...
Re: [HELP] -
PlayMaker - 29.06.2009
Can any1 help me ?