19.06.2011, 23:03
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);
}
}
pawn Код:
sangateoneobj = CreateObject(976, 773.7568359375, -1384.501953125, 12.858623504639, 0, 0, 0);
sangateoneobj = CreateObject(976, 774.02679443359, -1329.7847900391, 12.546875, 0, 0, 0); // This in the gates