07.06.2012, 22:16
Can anybody help me. When I try to open the gate it dosen't open but I get the message saying You have opened Fire Department Bay 1, but it dosen't move. Any help would be much appreciated. Here's the code.
And under ongamemodeinit
pawn Код:
new firegate;
pawn Код:
firegate = CreateDynamicObject(8948, 662.48, 1719.57, 7.95, 0.00, 0.00, 310.79);
pawn Код:
YCMD:fd1o(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, 652.4600, 1710.8800, 7.9500))
{
MoveObject(firegate, 652.4600, 1710.8800, 4.1918, 3.0);
SendClientMessage(playerid, COLOR_PINK, "You have opened Fire Department Bay 1.");
}
return 1;
}