Problem with make area
#1

Hi guys.

Here, I tried to make an area where the player can exit his vehicle.
Here's the script:

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(PlayerInfo[playerid][pWorld] == 3)
    {
           new Float:x,Float:y,Float:z;
           GetPlayerPos(playerid,x,y,z);
           if(GetPlayerTeam(playerid) == 1) // Rouges
           {
               if (x <= 436.3784 && x >= -81.0595)
               {
                     SendClientMessage(playerid,COLOR_GREY,"Test");
               }
               else
               {
                         return false;
               }
           }
           if(GetPlayerTeam(playerid) == 2) // Verts
           {
           
           }
    }
    return 1;
}
The problem is that it makes me always the message, and it never comes in the "else"

Here is a screenshot of where I took the positions.

Quote:

436.3784,2528.7734,17.0038

http://imageshack.us/photo/my-images/151/samp000vh.png/

Quote:

-81.0595,2476.4946,16.4844

http://imageshack.us/photo/my-images...amp001ary.png/
Reply


Messages In This Thread
Problem with make area - by jcvag44800 - 21.04.2012, 16:18
AW: Problem with make area - by Nero_3D - 21.04.2012, 17:43
Re: Problem with make area - by jcvag44800 - 21.04.2012, 18:26

Forum Jump:


Users browsing this thread: 1 Guest(s)