IsPlayerInArea Problem
#1

I created IsPlayerInArea code in OnPlayerSpawn. But my code not work. Where is the problem ?

pawn Код:
if(IsPlayerInArea(playerid,-2748.932686806969,-2814.4508055210663,-2366.9854147571964,-2722.3874149799476) == 1)
    {
      SetPlayerPos(playerid,-2203.3171,-2771.0288,35.5669);
      SetPlayerFacingAngle(playerid,75.0368);
      SendPlayerFormattedText(playerid, "Tatil alanına girebilmek iзin bilet almalısınız.", 0);
    }
Reply
#2

You sure the coords are correct?
Reply
#3

Hmm. Wait. I re-creating coordinats.
Reply
#4

I re-created area but not work.
Reply
#5

Quote:
Originally Posted by Emrets61
I re-created area but not work.
Umm..
Where is the function located at?
Command/public function?
Reply
#6

Quote:
Originally Posted by Emrets61
I created IsPlayerInArea code in OnPlayerSpawn.
Reply
#7

You don't need to put that in OnPlayerSpawn. Then it only works on the moment that the players spawns. If you want to do this all the time place it in OnGameModeInit
Reply
#8

Quote:
Originally Posted by pascallj
You don't need to put that in OnPlayerSpawn. Then it only works on the moment that the players spawns. If you want to do this all the time place it in OnGameModeInit
OnGameModeInit haven't playerid.
Reply
#9

Hmm, now i tried and i don't know what IsPlayerInArea is. It is not a official command, is it? btw, I can't found it on Samp Wiki and my compiler fails also.
Reply
#10

You have added a timer to check if player is in that area?
Reply


Forum Jump:


Users browsing this thread: