12.08.2012, 01:18
Hi got a problem for some reason my gate is not opening slowly... its fliping open
pawn Код:
CMD:gate1(playerid, params[])
{
if(gTeam[playerid] == ARMY)
{
MoveObject(armygate1, -1550.59997559,500.50000000,6.19999981, 10, 0.00000000,0.00000000,173.98242188);
SendClientMessage(playerid, COLOR_GREEN, "You have opened the gate. You have 5 seconds untill it closes.");
SetTimer("Close", 5000, false);
return 1;
}
else if(gTeam[playerid] != ARMY)
{
SendClientMessage(playerid, COLOR_RED, "This command is only for army.");
return 1;
}
return 1;
}
forward Close();
public Close()
{
MoveObject(armygate1, -1550.59997559,500.50000000,6.19999981, 10, 0.00000000,0.00000000,269.98242188);
}