IsPlayerInArea
#1

I need some help.

I have a gang zone
pawn Код:
gangzone = GangZoneCreate(1830.3060, -2460.9521, 1883.3285, -2406.4404);

I would like to display a message if someone enters this gang zone using IsPlayerInArea it sends them a message like "Welcome" for an example.

How would i do this?



I read tutorials, but not one of the ones i found actually told you where to go to get coordinates and which ones to use.

**what i tried**

I tried using my gang zone coordinates but that didn't work.
Reply
#2

Ok, seriously? Are you dumb? I posted an answer in your previous thread with the whole code, what's seems to be the problem? Why didn't u post on that thread?.
Reply
#3

I tried it, It didn't work. I stopped posting on that thread because i thought it was becoming inactive since no one would post anymore because of the amount of replies.


I tried the code, it did not work for me. The problem with me is, I don't simply understand what cords to get, and what to use, and actually how to get them.

Can you please help me with that.
Reply
#4

You know, you still could have post in that thread, use seifareafs or search for tutorials on how to get Max X,Y;min x,y.
Reply
#5

I searched quite a bit of tutorials and not one of them told me how to get the cords and which ones to use

Also, before trying manually, i tried using Seifs FS and i would do exactly what it says, but when i go to save it says something like

"You must be in the area you created in order to save" something like that


Also, sorry for not posting in that thread, i did see what you wrote and tried it.
Reply
#6

so if you tried tutorials and the fs that means you're actually clumsy, because you didn't follow any instructions, and for the FS its obvious you didn't even read that you need to face the north and be in area to save. (nobody is going to make you a fs for it cause there are many tutorials and i answered your question about 3times)
Reply
#7

0ne, stop complaining and help him out -.-
i dont know anything about gangzones i never worked with it... but
maybe
try these:
Onplayerupdate
Ifplayerisinarea(gangzone) == 1) or summin
Sendclientmessage(text)
else ifplayerisinarea(gangzone) == 0);
return 0; or summing.

this isnt a code its just a way how to do it...
im about 65% sure it works...
Reply
#8

so if you tried tutorials and the fs that means you're actually clumsy, because you didn't follow any instructions, and for the FS its obvious you didn't even read that you need to face the north and be in area to save. (nobody is going to make you a fs for it cause there are many tutorials and i answered your question about 3times)



1. All the tutorials i tried don't show me how to get the cords, which is the only thing im really asking.

2. I did follow the instructions, it still does the same thing. I can read. So can others, and it's done that for others too.

3. you didn't answer my question at all.

I was trying not to be rude even though you are, but now i don't give a fuck. Be willing to help others or don't post at all because post count isn't worth anything.

Mike_Peterson i'll try that thank you!
Reply
#9

pawn Код:
if(IsPlayerInArea(playerid, 1830.3060, -2460.9521, 1883.3285, -2406.4404);
{
   GameTextForPlayer(playerid, "~g~Welcome", 3000, 5);
   return 1;
}
Reply
#10

OMFG thank you! it worked! I finally understand how to actually do it.


Thanks to everyone for helping me.


Just 1 more question, is it better to use "OnPlayerUpdate" for this, or should i use a timer
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)