SA-MP Forums Archive
[Help] IsPlayerInRangeOfPoint - 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] IsPlayerInRangeOfPoint (/showthread.php?tid=193878)



[Help] IsPlayerInRangeOfPoint - XePloiT - 27.11.2010

well... i want to do that every one (besides admin/vip/etc...) who come inside the area will be dead...
i thought to use CheckPoint... But this is made some trouble...
so i thought to use IsPlayerInRangeOfPoint.... my problem is where to put it... i trued OnGameModeInit...
didn't worked.... someone can help ? tnx


Re: [Help] IsPlayerInRangeOfPoint - MBX97 - 27.11.2010

idk maybe its not good , maybe you could use the world of Bounds
Код:
and this is the wiki for it : Click ME !!!
and then make a teleport cmd for just vip and admin and thats all , thats my oponion


Re: [Help] IsPlayerInRangeOfPoint - XoSarahMoX - 27.11.2010

Maybe make a door that leads to the private area, and put like fences around the area.

Something like:

Код:
new vipadminarea;
Код:
vipadminarea = CreatePickup(1318,23, X,Y,Z,0);
Код:
if(pickupid==vipadminarea)
{
if(!playerid == pAdmin || !playerid == pVip)
{
SendClientMessage(playerid, COLOR_RED, "You are not allowed inside!");
}
else
{
SetPlayerPos(playerid, coords);
SendClientMessage(playerid, COLOR_WHITE, "Welcome!");
}
}
return 1;
}
Not sure if I scripted that right lol so umm I think that would work ^-^!


Re: [Help] IsPlayerInRangeOfPoint - XePloiT - 27.11.2010

MBX97: i thought of this already but i got about 3 places i want to make them that way... and WORLD BOUNDARIES i can use once if im not mistaken...

XoSarahMoX: i thought of that too but the places are easy to find... my main point is that cheater couldn't get in
(not just cheaters...players with airplanes etc... you got the idea i want this to be impermeable


Re: [Help] IsPlayerInRangeOfPoint - XoSarahMoX - 27.11.2010

Well a hacker can still just make his health invisible and airbreak into the place so yea :P. But like I said add a couple of fences and things or make it in another virtual world or interior which would make it harder to find .


Re: [Help] IsPlayerInRangeOfPoint - iggy1 - 27.11.2010

Do you use a streamer? You will need to use a repeating timer and use the IsPlayerInArea function (not native in pawno) search and you will find the function. There are also tutorials on admin only area's.

EDIT: I ask about streamers because incognitos has an area streamer.


Re: [Help] IsPlayerInRangeOfPoint - XePloiT - 27.11.2010

actually i thought of IsPlayerInArea but i hadn't the streamer.... 'till not i searched for it... couldn't find...
maybe you can give me one?

@XoSarahMoX : the point is that everybody sees it but no one can get in


Re: [Help] IsPlayerInRangeOfPoint - [L3th4l] - 27.11.2010

XePloiT, in the plugin section look for incognito's streamer, it has an area function that works perfectly!


Re: [Help] IsPlayerInRangeOfPoint - XoSarahMoX - 27.11.2010

oh okay :P goodluck with it though ^-^


Re: [Help] IsPlayerInRangeOfPoint - XePloiT - 27.11.2010

L3th4l tnx man :] sadly its not perfect cuz like the rest of the streamers the Z position at the CP doesnt change anything by its cool.... i used the CUBED AREA :] (its just genius)

@XoSarahMoX tnx anyway bro