20.02.2012, 22:55
Hello, sorry i need help.
as I can make a door swings frequently, as a fan.
i have this command, but not working.
thanks
as I can make a door swings frequently, as a fan.
i have this command, but not working.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Juego", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,4040.94, 2054.01, 183.86);
MoveObject(Door, 4052.39, 2043.73, 183.86, 5.0, 0.00, 180.0, 0.00);
SetTimer("Rot",1000,true);
return 1;
}
return 0;
}
forward Rot();
public Rot()
{
MoveObject(Door, 4052.39, 2043.73, 183.86, 5.0, 0.00, 180.0+180.0, 0.00);
return 1;
}