help please
#1

how to detect isplayerNOTinrangeofpoint?
liek this
pawn Код:
if(!strcmp("/stadium",cmdtext))
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
    {
        SendClientMessage(playerid,0xFFFFFFFF,"You are near the Stadium entrance!");
    }
    else if(IsplayeNOTingangeofpoint(playerid);
    {
    SendClientMessage(playerid,0xFFFFFFFF,"you are not near the stadium");
    }
    return 1;
}
Reply
#2

Just use
pawn Код:
else
     {    
          SendClientMessage(playerid,0xFFFFFFFF,"you are not near the stadium");    
     }
Reply
#3

Just add a ! at the start of IsPlayerInRangeOfPoint example !IsPlayerInRangeOfPoint()

Also in that code you can just have it like this:

pawn Код:
if(!strcmp("/stadium",cmdtext))
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
    {
        SendClientMessage(playerid,0xFFFFFFFF,"You are near the Stadium entrance!");
    }
    else
    {
    SendClientMessage(playerid,0xFFFFFFFF,"you are not near the stadium");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)