25.12.2013, 14:12
Quote:
pawn Код:
|
you have to put it in an "if statement"
esample:
PHP код:
if(IsPlayerInRangeOfPoint(playerid,2.0,-2454.5771,2254.1755,4.9802))//this is when he's in range of that point
{
//do something
}
if(!IsPlayerInRangeOfPoint(playerid,2.0,-2454.5771,2254.1755,4.9802))//and this with the " ! " when hes not
{
//do something
}
//or just:
if(IsPlayerInRangeOfPoint(playerid,2.0,-2454.5771,2254.1755,4.9802))//this is when he's in range of that point
{
//do something
}
else//when the first condition equals "false"
{
//do something when hes not
}