20.06.2011, 22:09
You don't get the message (" IsPlayerInRangeOfPoint works!")? if not then you put the wrong pos.
Have you tried mine?
EDIT:
Try this
Also make sure you put return 1;
Have you tried mine?
EDIT:
Try this
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,9,778.0752,-1329.9805,13.5469)) //This is in the middle of the gate at SANNews
{ //News Agency
if(!IsANewsReporter(playerid)) return SendClientMessage(playerid,COLOR_GREY," You are not a {000000}News Reporter!");
if(sangate == 0)
{
sangate = 1;
MoveObject(sangateoneobj, 289.919067, -1547.427734, 27.193420, 1.500000);
}
else if(sangate == 1)
{
sangate = 0;
MoveObject(sangateoneobj, 283.870544, -1543.398804, 27.193420, 1.500000);
}
}
else
{
SendClientMessage(playerid,0xFFFFFFFF," You put the wrong pos!");
}

